public class Heartbeat extends Object
| Constructor and Description |
|---|
Heartbeat() |
Heartbeat(String serviceType,
String serviceInstanceId,
boolean isAvailable) |
Heartbeat(String serviceType,
String serviceInstanceId,
boolean isAvailable,
Map<String,String> detail) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getDetails()
Gets the optional status details which might include additional statistics on health.
|
String |
getServiceInstanceId()
Gets the identifier for a particular instance of a service such as an IP address.
|
String |
getServiceType()
Gets the service type.
|
Long |
getTimestamp()
Gets the epoch time of the health check.
|
boolean |
isAvailable()
Gets whether or not the component is available
|
void |
setAvailable(boolean isAvailable)
Sets whether or not the component is available
|
void |
setDetails(Map<String,String> detail)
Sets the optional status details which might include additional statistics on health.
|
void |
setServiceInstanceId(String serviceInstanceId)
Sets the identifier for a particular instance of a component.
|
void |
setServiceType(String serviceType)
Sets the service type.
|
void |
setTimestamp(Long timestamp)
Sets the epoch time of the health check.
|
public String getServiceType()
public void setServiceType(String serviceType)
serviceType - public String getServiceInstanceId()
public void setServiceInstanceId(String serviceInstanceId)
serviceInstanceId - public Long getTimestamp()
public void setTimestamp(Long timestamp)
time - public boolean isAvailable()
public void setAvailable(boolean isAvailable)
isAvailable - public Map<String,String> getDetails()
Copyright © 2018 Alfresco Software. All rights reserved.