org.jgroups.jmx.protocols

Class STATS

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()
String
printStats()

Methods inherited from class org.jgroups.jmx.Protocol

attachProtocol, create, destroy, dumpStats, getDownThread, getName, getPropertiesAsString, getStatsEnabled, getUpThread, isTrace, isWarn, printStats, resetStats, setObserver, setProperties, setStatsEnabled, setTrace, setWarn, start, stop

Constructor Details

STATS

public STATS()

STATS

public STATS(Protocol p)

Method Details

attachProtocol

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

getReceivedBytes

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

getReceivedMcastBytes

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

getReceivedMcastMessages

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

getReceivedMessages

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

getReceivedUnicastBytes

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

getReceivedUnicastMessages

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

getSentBytes

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

getSentMcastBytes

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

getSentMcastMessages

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

getSentMessages

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

getSentUnicastBytes

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

getSentUnicastMessages

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

printStats

public String printStats()
Specified by:
printStats in interface STATSMBean
printStats in interface ProtocolMBean
Overrides:
printStats in interface Protocol

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.