org.jgroups.jmx.protocols
Class STATS

java.lang.Object
  extended byorg.jgroups.jmx.Protocol
      extended byorg.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

Constructor Summary
STATS()
           
STATS(Protocol p)
           
 
Method Summary
 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, getDownThread, getName, getPropertiesAsString, getStatsEnabled, getUpThread, isTrace, isWarn, resetStats, setObserver, setProperties, setStatsEnabled, setTrace, setWarn, 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, getDownThread, getName, getPropertiesAsString, getStatsEnabled, getUpThread, isTrace, isWarn, resetStats, setObserver, setProperties, setStatsEnabled, setTrace, setWarn, start, stop
 

Constructor Detail

STATS

public STATS()

STATS

public STATS(Protocol p)
Method Detail

attachProtocol

public void attachProtocol(Protocol p)
Overrides:
attachProtocol in class Protocol

getSentMessages

public long getSentMessages()
Specified by:
getSentMessages in interface STATSMBean

getSentBytes

public long getSentBytes()
Specified by:
getSentBytes in interface STATSMBean

getSentUnicastMessages

public long getSentUnicastMessages()
Specified by:
getSentUnicastMessages in interface STATSMBean

getSentUnicastBytes

public long getSentUnicastBytes()
Specified by:
getSentUnicastBytes in interface STATSMBean

getSentMcastMessages

public long getSentMcastMessages()
Specified by:
getSentMcastMessages in interface STATSMBean

getSentMcastBytes

public long getSentMcastBytes()
Specified by:
getSentMcastBytes in interface STATSMBean

getReceivedMessages

public long getReceivedMessages()
Specified by:
getReceivedMessages in interface STATSMBean

getReceivedBytes

public long getReceivedBytes()
Specified by:
getReceivedBytes in interface STATSMBean

getReceivedUnicastMessages

public long getReceivedUnicastMessages()
Specified by:
getReceivedUnicastMessages in interface STATSMBean

getReceivedUnicastBytes

public long getReceivedUnicastBytes()
Specified by:
getReceivedUnicastBytes in interface STATSMBean

getReceivedMcastMessages

public long getReceivedMcastMessages()
Specified by:
getReceivedMcastMessages in interface STATSMBean

getReceivedMcastBytes

public long getReceivedMcastBytes()
Specified by:
getReceivedMcastBytes in interface STATSMBean

printStats

public java.lang.String printStats()
Specified by:
printStats in interface STATSMBean
Overrides:
printStats in class Protocol


Copyright ? 1998-2005 Bela Ban. All Rights Reserved.