handleJoined();
else if (getContext().isGroupManager())
// some other container joined and we're the server
handleJoined(e.getTargetID());
} else if (event instanceof IContainerDisconnectedEvent) {
IContainerDisconnectedEvent e = (IContainerDisconnectedEvent) event;
// some other container departed -- same as peer deactivation
if (!e.getTargetID().equals(
getContext().getLocalContainerID()))
handleLeave(e.getTargetID());
} else if (event instanceof ISharedObjectActivatedEvent) {
ISharedObjectActivatedEvent e = (ISharedObjectActivatedEvent) event;
if (e.getActivatedID().equals(config.getSharedObjectID()))
// we're being activated
handleActivated();
} else if (event instanceof ISharedObjectDeactivatedEvent) {
ISharedObjectDeactivatedEvent e = (ISharedObjectDeactivatedEvent) event;
if (e.getDeactivatedID().equals(config.getSharedObjectID()))
// we're being deactivated
handleDeactivated();
else if (table.contains(e.getDeactivatedID()))
// a local graph we track is being deactivated
handleRemoved(e.getDeactivatedID());
}
}