|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.zib.scalaris.jmx.MonitorNode
public class MonitorNode
Provides methods to monitor a specific Scalaris (Erlang) VM via JMX.
Constructor Summary | |
---|---|
MonitorNode(String node)
Creates a connection to the erlang VM of the given Scalaris node. |
Method Summary | |
---|---|
Double |
getCurLatencyAvg()
Gets the current, i.e. |
Double |
getCurLatencyStddev()
Gets the current, i.e. |
int |
getDhtNodes()
Gets the number of Scalaris nodes running in the VM the monitor is connected to. |
String |
getErlangVersion()
Gets the version of Erlang running in the VM the monitor is connected to. |
Map<Long,Double> |
getLatencyAvg()
Gets average latency values collected in the VM the monitor is connected to. |
Map<Long,Double> |
getLatencyStddev()
Gets the standard deviation of the latency values collected in the VM the monitor is connected to. |
String |
getScalarisVersion()
Gets the version of Scalaris running in the VM the monitor is connected to. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MonitorNode(String node) throws ConnectionException
node
- Scalaris node to connect with
ConnectionException
- if the connection fails or the connection policy is not
cloneableMethod Detail |
---|
public String getScalarisVersion() throws ConnectionException, UnknownException
MonitorNodeMBean
getScalarisVersion
in interface MonitorNodeMBean
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 String getErlangVersion() throws ConnectionException, UnknownException
MonitorNodeMBean
getErlangVersion
in interface MonitorNodeMBean
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 int getDhtNodes() throws ConnectionException, UnknownException
MonitorNodeMBean
getDhtNodes
in interface MonitorNodeMBean
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 Map<Long,Double> getLatencyAvg() throws ConnectionException, UnknownException
MonitorNodeMBean
getLatencyAvg
in interface MonitorNodeMBean
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 Map<Long,Double> getLatencyStddev() throws ConnectionException, UnknownException
MonitorNodeMBean
getLatencyStddev
in interface MonitorNodeMBean
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 Double getCurLatencyAvg() throws ConnectionException, UnknownException
MonitorNodeMBean
getCurLatencyAvg
in interface MonitorNodeMBean
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 Double getCurLatencyStddev() throws ConnectionException, UnknownException
MonitorNodeMBean
getCurLatencyStddev
in interface MonitorNodeMBean
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 occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |