org.jgroups.jmx
Class Protocol

java.lang.Object
  extended by 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

Constructor Summary
Protocol()
           
Protocol(Protocol p)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Protocol

public Protocol()

Protocol

public Protocol(Protocol p)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface ProtocolMBean

attachProtocol

public void attachProtocol(Protocol p)

getPropertiesAsString

public java.lang.String getPropertiesAsString()
Specified by:
getPropertiesAsString in interface ProtocolMBean

setProperties

public void setProperties(java.util.Properties p)
Specified by:
setProperties in interface ProtocolMBean

getStatsEnabled

public boolean getStatsEnabled()
Specified by:
getStatsEnabled in interface ProtocolMBean

setStatsEnabled

public void setStatsEnabled(boolean flag)
Specified by:
setStatsEnabled in interface ProtocolMBean

resetStats

public void resetStats()
Specified by:
resetStats in interface ProtocolMBean

printStats

public java.lang.String printStats()
Specified by:
printStats in interface ProtocolMBean

dumpStats

public java.util.Map dumpStats()
Specified by:
dumpStats in interface ProtocolMBean

create

public void create()
            throws java.lang.Exception
Specified by:
create in interface ProtocolMBean
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface ProtocolMBean
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface ProtocolMBean

destroy

public void destroy()
Specified by:
destroy in interface ProtocolMBean


Copyright © 1998-2008 Bela Ban. All Rights Reserved.