public class Monitor
extends java.lang.Object
| Modifier and Type | Class | 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 | Description |
|---|---|
Monitor(java.lang.String node) |
Creates a connection to the erlang VM of the given Scalaris node.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
closeConnection() |
Closes the transaction's connection to a scalaris node.
|
static java.lang.Double |
getCurrentPerfValue(java.util.Map<java.lang.Long,java.lang.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(java.lang.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 java.lang.Double getCurrentPerfValue(java.util.Map<java.lang.Long,java.lang.Double> map)
Monitor.GetNodePerformanceResult or
Monitor.GetServicePerformanceResult.map - the map to extract from