public class Monitor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Monitor.GetNodeInfoResult
Plain old data object for results of
getNodeInfo(). |
static class |
Monitor.GetNodePerformanceResult
Plain old data object for results of
getNodePerformance(). |
static class |
Monitor.GetServiceInfoResult
Plain old data object for results of
getServiceInfo(). |
static class |
Monitor.GetServicePerformanceResult
Plain old data object for results of
getServicePerformance(). |
| Constructor and Description |
|---|
Monitor(String node)
Creates a connection to the erlang VM of the given Scalaris node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection()
Closes the transaction's connection to a scalaris node.
|
static Double |
getCurrentPerfValue(Map<Long,Double> map)
Extracts the current performance value of a timestamp-to-double map like
in the members of
Monitor.GetNodePerformanceResult or
Monitor.GetServicePerformanceResult. |
Monitor.GetNodeInfoResult |
getNodeInfo()
Gets some information about the VM and Scalaris.
|
Monitor.GetNodePerformanceResult |
getNodePerformance()
Gets some information about the VM and Scalaris.
|
Monitor.GetServiceInfoResult |
getServiceInfo()
Gets some information about the Scalaris ring.
|
Monitor.GetServicePerformanceResult |
getServicePerformance()
Gets some information about the Scalaris ring.
|
public Monitor(String node) throws ConnectionException
node - Scalaris node to connect withConnectionException - if the connection fails or the connection policy is not
cloneablepublic Monitor.GetNodeInfoResult getNodeInfo() throws ConnectionException, UnknownException
ConnectionException - if the connection is not active or a communication error
occurs or an exit signal was received or the remote node
sends a message containing an invalid cookieUnknownException - if any other error occurspublic Monitor.GetNodePerformanceResult getNodePerformance() throws ConnectionException, UnknownException
ConnectionException - if the connection is not active or a communication error
occurs or an exit signal was received or the remote node
sends a message containing an invalid cookieUnknownException - if any other error occurspublic Monitor.GetServiceInfoResult getServiceInfo() throws ConnectionException, UnknownException
ConnectionException - if the connection is not active or a communication error
occurs or an exit signal was received or the remote node
sends a message containing an invalid cookieUnknownException - if any other error occurspublic Monitor.GetServicePerformanceResult getServicePerformance() throws ConnectionException, UnknownException
ConnectionException - if the connection is not active or a communication error
occurs or an exit signal was received or the remote node
sends a message containing an invalid cookieUnknownException - if any other error occurspublic void closeConnection()
ConnectionExceptions!public static Double getCurrentPerfValue(Map<Long,Double> map)
Monitor.GetNodePerformanceResult or
Monitor.GetServicePerformanceResult.map - the map to extract from