Class ServiceStatusType


  • public class ServiceStatusType
    extends java.lang.Object
    REST API request/response type that represents a ServiceStatus.
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceStatusType​(com.elastisys.autoscaler.core.api.types.ServiceStatus serviceStatus)
      Constructs a ServiceStatusType that represents a certain ServiceStatus.
      ServiceStatusType​(com.elastisys.autoscaler.core.api.types.ServiceStatus.State state, com.elastisys.autoscaler.core.api.types.ServiceStatus.Health health, java.lang.String healthDetail)
      Constructs a ServiceStatusType that represents a certain ServiceStatus.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      com.elastisys.autoscaler.core.api.types.ServiceStatus.Health getHealth()
      Returns the health of the Service.
      java.lang.String getHealthDetail()
      Returns the (optional) message that provides a more detailed health message.
      com.elastisys.autoscaler.core.api.types.ServiceStatus.State getState()
      Returns the execution state of the Service.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ServiceStatusType

        public ServiceStatusType​(com.elastisys.autoscaler.core.api.types.ServiceStatus.State state,
                                 com.elastisys.autoscaler.core.api.types.ServiceStatus.Health health,
                                 java.lang.String healthDetail)
        Constructs a ServiceStatusType that represents a certain ServiceStatus.
        Parameters:
        state -
        health -
        healthDetail -
      • ServiceStatusType

        public ServiceStatusType​(com.elastisys.autoscaler.core.api.types.ServiceStatus serviceStatus)
        Constructs a ServiceStatusType that represents a certain ServiceStatus.
        Parameters:
        serviceStatus - The ServiceStatus to represent.
    • Method Detail

      • getState

        public com.elastisys.autoscaler.core.api.types.ServiceStatus.State getState()
        Returns the execution state of the Service.
        Returns:
      • getHealth

        public com.elastisys.autoscaler.core.api.types.ServiceStatus.Health getHealth()
        Returns the health of the Service.
        Returns:
      • getHealthDetail

        public java.lang.String getHealthDetail()
        Returns the (optional) message that provides a more detailed health message. This may be of particular interest when the Service is found to be in bad ServiceStatus.Health.
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object