org.jgroups.jmx
Interface JChannelMBean
- All Known Implementing Classes:
- JChannel
public interface JChannelMBean
- Version:
- $Id: JChannelMBean.java,v 1.7 2005/11/08 13:54:04 belaban Exp $
- Author:
- Bela Ban
create
void create()
throws java.lang.Exception
- Throws:
java.lang.Exception
start
void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
void stop()
destroy
void destroy()
getChannel
JChannel getChannel()
getProperties
java.lang.String getProperties()
setProperties
void setProperties(java.lang.String props)
getVersion
java.lang.String getVersion()
getObjectName
java.lang.String getObjectName()
setObjectName
void setObjectName(java.lang.String name)
getNumberOfTasksInTimer
int getNumberOfTasksInTimer()
dumpTimerQueue
java.lang.String dumpTimerQueue()
setClusterConfig
void setClusterConfig(org.w3c.dom.Element el)
- To configure via XML file
getGroupName
java.lang.String getGroupName()
setGroupName
void setGroupName(java.lang.String group_name)
getClusterName
java.lang.String getClusterName()
setClusterName
void setClusterName(java.lang.String cluster_name)
getReceiveViewEvents
boolean getReceiveViewEvents()
setReceiveViewEvents
void setReceiveViewEvents(boolean flag)
getReceiveSuspectEvents
boolean getReceiveSuspectEvents()
setReceiveSuspectEvents
void setReceiveSuspectEvents(boolean flag)
getReceiveBlockEvents
boolean getReceiveBlockEvents()
setReceiveBlockEvents
void setReceiveBlockEvents(boolean flag)
getReceiveStateEvents
boolean getReceiveStateEvents()
setReceiveStateEvents
void setReceiveStateEvents(boolean flag)
getReceiveLocalMessages
boolean getReceiveLocalMessages()
setReceiveLocalMessages
void setReceiveLocalMessages(boolean flag)
getAutoReconnect
boolean getAutoReconnect()
setAutoReconnect
void setAutoReconnect(boolean flag)
getAutoGetState
boolean getAutoGetState()
setAutoGetState
void setAutoGetState(boolean flag)
suspend
void suspend()
resume
void resume()
isSuspended
boolean isSuspended()
dumpStats
java.util.Map dumpStats()
getView
View getView()
getViewAsString
java.lang.String getViewAsString()
getLocalAddress
Address getLocalAddress()
getLocalAddressAsString
java.lang.String getLocalAddressAsString()
setChannelListener
void setChannelListener(ChannelListener channel_listener)
getStatsEnabled
boolean getStatsEnabled()
setStatsEnabled
void setStatsEnabled(boolean flag)
resetStats
void resetStats()
getSentMessages
long getSentMessages()
getSentBytes
long getSentBytes()
getReceivedMessages
long getReceivedMessages()
getReceivedBytes
long getReceivedBytes()
isOpen
boolean isOpen()
isConnected
boolean isConnected()
getNumMessages
int getNumMessages()
dumpQueue
java.lang.String dumpQueue()
printProtocolSpec
java.lang.String printProtocolSpec(boolean include_properties)
toString
java.lang.String toString(boolean print_details)
connect
void connect(java.lang.String channel_name)
throws ChannelException,
ChannelClosedException
- Throws:
ChannelException
ChannelClosedException
disconnect
void disconnect()
close
void close()
shutdown
void shutdown()
send
void send(Message msg)
throws ChannelNotConnectedException,
ChannelClosedException
- Throws:
ChannelNotConnectedException
ChannelClosedException
send
void send(Address dst,
Address src,
java.io.Serializable obj)
throws ChannelNotConnectedException,
ChannelClosedException
- Throws:
ChannelNotConnectedException
ChannelClosedException
sendToAll
void sendToAll(java.lang.String msg)
throws ChannelNotConnectedException,
ChannelClosedException
- Throws:
ChannelNotConnectedException
ChannelClosedException
down
void down(Event evt)
- Deprecated.
- Parameters:
evt
-
receive
java.lang.Object receive(long timeout)
throws ChannelNotConnectedException,
ChannelClosedException,
TimeoutException
- Throws:
ChannelNotConnectedException
ChannelClosedException
TimeoutException
peek
java.lang.Object peek(long timeout)
throws ChannelNotConnectedException,
ChannelClosedException,
TimeoutException
- Throws:
ChannelNotConnectedException
ChannelClosedException
TimeoutException
blockOk
void blockOk()
getState
boolean getState(Address target,
long timeout)
throws ChannelNotConnectedException,
ChannelClosedException
- Throws:
ChannelNotConnectedException
ChannelClosedException
returnState
void returnState(byte[] state)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.