public final class ServiceResourceStatistic extends Object implements Serializable
| Constructor and Description |
|---|
ServiceResourceStatistic(Ref serviceRef, Exception exception)
Constructor
|
ServiceResourceStatistic(Ref serviceRef, Map<ResourceType,ResourceStatistic[]> resourceStatisticMap, String[] missingServers, long collectionTimestamp)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ResourceStatistic[] |
getAllResourceStatistics()
Gets statistics for all resources.
|
long |
getCollectionTimestamp()
Gets the time the statistics were collected from the cluster.
|
String[] |
getMissingServers()
Returns array of missing servers.
|
ResourceStatistic[] |
getResourceStatisticsByType(ResourceType type)
Gets statistics for all resources of specified type.
|
Ref |
getServiceRef()
Gets reference of service of which statistical information is available in this object.
|
public ServiceResourceStatistic(Ref serviceRef, Map<ResourceType,ResourceStatistic[]> resourceStatisticMap, String[] missingServers, long collectionTimestamp) throws IllegalArgumentException
serviceRef -resourceStatisticMap -missingServers -collectionTimestamp -IllegalArgumentExceptionpublic ServiceResourceStatistic(Ref serviceRef, Exception exception) throws IllegalArgumentException
serviceRef -exception -IllegalArgumentExceptionpublic Ref getServiceRef()
public long getCollectionTimestamp()
throws IllegalStateException
IllegalStateException - If not collection timestamp is not set.public ResourceStatistic[] getAllResourceStatistics() throws InvalidServiceRefException, MonitoringNotEnabledException, MonitoringException
InvalidServiceRefException - If service reference is invalid or service is deleted.MonitoringNotEnabledException - If statistics not found.MonitoringException - If operation fails.public ResourceStatistic[] getResourceStatisticsByType(ResourceType type) throws InvalidServiceRefException, MonitoringNotEnabledException, MonitoringException
type - Resource type.InvalidServiceRefException - If service reference is invalid or service is deleted.MonitoringNotEnabledException - If statistics not found.MonitoringException - If operation fails.public String[] getMissingServers() throws IllegalStateException
IllegalStateException - If not collection timestamp is not set.