MonitorNodeMBeanpublic class MonitorNode extends java.lang.Object implements MonitorNodeMBean
| Constructor | Description |
|---|---|
MonitorNode(java.lang.String node) |
Creates a connection to the erlang VM of the given Scalaris node.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Double |
getCurLatencyAvg() |
Gets the current, i.e.
|
java.lang.Double |
getCurLatencyStddev() |
Gets the current, i.e.
|
int |
getDhtNodes() |
Gets the number of Scalaris nodes running in the VM the monitor is
connected to.
|
java.lang.String |
getErlangVersion() |
Gets the version of Erlang running in the VM the monitor is connected
to.
|
java.util.Map<java.lang.Long,java.lang.Double> |
getLatencyAvg() |
Gets average latency values collected in the VM the monitor is connected
to.
|
java.util.Map<java.lang.Long,java.lang.Double> |
getLatencyStddev() |
Gets the standard deviation of the latency values collected in the VM the
monitor is connected to.
|
java.lang.String |
getScalarisVersion() |
Gets the version of Scalaris running in the VM the monitor is connected
to.
|
public MonitorNode(java.lang.String node)
throws ConnectionException
node - Scalaris node to connect withConnectionException - if the connection fails or the connection policy is not
cloneablepublic java.lang.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 java.lang.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 java.util.Map<java.lang.Long,java.lang.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 java.util.Map<java.lang.Long,java.lang.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 java.lang.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 java.lang.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