A tree-like structure that is replicated across several members. Updates will be multicast to all group
members reliably and in the same order.
_add
public void _add(String fqn)
_add
public void _add(String fqn,
Serializable element)
_remove
public void _remove(String fqn)
_set
public void _set(String fqn,
Serializable element)
add
public void add(String fqn)
add
public void add(String fqn,
Serializable element)
block
public void block()
Block sending and receiving of messages until ViewAccepted is called
- block in interface MembershipListener
exists
public boolean exists(String fqn)
get
public Serializable get(String fqn)
getChannel
public Channel getChannel()
Returns the Channel the DistributedTree is connected to
getChildrenNames
public Vector getChildrenNames(String fqn)
Returns all children of a Node as strings
getGroupMembersNumber
public int getGroupMembersNumber()
Returns the number of current members joined to the group
getGroupName
public String getGroupName()
Returns the name of the group that the DistributedTree is connected to
getLocalAddress
public Object getLocalAddress()
print
public String print()
remove
public void remove(String fqn)
set
public void set(String fqn,
Serializable element)
start
public void start()
throws Exception
start
public void start(long timeout)
throws Exception
viewAccepted
public void viewAccepted(View new_view)
Called by JGroups to notify the target object of a change of membership.
No long running actions should be done in this callback in the case of Ensemble,
as this would block Ensemble. If some long running action needs to be performed,
it should be done in a separate thread (cf. ../Tests/QuoteServer.java
).
- viewAccepted in interface MembershipListener