use of org.eclipse.ecf.core.sharedobject.ReplicaSharedObjectDescription in project ecf by eclipse.
the class GenericSharedObject method replicate.
protected void replicate(ID remote) {
try {
// Get current group membership
ID[] group = getContext().getGroupMemberIDs();
if (group == null || group.length < 1) {
// we're done
return;
}
ReplicaSharedObjectDescription createInfo = getReplicaDescription(remote);
if (createInfo != null)
getContext().sendCreate(remote, createInfo);
else
return;
} catch (IOException e) {
// $NON-NLS-1$
log("Exception in replicate", e);
}
}
use of org.eclipse.ecf.core.sharedobject.ReplicaSharedObjectDescription in project ecf by eclipse.
the class HelloMessageSharedObject method getReplicaDescription.
protected ReplicaSharedObjectDescription getReplicaDescription(ID remoteID) {
Object[] remoteArgs = { message, sender };
HashMap map = new HashMap();
map.put(ARGS_PROPERTY_NAME, remoteArgs);
return new ReplicaSharedObjectDescription(getClass(), getID(), getConfig().getHomeContainerID(), map, getNextReplicateID());
}
use of org.eclipse.ecf.core.sharedobject.ReplicaSharedObjectDescription in project ecf by eclipse.
the class TestMessagingSharedObject method getReplicaDescription.
/* (non-Javadoc)
* @see org.eclipse.ecf.core.sharedobject.BaseSharedObject#getReplicaDescription(org.eclipse.ecf.core.identity.ID)
*/
protected ReplicaSharedObjectDescription getReplicaDescription(ID receiver) {
// Put primary state into properties and include in replica description
final Map properties = new HashMap();
properties.put(NAME_PROPERTY, name);
return new ReplicaSharedObjectDescription(this.getClass(), getConfig().getSharedObjectID(), getConfig().getHomeContainerID(), properties);
}
use of org.eclipse.ecf.core.sharedobject.ReplicaSharedObjectDescription in project ecf by eclipse.
the class TestSharedObject method getReplicaDescription.
/* (non-Javadoc)
* @see org.eclipse.ecf.core.sharedobject.BaseSharedObject#getReplicaDescription(org.eclipse.ecf.core.identity.ID)
*/
protected ReplicaSharedObjectDescription getReplicaDescription(ID receiver) {
// Put primary state into properties and include in replica description
final Map properties = new HashMap();
properties.put(NAME_PROPERTY, name);
return new ReplicaSharedObjectDescription(this.getClass(), getConfig().getSharedObjectID(), getConfig().getHomeContainerID(), properties);
}
use of org.eclipse.ecf.core.sharedobject.ReplicaSharedObjectDescription in project ecf by eclipse.
the class ShowURLSharedObject method getReplicaDescription.
protected ReplicaSharedObjectDescription getReplicaDescription(ID remoteMember) {
Object[] args = { receiver, url };
HashMap map = new HashMap();
map.put(ARGS_PROPERTY_NAME, args);
return new ReplicaSharedObjectDescription(getClass(), getID(), getHomeContainerID(), map, getNextReplicateID());
}
Aggregations