|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.zib.scalaris.jmx.MonitorService
public class MonitorService
Provides methods to monitor a specific Scalaris (Erlang) VM via JMX.
| Constructor Summary | |
|---|---|
MonitorService(String node)
Creates a connection to the erlang VM of the given Scalaris node. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MonitorService(String node)
throws ConnectionException
node - Scalaris node to connect with
ConnectionException - if the connection fails or the connection policy is not
cloneable| Method Detail |
|---|
public Long getTotalLoad()
throws ConnectionException,
UnknownException
MonitorServiceMBean
getTotalLoad 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 cookie
UnknownException - if any other error occurs
public Long getNodes()
throws ConnectionException,
UnknownException
MonitorServiceMBean
getNodes 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 cookie
UnknownException - if any other error occurs
public Map<Long,Double> getLatencyAvg()
throws ConnectionException,
UnknownException
MonitorServiceMBean
getLatencyAvg 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 cookie
UnknownException - if any other error occurs
public Map<Long,Double> getLatencyStddev()
throws ConnectionException,
UnknownException
MonitorServiceMBean
getLatencyStddev 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 cookie
UnknownException - if any other error occurs
public Double getCurLatencyAvg()
throws ConnectionException,
UnknownException
MonitorServiceMBean
getCurLatencyAvg 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 cookie
UnknownException - if any other error occurs
public Double getCurLatencyStddev()
throws ConnectionException,
UnknownException
MonitorServiceMBean
getCurLatencyStddev 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 cookie
UnknownException - if any other error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||