org.jgroups.jmx
Class Protocol

java.lang.Object
  extended byorg.jgroups.jmx.Protocol
All Implemented Interfaces:
ProtocolMBean
Direct Known Subclasses:
Discovery, FC, FD, FD_SOCK, FRAG, FRAG2, GMS, MERGE2, NAKACK, STABLE, STATE_TRANSFER, STATS, TP, UNICAST, VIEW_SYNC

public class Protocol
extends java.lang.Object
implements ProtocolMBean

Version:
$Id: Protocol.java,v 1.8 2005/08/16 12:58:58 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()
           
 boolean getDownThread()
           
 java.lang.String getName()
           
 java.lang.String getPropertiesAsString()
           
 boolean getStatsEnabled()
           
 boolean getUpThread()
           
 boolean isTrace()
           
 boolean isWarn()
           
 java.lang.String printStats()
           
 void resetStats()
           
 void setObserver(ProtocolObserver observer)
           
 void setProperties(java.util.Properties p)
           
 void setStatsEnabled(boolean flag)
           
 void setTrace(boolean trace)
           
 void setWarn(boolean warn)
           
 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

isTrace

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

setTrace

public void setTrace(boolean trace)
Specified by:
setTrace in interface ProtocolMBean

isWarn

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

setWarn

public void setWarn(boolean warn)
Specified by:
setWarn 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

getUpThread

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

getDownThread

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

setObserver

public void setObserver(ProtocolObserver observer)
Specified by:
setObserver 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-2005 Bela Ban. All Rights Reserved.