| java.lang.Object org.jgroups.blocks.DistributedTree
Inner Class :public interface DistributedTreeListener | |
Inner Class :public interface ViewListener | |
Method Summary | |
public void | _add(String fqn) | public void | _add(String fqn, Serializable element) | public void | _remove(String fqn) | public void | _reset(String fqn, Serializable element) | public void | _set(String fqn, Serializable element) | public void | add(String fqn) | public void | add(String fqn, Serializable element) | public void | add(String fqn, Serializable element, int timeout) | public void | addDistributedTreeListener(DistributedTreeListener listener) | public void | addViewListener(ViewListener listener) | public void | block() | public boolean | exists(String fqn) | Node | findNode(String fqn) | public Serializable | get(String fqn) | public Channel | getChannel() | Vector | getChildren(String fqn) | public Vector | getChildrenNames(String fqn) | public int | getGroupMembersNumber() | public String | getGroupName() | public Object | getLocalAddress() | public byte[] | getState() | void | notifyAllNodesCreated(Node curr, String tmp_fqn) Generates NodeAdded notifications for all nodes of the tree. | void | notifyNodeAdded(String fqn, Serializable element) | void | notifyNodeModified(String fqn, Serializable old_element, Serializable new_element) | void | notifyNodeRemoved(String fqn) | void | notifyViewChange(Vector new_mbrs, Vector old_mbrs) | public String | print() | public void | receive(Message msg) | public void | remove(String fqn) | public void | remove(String fqn, int timeout) | public void | removeDistributedTreeListener(DistributedTreeListener listener) | public void | removeViewListener(ViewListener listener) | public void | reset(String fqn, Serializable element) | public void | reset(String fqn, Serializable element, int timeout) | void | sendViewChangeNotifications(Vector new_mbrs, Vector old_mbrs) | public void | set(String fqn, Serializable element) | public void | set(String fqn, Serializable element, int timeout) | public void | setDeadlockDetection(boolean flag) | public void | setState(byte[] data) | public void | start() | public void | start(long timeout) | public void | stop() | public void | suspect(Address suspected_mbr) | public void | viewAccepted(View new_view) |
log | final protected static Log log(Code) | | |
state_timeout | final long state_timeout(Code) | | |
DistributedTree | public DistributedTree()(Code) | | |
_reset | public void _reset(String fqn, Serializable element)(Code) | | similar to set, but does not error if node does not exist, but rather does an add instead
|
addDistributedTreeListener | public void addDistributedTreeListener(DistributedTreeListener listener)(Code) | | |
addViewListener | public void addViewListener(ViewListener listener)(Code) | | |
block | public void block()(Code) | | Block sending and receiving of messages until ViewAccepted is called
|
getChannel | public Channel getChannel()(Code) | | Returns the Channel the DistributedTree is connected to
Channel |
getChildrenNames | public Vector getChildrenNames(String fqn)(Code) | | Returns all children of a Node as strings
|
getGroupMembersNumber | public int getGroupMembersNumber()(Code) | | Returns the number of current members joined to the group
int |
getGroupName | public String getGroupName()(Code) | | Returns the name of the group that the DistributedTree is connected to
String |
getState | public byte[] getState()(Code) | | Return a copy of the tree
|
notifyAllNodesCreated | void notifyAllNodesCreated(Node curr, String tmp_fqn)(Code) | | Generates NodeAdded notifications for all nodes of the tree. This is called whenever the tree is
initially retrieved (state transfer)
|
removeDistributedTreeListener | public void removeDistributedTreeListener(DistributedTreeListener listener)(Code) | | |
removeViewListener | public void removeViewListener(ViewListener listener)(Code) | | |
reset | public void reset(String fqn, Serializable element)(Code) | | resets an existing node, useful after a merge when you want to tell other
members of your state, but do not wish to remove and then add as two separate calls
|
reset | public void reset(String fqn, Serializable element, int timeout)(Code) | | resets an existing node, useful after a merge when you want to tell other
members of your state, but do not wish to remove and then add as two separate calls
|
sendViewChangeNotifications | void sendViewChangeNotifications(Vector new_mbrs, Vector old_mbrs)(Code) | | |
setDeadlockDetection | public void setDeadlockDetection(boolean flag)(Code) | | |
setState | public void setState(byte[] data)(Code) | | |
suspect | public void suspect(Address suspected_mbr)(Code) | | Called when a member is suspected
|
viewAccepted | public void viewAccepted(View new_view)(Code) | | |
|
|