Class ServiceStatusType
- java.lang.Object
-
- com.elastisys.autoscaler.server.restapi.types.ServiceStatusType
-
public class ServiceStatusType extends java.lang.ObjectREST API request/response type that represents aServiceStatus.
-
-
Constructor Summary
Constructors Constructor Description ServiceStatusType(com.elastisys.autoscaler.core.api.types.ServiceStatus serviceStatus)Constructs aServiceStatusTypethat represents a certainServiceStatus.ServiceStatusType(com.elastisys.autoscaler.core.api.types.ServiceStatus.State state, com.elastisys.autoscaler.core.api.types.ServiceStatus.Health health, java.lang.String healthDetail)Constructs aServiceStatusTypethat represents a certainServiceStatus.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)com.elastisys.autoscaler.core.api.types.ServiceStatus.HealthgetHealth()Returns the health of theService.java.lang.StringgetHealthDetail()Returns the (optional) message that provides a more detailed health message.com.elastisys.autoscaler.core.api.types.ServiceStatus.StategetState()Returns the execution state of theService.inthashCode()java.lang.StringtoString()
-
-
-
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 aServiceStatusTypethat represents a certainServiceStatus.- Parameters:
state-health-healthDetail-
-
ServiceStatusType
public ServiceStatusType(com.elastisys.autoscaler.core.api.types.ServiceStatus serviceStatus)
Constructs aServiceStatusTypethat represents a certainServiceStatus.- Parameters:
serviceStatus- TheServiceStatusto represent.
-
-
Method Detail
-
getState
public com.elastisys.autoscaler.core.api.types.ServiceStatus.State getState()
Returns the execution state of theService.- Returns:
-
getHealth
public com.elastisys.autoscaler.core.api.types.ServiceStatus.Health getHealth()
Returns the health of theService.- 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 theServiceis found to be in badServiceStatus.Health.- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-