Package org.jgroups.jmx.protocols
Class STATS
- java.lang.Object
-
- org.jgroups.jmx.Protocol
-
- org.jgroups.jmx.protocols.STATS
-
- All Implemented Interfaces:
ProtocolMBean,STATSMBean
public class STATS extends Protocol implements STATSMBean
- Version:
- $Id: STATS.java,v 1.1 2005/06/07 10:17:26 belaban Exp $
- Author:
- Bela Ban
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachProtocol(Protocol p)longgetReceivedBytes()longgetReceivedMcastBytes()longgetReceivedMcastMessages()longgetReceivedMessages()longgetReceivedUnicastBytes()longgetReceivedUnicastMessages()longgetSentBytes()longgetSentMcastBytes()longgetSentMcastMessages()longgetSentMessages()longgetSentUnicastBytes()longgetSentUnicastMessages()java.lang.StringprintStats()-
Methods inherited from class org.jgroups.jmx.Protocol
create, destroy, dumpStats, getName, getPropertiesAsString, getStatsEnabled, resetStats, setProperties, setStatsEnabled, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgroups.jmx.ProtocolMBean
create, destroy, dumpStats, getName, getPropertiesAsString, getStatsEnabled, resetStats, setProperties, setStatsEnabled, start, stop
-
-
-
-
Constructor Detail
-
STATS
public STATS()
-
STATS
public STATS(Protocol p)
-
-
Method Detail
-
attachProtocol
public void attachProtocol(Protocol p)
- Overrides:
attachProtocolin classProtocol
-
getSentMessages
public long getSentMessages()
- Specified by:
getSentMessagesin interfaceSTATSMBean
-
getSentBytes
public long getSentBytes()
- Specified by:
getSentBytesin interfaceSTATSMBean
-
getSentUnicastMessages
public long getSentUnicastMessages()
- Specified by:
getSentUnicastMessagesin interfaceSTATSMBean
-
getSentUnicastBytes
public long getSentUnicastBytes()
- Specified by:
getSentUnicastBytesin interfaceSTATSMBean
-
getSentMcastMessages
public long getSentMcastMessages()
- Specified by:
getSentMcastMessagesin interfaceSTATSMBean
-
getSentMcastBytes
public long getSentMcastBytes()
- Specified by:
getSentMcastBytesin interfaceSTATSMBean
-
getReceivedMessages
public long getReceivedMessages()
- Specified by:
getReceivedMessagesin interfaceSTATSMBean
-
getReceivedBytes
public long getReceivedBytes()
- Specified by:
getReceivedBytesin interfaceSTATSMBean
-
getReceivedUnicastMessages
public long getReceivedUnicastMessages()
- Specified by:
getReceivedUnicastMessagesin interfaceSTATSMBean
-
getReceivedUnicastBytes
public long getReceivedUnicastBytes()
- Specified by:
getReceivedUnicastBytesin interfaceSTATSMBean
-
getReceivedMcastMessages
public long getReceivedMcastMessages()
- Specified by:
getReceivedMcastMessagesin interfaceSTATSMBean
-
getReceivedMcastBytes
public long getReceivedMcastBytes()
- Specified by:
getReceivedMcastBytesin interfaceSTATSMBean
-
printStats
public java.lang.String printStats()
- Specified by:
printStatsin interfaceProtocolMBean- Specified by:
printStatsin interfaceSTATSMBean- Overrides:
printStatsin classProtocol
-
-