Package org.jgroups.jmx
Class Protocol
- java.lang.Object
-
- org.jgroups.jmx.Protocol
-
- All Implemented Interfaces:
ProtocolMBean
- Direct Known Subclasses:
BARRIER,Discovery,FC,FD,FD_ALL,FD_SOCK,FLUSH,FRAG,FRAG2,GMS,MERGE2,NAKACK,PARTITION,SEQUENCER,SFC,STABLE,STATE_TRANSFER,STATS,STREAMING_STATE_TRANSFER,TP,UNICAST,VIEW_SYNC
public class Protocol extends java.lang.Object implements ProtocolMBean
- Version:
- $Id: Protocol.java,v 1.12 2007/04/27 07:59:24 belaban Exp $
- Author:
- Bela Ban
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachProtocol(Protocol p)voidcreate()voiddestroy()java.util.MapdumpStats()java.lang.StringgetName()java.lang.StringgetPropertiesAsString()booleangetStatsEnabled()java.lang.StringprintStats()voidresetStats()voidsetProperties(java.util.Properties p)voidsetStatsEnabled(boolean flag)voidstart()voidstop()
-
-
-
Constructor Detail
-
Protocol
public Protocol()
-
Protocol
public Protocol(Protocol p)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceProtocolMBean
-
attachProtocol
public void attachProtocol(Protocol p)
-
getPropertiesAsString
public java.lang.String getPropertiesAsString()
- Specified by:
getPropertiesAsStringin interfaceProtocolMBean
-
setProperties
public void setProperties(java.util.Properties p)
- Specified by:
setPropertiesin interfaceProtocolMBean
-
getStatsEnabled
public boolean getStatsEnabled()
- Specified by:
getStatsEnabledin interfaceProtocolMBean
-
setStatsEnabled
public void setStatsEnabled(boolean flag)
- Specified by:
setStatsEnabledin interfaceProtocolMBean
-
resetStats
public void resetStats()
- Specified by:
resetStatsin interfaceProtocolMBean
-
printStats
public java.lang.String printStats()
- Specified by:
printStatsin interfaceProtocolMBean
-
dumpStats
public java.util.Map dumpStats()
- Specified by:
dumpStatsin interfaceProtocolMBean
-
create
public void create() throws java.lang.Exception- Specified by:
createin interfaceProtocolMBean- Throws:
java.lang.Exception
-
start
public void start() throws java.lang.Exception- Specified by:
startin interfaceProtocolMBean- Throws:
java.lang.Exception
-
stop
public void stop()
- Specified by:
stopin interfaceProtocolMBean
-
destroy
public void destroy()
- Specified by:
destroyin interfaceProtocolMBean
-
-