|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.zib.scalaris.Monitor
public class Monitor
Provides methods to monitor a specific Scalaris (Erlang) VM.
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
Monitor(String node)
Creates a connection to the erlang VM of the given Scalaris node. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Monitor(String node) throws ConnectionException
node
- Scalaris node to connect with
ConnectionException
- if the connection fails or the connection policy is not
cloneableMethod Detail |
---|
public 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 cookie
UnknownException
- 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 cookie
UnknownException
- 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 cookie
UnknownException
- 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 cookie
UnknownException
- if any other error occurspublic void closeConnection()
ConnectionException
s!
public static Double getCurrentPerfValue(Map<Long,Double> map)
Monitor.GetNodePerformanceResult
or
Monitor.GetServicePerformanceResult
.
map
- the map to extract from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |