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 void
attachProtocol(Protocol p)
void
create()
void
destroy()
java.util.Map
dumpStats()
java.lang.String
getName()
java.lang.String
getPropertiesAsString()
boolean
getStatsEnabled()
java.lang.String
printStats()
void
resetStats()
void
setProperties(java.util.Properties p)
void
setStatsEnabled(boolean flag)
void
start()
void
stop()
-
-
-
Constructor Detail
-
Protocol
public Protocol()
-
Protocol
public Protocol(Protocol p)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceProtocolMBean
-
attachProtocol
public void attachProtocol(Protocol p)
-
getPropertiesAsString
public java.lang.String getPropertiesAsString()
- Specified by:
getPropertiesAsString
in interfaceProtocolMBean
-
setProperties
public void setProperties(java.util.Properties p)
- Specified by:
setProperties
in interfaceProtocolMBean
-
getStatsEnabled
public boolean getStatsEnabled()
- Specified by:
getStatsEnabled
in interfaceProtocolMBean
-
setStatsEnabled
public void setStatsEnabled(boolean flag)
- Specified by:
setStatsEnabled
in interfaceProtocolMBean
-
resetStats
public void resetStats()
- Specified by:
resetStats
in interfaceProtocolMBean
-
printStats
public java.lang.String printStats()
- Specified by:
printStats
in interfaceProtocolMBean
-
dumpStats
public java.util.Map dumpStats()
- Specified by:
dumpStats
in interfaceProtocolMBean
-
create
public void create() throws java.lang.Exception
- Specified by:
create
in interfaceProtocolMBean
- Throws:
java.lang.Exception
-
start
public void start() throws java.lang.Exception
- Specified by:
start
in interfaceProtocolMBean
- Throws:
java.lang.Exception
-
stop
public void stop()
- Specified by:
stop
in interfaceProtocolMBean
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceProtocolMBean
-
-