| java.lang.Object org.jgroups.Channel org.jgroups.JChannel org.jgroups.mux.MuxChannel
Method Summary | |
protected void | _close(boolean disconnect, boolean close_mq) | protected void | checkClosed() | protected void | checkNotConnected() | public synchronized void | close() | public synchronized void | connect(String channel_name) | public synchronized boolean | connect(String cluster_name, Address target, String state_id, long timeout) | public synchronized void | disconnect() | public void | down(Event evt) | public Map | dumpStats() | public JChannel | getChannel() | public String | getChannelName() | public String | getClusterName() | public View | getClusterView() Returns the JGroups view of a cluster, e.g. | public String | getId() | public Address | getLocalAddress() | public Multiplexer | getMultiplexer() | public Object | getOpt(int option) | public ProtocolStack | getProtocolStack() | public String | getStackName() | public boolean | getState(Address target, long timeout) | public boolean | getState(Address target, String state_id, long timeout) | public View | getView() Returns the service view, ie. | public boolean | isConnected() | public boolean | isOpen() | public synchronized void | open() | public void | returnState(byte[] state) | public void | returnState(byte[] state, String state_id) | public void | send(Message msg) | public void | send(Address dst, Address src, Serializable obj) | public void | setClosed(boolean f) | public void | setConnected(boolean f) | public void | setOpt(int option, Object value) | public synchronized void | shutdown() |
stack_name | final String stack_name(Code) | | The name of the JGroups stack, e.g. as defined in stacks.xml
|
_close | protected void _close(boolean disconnect, boolean close_mq)(Code) | | |
close | public synchronized void close()(Code) | | |
disconnect | public synchronized void disconnect()(Code) | | |
getChannel | public JChannel getChannel()(Code) | | This should never be used (just for testing) !
|
getClusterView | public View getClusterView()(Code) | | Returns the JGroups view of a cluster, e.g. if we have nodes A, B and C, then the view will
be {A,B,C}
The JGroups view |
getView | public View getView()(Code) | | Returns the service view, ie. the cluster view (see
MuxChannel.getView() ) minus the nodes on
which this service is not running, e.g. if S1 runs on A and C, and the cluster view is {A,B,C}, then the service
view is {A,C}
The service view (list of nodes on which this service is running) |
isConnected | public boolean isConnected()(Code) | | |
isOpen | public boolean isOpen()(Code) | | |
returnState | public void returnState(byte[] state)(Code) | | |
returnState | public void returnState(byte[] state, String state_id)(Code) | | |
setClosed | public void setClosed(boolean f)(Code) | | |
setConnected | public void setConnected(boolean f)(Code) | | |
shutdown | public synchronized void shutdown()(Code) | | |
Methods inherited from org.jgroups.JChannel | protected void _close(boolean disconnect, boolean close_mq)(Code)(Java Doc) public void blockOk()(Code)(Java Doc) protected void checkClosed() throws ChannelClosedException(Code)(Java Doc) protected void checkNotConnected() throws ChannelNotConnectedException(Code)(Java Doc) public synchronized void close()(Code)(Java Doc) final public void closeMessageQueue(boolean flush_entries)(Code)(Java Doc) public synchronized void connect(String cluster_name) throws ChannelException, ChannelClosedException(Code)(Java Doc) public synchronized boolean connect(String cluster_name, Address target, String state_id, long timeout) throws ChannelException(Code)(Java Doc) public synchronized void disconnect()(Code)(Java Doc) public void down(Event evt)(Code)(Java Doc) public String dumpQueue()(Code)(Java Doc) public Map dumpStats()(Code)(Java Doc) public String dumpTimerQueue()(Code)(Java Doc) public void enableStats(boolean stats)(Code)(Java Doc) public boolean flushSupported()(Code)(Java Doc) public boolean getAllStates(Vector targets, long timeout) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc) public String getChannelName()(Code)(Java Doc) public String getClusterName()(Code)(Java Doc) public Address getLocalAddress()(Code)(Java Doc) protected Log getLog()(Code)(Java Doc) public int getNumMessages()(Code)(Java Doc) public int getNumberOfTasksInTimer()(Code)(Java Doc) public Object getOpt(int option)(Code)(Java Doc) public String getProperties()(Code)(Java Doc) public ProtocolStack getProtocolStack()(Code)(Java Doc) public long getReceivedBytes()(Code)(Java Doc) public long getReceivedMessages()(Code)(Java Doc) public long getSentBytes()(Code)(Java Doc) public long getSentMessages()(Code)(Java Doc) public boolean getState(Address target, long timeout) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc) public boolean getState(Address target, String state_id, long timeout) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc) public View getView()(Code)(Java Doc) final protected void init(ProtocolStackConfigurator configurator) throws ChannelException(Code)(Java Doc) public boolean isConnected()(Code)(Java Doc) public boolean isOpen()(Code)(Java Doc) public synchronized void open() throws ChannelException(Code)(Java Doc) public Object peek(long timeout) throws ChannelNotConnectedException, ChannelClosedException, TimeoutException(Code)(Java Doc) public String printProtocolSpec(boolean include_properties)(Code)(Java Doc) public Object receive(long timeout) throws ChannelNotConnectedException, ChannelClosedException, TimeoutException(Code)(Java Doc) public void resetStats()(Code)(Java Doc) public void returnState(byte[] state)(Code)(Java Doc) public void returnState(byte[] state, String state_id)(Code)(Java Doc) public void send(Message msg) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc) public void send(Address dst, Address src, Serializable obj) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc) public void setOpt(int option, Object value)(Code)(Java Doc) public synchronized void shutdown()(Code)(Java Doc) public boolean startFlush(long timeout, int numberOfAttempts, boolean automatic_resume)(Code)(Java Doc) public boolean startFlush(long timeout, boolean automatic_resume)(Code)(Java Doc) public boolean statsEnabled()(Code)(Java Doc) public void stopFlush()(Code)(Java Doc) public String toString(boolean details)(Code)(Java Doc) public void up(Event evt)(Code)(Java Doc)
|
Methods inherited from org.jgroups.Channel | public synchronized void addChannelListener(ChannelListener listener)(Code)(Java Doc) abstract public void blockOk()(Code)(Java Doc) abstract public void close()(Code)(Java Doc) abstract public void connect(String cluster_name) throws ChannelException, ChannelClosedException(Code)(Java Doc) abstract public boolean connect(String cluster_name, Address target, String state_id, long timeout) throws ChannelException(Code)(Java Doc) abstract public void disconnect()(Code)(Java Doc) public void down(Event evt)(Code)(Java Doc) public String dumpQueue()(Code)(Java Doc) abstract public Map dumpStats()(Code)(Java Doc) abstract public boolean flushSupported()(Code)(Java Doc) abstract public boolean getAllStates(Vector targets, long timeout) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc) abstract public String getChannelName()(Code)(Java Doc) abstract public String getClusterName()(Code)(Java Doc) abstract public Address getLocalAddress()(Code)(Java Doc) abstract protected Log getLog()(Code)(Java Doc) public int getNumMessages()(Code)(Java Doc) abstract public Object getOpt(int option)(Code)(Java Doc) abstract public boolean getState(Address target, long timeout) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc) abstract public boolean getState(Address target, String state_id, long timeout) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc) abstract public View getView()(Code)(Java Doc) abstract public boolean isConnected()(Code)(Java Doc) abstract public boolean isOpen()(Code)(Java Doc) protected void notifyChannelClosed(Channel c)(Code)(Java Doc) protected void notifyChannelConnected(Channel c)(Code)(Java Doc) protected void notifyChannelDisconnected(Channel c)(Code)(Java Doc) protected void notifyChannelReconnected(Address addr)(Code)(Java Doc) protected void notifyChannelShunned()(Code)(Java Doc) public void open() throws ChannelException(Code)(Java Doc) public static String option2String(int option)(Code)(Java Doc) abstract public Object peek(long timeout) throws ChannelNotConnectedException, ChannelClosedException, TimeoutException(Code)(Java Doc) abstract public Object receive(long timeout) throws ChannelNotConnectedException, ChannelClosedException, TimeoutException(Code)(Java Doc) public synchronized void removeChannelListener(ChannelListener listener)(Code)(Java Doc) abstract public void returnState(byte[] state)(Code)(Java Doc) abstract public void returnState(byte[] state, String state_id)(Code)(Java Doc) abstract public void send(Message msg) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc) abstract public void send(Address dst, Address src, Serializable obj) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc) public void setChannelListener(ChannelListener channel_listener)(Code)(Java Doc) abstract public void setOpt(int option, Object value)(Code)(Java Doc) public void setReceiver(Receiver r)(Code)(Java Doc) public void setUpHandler(UpHandler up_handler)(Code)(Java Doc) abstract protected void shutdown()(Code)(Java Doc) abstract public boolean startFlush(long timeout, boolean automatic_resume)(Code)(Java Doc) abstract public void stopFlush()(Code)(Java Doc)
|
|
|