public class MonitorNode extends Object implements MonitorNodeMBean
Constructor and Description |
---|
MonitorNode(String node)
Creates a connection to the erlang VM of the given Scalaris node.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public MonitorNode(String node) throws ConnectionException
node
- Scalaris node to connect withConnectionException
- if the connection fails or the connection policy is not
cloneablepublic 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 cookieUnknownException
- 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 cookieUnknownException
- 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 cookieUnknownException
- 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 cookieUnknownException
- 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 cookieUnknownException
- 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 cookieUnknownException
- 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 cookieUnknownException
- if any other error occurs