org.jgroups.jmx

Class Protocol

Implemented Interfaces:
ProtocolMBean
Known Direct 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()
Map
dumpStats()
boolean
getDownThread()
String
getName()
String
getPropertiesAsString()
boolean
getStatsEnabled()
boolean
getUpThread()
boolean
isTrace()
boolean
isWarn()
String
printStats()
void
resetStats()
void
setObserver(ProtocolObserver observer)
void
setProperties(Properties p)
void
setStatsEnabled(boolean flag)
void
setTrace(boolean trace)
void
setWarn(boolean warn)
void
start()
void
stop()

Constructor Details

Protocol

public Protocol()

Protocol

public Protocol(Protocol p)

Method Details

attachProtocol

public void attachProtocol(Protocol p)

create

public void create()
            throws Exception
Specified by:
create in interface ProtocolMBean

destroy

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

dumpStats

public Map dumpStats()
Specified by:
dumpStats in interface ProtocolMBean

getDownThread

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

getName

public String getName()
Specified by:
getName in interface ProtocolMBean

getPropertiesAsString

public String getPropertiesAsString()
Specified by:
getPropertiesAsString in interface ProtocolMBean

getStatsEnabled

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

getUpThread

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

isTrace

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

isWarn

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

printStats

public String printStats()
Specified by:
printStats in interface ProtocolMBean

resetStats

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

setObserver

public void setObserver(ProtocolObserver observer)
Specified by:
setObserver in interface ProtocolMBean

setProperties

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

setStatsEnabled

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

setTrace

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

setWarn

public void setWarn(boolean warn)
Specified by:
setWarn in interface ProtocolMBean

start

public void start()
            throws Exception
Specified by:
start in interface ProtocolMBean

stop

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

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