Class MicroService
java.lang.Object
de.dlr.proseo.monitor.microservice.MicroService
Represent a microservice to check status
- Author:
- Melchinger
-
Constructor Summary
ConstructorsConstructorDescriptionMicroService(MonitorConfiguration.Service service) Instantiate a micro service -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(MonitorServices monitor) Check the state of this servicevoidcreateEntry(MonitorServices monitor) Create a new database entry of thisgetName()getState()getUrl()void
-
Constructor Details
-
MicroService
Instantiate a micro service- Parameters:
service- A service defined in monitor configuration (application.yml)
-
-
Method Details
-
getHasActuator
- Returns:
- the hasActuator
-
getIsProseo
- Returns:
- the isProseo
-
getName
- Returns:
- the name
-
getNameId
- Returns:
- the name
-
getUrl
- Returns:
- the url
-
getDocker
- Returns:
- the docker
-
getKubernetes
- Returns:
- the kubernetes
-
getState
- Returns:
- the state
-
setState
- Parameters:
state- the state to set
-
check
Check the state of this service- Parameters:
monitor- The basic Monitor thread
-
createEntry
Create a new database entry of this- Parameters:
monitor- The basic Monitor thread
-