public final class HealthHistory extends Object implements org.jvnet.hk2.config.ConfigListener
| Modifier and Type | Class and Description |
|---|---|
static class |
HealthHistory.InstanceHealth |
static class |
HealthHistory.STATE |
| Modifier and Type | Field and Description |
|---|---|
static long |
NOTIME
Used when no time information is known, for instance at
cluster startup before an instance has started.
|
| Constructor and Description |
|---|
HealthHistory(Cluster cluster) |
| Modifier and Type | Method and Description |
|---|---|
org.jvnet.hk2.config.UnprocessedChangeEvents |
changed(PropertyChangeEvent[] events) |
HealthHistory.InstanceHealth |
getHealthByInstance(String name)
Returns the state/time of a specific instance.
|
Set<String> |
getInstances()
Returns a copy of the instance names.
|
List<String> |
getInstancesByState(HealthHistory.STATE targetState)
The returned list may be modified without affecting
the information in the HealthHistory object.
|
void |
updateHealth(com.sun.enterprise.ee.cms.core.Signal signal)
Called by GMS subsystem to update the health of an instance.
|
public static final long NOTIME
public HealthHistory(Cluster cluster)
public HealthHistory.InstanceHealth getHealthByInstance(String name)
public List<String> getInstancesByState(HealthHistory.STATE targetState)
public void updateHealth(com.sun.enterprise.ee.cms.core.Signal signal)
public org.jvnet.hk2.config.UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
changed in interface org.jvnet.hk2.config.ConfigListenerCopyright © 2017. All rights reserved.