Class ServiceStatus
java.lang.Object
org.apache.hadoop.yarn.service.api.records.BaseResource
org.apache.hadoop.yarn.service.api.records.ServiceStatus
- All Implemented Interfaces:
Serializable
The current status of a submitted service, returned as a response to the
GET API.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn error code specific to a scenario which service owners should be able to use to understand the failure in addition to the diagnostic information.diagnostics(String diagnostics) Diagnostic information (if any) for the reason of the current state of the service.booleangetCode()getState()inthashCode()voidvoidsetDiagnostics(String diagnostics) voidsetState(ServiceState state) state(ServiceState state) Service state.toString()Methods inherited from class org.apache.hadoop.yarn.service.api.records.BaseResource
getUri, setUri
-
Constructor Details
-
ServiceStatus
public ServiceStatus()
-
-
Method Details
-
diagnostics
Diagnostic information (if any) for the reason of the current state of the service. It typically has a non-null value, if the service is in a non-running state. -
getDiagnostics
-
setDiagnostics
-
state
Service state. -
getState
-
setState
-
code
An error code specific to a scenario which service owners should be able to use to understand the failure in addition to the diagnostic information. -
getCode
-
setCode
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classBaseResource
-