Class DockerService
java.lang.Object
de.dlr.proseo.monitor.microservice.DockerService
Represent a docker "machine" to check status of a service
- Author:
- Melchinger
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate the docker service -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(MicroService ms, MonitorServices monitor) Checck whether the service is running on this dockergetIp()getName()getPort()
-
Constructor Details
-
DockerService
Instantiate the docker service- Parameters:
docker- A docker machine defined in monitor configuration (application.yml)
-
-
Method Details
-
getName
- Returns:
- the name
-
getIp
- Returns:
- the ip
-
getPort
- Returns:
- the port
-
getApiVersion
- Returns:
- the docker
-
check
Checck whether the service is running on this docker- Parameters:
ms- A micro servicemonitor- The basic Monitor thread
-