MonitorServiceMBeanpublic class MonitorService extends java.lang.Object implements MonitorServiceMBean
| Constructor | Description |
|---|---|
MonitorService(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.
|
java.util.Map<java.lang.Long,java.lang.Double> |
getLatencyAvg() |
Gets average latency values of the whole Scalaris ring from 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 of the whole Scalaris
ring from the VM the monitor is connected to.
|
java.lang.Long |
getNodes() |
Gets the number of Scalaris nodes of the whole Scalaris ring from the VM
the monitor is connected to.
|
java.lang.Long |
getTotalLoad() |
Gets the total load of the whole Scalaris ring from the VM the monitor is
connected to.
|
public MonitorService(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.Long getTotalLoad()
throws ConnectionException,
UnknownException
MonitorServiceMBeangetTotalLoad in interface MonitorServiceMBeanConnectionException - 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.Long getNodes()
throws ConnectionException,
UnknownException
MonitorServiceMBeangetNodes in interface MonitorServiceMBeanConnectionException - 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
MonitorServiceMBeangetLatencyAvg in interface MonitorServiceMBeanConnectionException - 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
MonitorServiceMBeangetLatencyStddev in interface MonitorServiceMBeanConnectionException - 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
MonitorServiceMBeangetCurLatencyAvg in interface MonitorServiceMBeanConnectionException - 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
MonitorServiceMBeangetCurLatencyStddev in interface MonitorServiceMBeanConnectionException - 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