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 void
attachProtocol(Protocol p)
long
getReceivedBytes()
long
getReceivedMcastBytes()
long
getReceivedMcastMessages()
long
getReceivedMessages()
long
getReceivedUnicastBytes()
long
getReceivedUnicastMessages()
long
getSentBytes()
long
getSentMcastBytes()
long
getSentMcastMessages()
long
getSentMessages()
long
getSentUnicastBytes()
long
getSentUnicastMessages()
java.lang.String
printStats()
-
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:
attachProtocol
in classProtocol
-
getSentMessages
public long getSentMessages()
- Specified by:
getSentMessages
in interfaceSTATSMBean
-
getSentBytes
public long getSentBytes()
- Specified by:
getSentBytes
in interfaceSTATSMBean
-
getSentUnicastMessages
public long getSentUnicastMessages()
- Specified by:
getSentUnicastMessages
in interfaceSTATSMBean
-
getSentUnicastBytes
public long getSentUnicastBytes()
- Specified by:
getSentUnicastBytes
in interfaceSTATSMBean
-
getSentMcastMessages
public long getSentMcastMessages()
- Specified by:
getSentMcastMessages
in interfaceSTATSMBean
-
getSentMcastBytes
public long getSentMcastBytes()
- Specified by:
getSentMcastBytes
in interfaceSTATSMBean
-
getReceivedMessages
public long getReceivedMessages()
- Specified by:
getReceivedMessages
in interfaceSTATSMBean
-
getReceivedBytes
public long getReceivedBytes()
- Specified by:
getReceivedBytes
in interfaceSTATSMBean
-
getReceivedUnicastMessages
public long getReceivedUnicastMessages()
- Specified by:
getReceivedUnicastMessages
in interfaceSTATSMBean
-
getReceivedUnicastBytes
public long getReceivedUnicastBytes()
- Specified by:
getReceivedUnicastBytes
in interfaceSTATSMBean
-
getReceivedMcastMessages
public long getReceivedMcastMessages()
- Specified by:
getReceivedMcastMessages
in interfaceSTATSMBean
-
getReceivedMcastBytes
public long getReceivedMcastBytes()
- Specified by:
getReceivedMcastBytes
in interfaceSTATSMBean
-
printStats
public java.lang.String printStats()
- Specified by:
printStats
in interfaceProtocolMBean
- Specified by:
printStats
in interfaceSTATSMBean
- Overrides:
printStats
in classProtocol
-
-