Class DockerService

java.lang.Object
de.dlr.proseo.monitor.microservice.DockerService

public class DockerService extends Object
Represent a docker "machine" to check status of a service
Author:
Melchinger
  • Constructor Details

    • DockerService

      public DockerService(MonitorConfiguration.Docker docker)
      Instantiate the docker service
      Parameters:
      docker - A docker machine defined in monitor configuration (application.yml)
  • Method Details

    • getName

      public String getName()
      Returns:
      the name
    • getIp

      public String getIp()
      Returns:
      the ip
    • getPort

      public Long getPort()
      Returns:
      the port
    • getApiVersion

      public String getApiVersion()
      Returns:
      the docker
    • check

      public void check(MicroService ms, MonitorServices monitor)
      Checck whether the service is running on this docker
      Parameters:
      ms - A micro service
      monitor - The basic Monitor thread