public class MonitorService extends Object implements MonitorServiceMBean
| Constructor and Description |
|---|
MonitorService(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.
|
Map<Long,Double> |
getLatencyAvg()
Gets average latency values of the whole Scalaris ring from the VM the
monitor is connected to.
|
Map<Long,Double> |
getLatencyStddev()
Gets the standard deviation of the latency values of the whole Scalaris
ring from the VM the monitor is connected to.
|
Long |
getNodes()
Gets the number of Scalaris nodes of the whole Scalaris ring from the VM
the monitor is connected to.
|
Long |
getTotalLoad()
Gets the total load of the whole Scalaris ring from the VM the monitor is
connected to.
|
public MonitorService(String node) throws ConnectionException
node - Scalaris node to connect withConnectionException - if the connection fails or the connection policy is not
cloneablepublic 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 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 Map<Long,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 Map<Long,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 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 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