public abstract class ChatCore extends java.lang.Object implements MessageListener, MembershipListener
| Constructor and Description |
|---|
ChatCore(java.lang.String props) |
| Modifier and Type | Method and Description |
|---|---|
void |
block()
Called (usually by the FLUSH protocol), as an indication that the member should stop sending messages.
|
void |
close() |
void |
disconnect() |
void |
dumpHist() |
byte[] |
getState()
Answers the group state; e.g., when joining.
|
protected void |
handleLeave() |
protected void |
handleSend(java.lang.String txt) |
void |
link() |
void |
receive(Message msg)
Called when a message is received.
|
void |
setState(byte[] state)
Sets the group state; e.g., when joining.
|
void |
stop() |
void |
suspect(Address suspected_mbr)
Called whenever a member is suspected of having crashed,
but has not yet been excluded.
|
void |
viewAccepted(View new_view)
Called when a change in membership has occurred.
|
public void link()
public void dumpHist()
public void receive(Message msg)
MessageListenerreceive in interface MessageListenerpublic byte[] getState()
MessageListenergetState in interface MessageListenerpublic void setState(byte[] state)
MessageListenersetState in interface MessageListenerpublic void viewAccepted(View new_view)
MembershipListenerChannel.connect(String) returns.viewAccepted in interface MembershipListenerpublic void suspect(Address suspected_mbr)
MembershipListenersuspect in interface MembershipListenerpublic void block()
MembershipListenerExtendedMembershipListener.unblock().
Note that block() is the equivalent of reception of a BlockEvent in the pull mode.block in interface MembershipListenerpublic void stop()
public void disconnect()
public void close()
protected void handleLeave()
protected void handleSend(java.lang.String txt)
Copyright ? 1998-2008 Bela Ban. All Rights Reserved.