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
MonitorNodeMBeangetScalarisVersion in interface MonitorNodeMBeanConnectionException - 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
MonitorNodeMBeangetErlangVersion in interface MonitorNodeMBeanConnectionException - 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
MonitorNodeMBeangetDhtNodes in interface MonitorNodeMBeanConnectionException - 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
MonitorNodeMBeangetLatencyAvg in interface MonitorNodeMBeanConnectionException - 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
MonitorNodeMBeangetLatencyStddev in interface MonitorNodeMBeanConnectionException - 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
MonitorNodeMBeangetCurLatencyAvg in interface MonitorNodeMBeanConnectionException - 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
MonitorNodeMBeangetCurLatencyStddev in interface MonitorNodeMBeanConnectionException - 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