|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ecf.core.sharedobject.AbstractSharedObject
org.eclipse.corona.collaboration.ecf.sharedobject.TopicSharedObject
public class TopicSharedObject
Field Summary | |
---|---|
(package private) java.lang.Object |
lock
|
(package private) boolean |
m_ReplicateOnActivated
|
(package private) boolean |
m_ReplicateOnJoin
|
Constructor Summary | |
---|---|
TopicSharedObject()
|
|
TopicSharedObject(java.lang.String containerName,
org.eclipse.ecf.core.identity.ID sharedObjectId,
boolean bReplicateOnActivated,
boolean bReplicateOnJoin)
Class constructor. |
Method Summary | |
---|---|
boolean |
acceptEvent(org.eclipse.ecf.core.util.Event event)
Accept given Event. |
void |
dispose()
|
org.eclipse.ecf.core.identity.ID |
getID()
|
protected java.lang.Object |
getProperty(java.lang.String propertyName)
Retrieve the specified shared object property |
protected void |
handleActivated(org.eclipse.ecf.core.events.ISharedObjectActivatedEvent event)
Handle the ISharedObjectActivatedEvent. |
protected void |
handleCreateResponse(org.eclipse.ecf.core.events.ISharedObjectCreateResponseEvent event)
Handle the ISharedObjectCreateResponseEvent. |
protected void |
handleDeparted(org.eclipse.ecf.core.events.IContainerDisconnectedEvent event)
Handle the IContainerDisconnectedEvent. |
protected void |
handleJoined(org.eclipse.ecf.core.events.IContainerConnectedEvent event)
Handle the IContainerConnectedEvent. |
protected void |
handlePrimaryActivated(org.eclipse.ecf.core.events.ISharedObjectActivatedEvent event)
Handle the ISharedObjectActivatedEvent when generate from the local container. |
protected void |
handleReplicaActivated(org.eclipse.ecf.core.events.ISharedObjectActivatedEvent event)
Handle the ISharedObjectActivatedEvent when generated from a remote container. |
protected void |
initialize()
Initialize the shared object. |
boolean |
processEvent(org.eclipse.ecf.core.util.Event event)
Process given Event |
protected void |
processMessage(java.lang.Object message)
Process the message recieved from other members of the topic. |
void |
sendMessage(org.eclipse.ecf.core.identity.ID[] toIDs,
java.lang.Object serialObj)
Send a serializable object to the specified containers. |
void |
sendMessage(org.eclipse.ecf.core.identity.ID toID,
java.lang.Object serialObj)
Send a serializable object to the specified container. |
void |
sendSharedMessage(org.eclipse.ecf.core.identity.ID[] toIDs,
TopicSharedObjectMessage sharedMsg)
Send a GroupSharedObjectMessage to the specified container. |
void |
sendSharedMessage(org.eclipse.ecf.core.identity.ID toID,
TopicSharedObjectMessage sharedMsg)
Send a GroupSharedObjectMessage to the specified container. |
void |
sendSharedObjectMsg(org.eclipse.ecf.core.identity.ID toID,
org.eclipse.ecf.core.sharedobject.SharedObjectMsg sharedMsg)
Send a GroupSharedObjectMessage to the specified container. |
Methods inherited from class org.eclipse.ecf.core.sharedobject.AbstractSharedObject |
---|
addEventProcessor, clearEventProcessors, creationCompleted, destroyRemote, destroySelf, destroySelfLocal, dispose, fireEventProcessors, getAdapter, getConfig, getContext, getGroupID, getHomeContainerID, getLocalContainerID, getProperties, getReplicaDescription, getReplicaDescriptions, getSharedObjectMsgFromEvent, handleEvent, handleEvents, handleSharedObjectCreateResponseEvent, handleSharedObjectMsg, handleSharedObjectMsgEvent, handleUnhandledEvent, init, isConnected, isPrimary, removeEventProcessor, replicateToRemoteContainers, sendSharedObjectMsgTo, sendSharedObjectMsgToPrimary, sendSharedObjectMsgToSelf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.Object lock
boolean m_ReplicateOnJoin
boolean m_ReplicateOnActivated
Constructor Detail |
---|
public TopicSharedObject()
public TopicSharedObject(java.lang.String containerName, org.eclipse.ecf.core.identity.ID sharedObjectId, boolean bReplicateOnActivated, boolean bReplicateOnJoin)
Method Detail |
---|
public void dispose()
public org.eclipse.ecf.core.identity.ID getID()
getID
in interface org.eclipse.ecf.core.IIdentifiable
getID
in class org.eclipse.ecf.core.sharedobject.AbstractSharedObject
protected void initialize()
initialize
in class org.eclipse.ecf.core.sharedobject.AbstractSharedObject
public boolean acceptEvent(org.eclipse.ecf.core.util.Event event)
processEvent(Event)
method should be
subsequently called.
event
- The Event under consideration for acceptance.
public boolean processEvent(org.eclipse.ecf.core.util.Event event)
processEvent
in interface org.eclipse.ecf.core.util.IEventProcessor
event
- The Event to process.
protected void handleActivated(org.eclipse.ecf.core.events.ISharedObjectActivatedEvent event)
event
- The instance of ISharedObjectActivatedEvent to
be processed.protected void handlePrimaryActivated(org.eclipse.ecf.core.events.ISharedObjectActivatedEvent event)
event
- The instance of ISharedObjectActivatedEvent to
be processed.protected void handleReplicaActivated(org.eclipse.ecf.core.events.ISharedObjectActivatedEvent event)
event
- The instance of ISharedObjectActivatedEvent to
be processed.protected void handleJoined(org.eclipse.ecf.core.events.IContainerConnectedEvent event)
event
- The instance of IContainerConnectedEvent to
be processed.protected void handleCreateResponse(org.eclipse.ecf.core.events.ISharedObjectCreateResponseEvent event)
event
- The instance of ISharedObjectCreateResponseEvent to
be processed.protected void handleDeparted(org.eclipse.ecf.core.events.IContainerDisconnectedEvent event)
event
- The instance of IContainerDisconnectedEvent to
be processed.public void sendMessage(org.eclipse.ecf.core.identity.ID[] toIDs, java.lang.Object serialObj) throws java.io.IOException
toIDs
- An array of container ids to which the serializable
object is to be sent. If null
all members
of the group will receive the message.serialObj
- The serializable object to be sent.
java.io.IOException
public void sendMessage(org.eclipse.ecf.core.identity.ID toID, java.lang.Object serialObj) throws java.io.IOException
toID
- Container id to which the serializable object
is to be sent. If null
all members
of the group will receive the message.serialObj
- The serializable object to be sent.
java.io.IOException
protected void processMessage(java.lang.Object message)
message
- The message to be processed.public void sendSharedMessage(org.eclipse.ecf.core.identity.ID[] toIDs, TopicSharedObjectMessage sharedMsg) throws java.io.IOException
toIDs
- An array of container ids to which the TSFSharedObjectEvent
is to be sent.sharedMsg
- The instance of TSFSharedObjectEvent to be sent.
java.io.IOException
public void sendSharedMessage(org.eclipse.ecf.core.identity.ID toID, TopicSharedObjectMessage sharedMsg) throws java.io.IOException
toID
- The container id to which the TSFSharedObjectEvent is
to be sent.sharedMsg
- The instance of TSFSharedObjectEvent to be sent.
java.io.IOException
public void sendSharedObjectMsg(org.eclipse.ecf.core.identity.ID toID, org.eclipse.ecf.core.sharedobject.SharedObjectMsg sharedMsg) throws java.io.IOException
toID
- The container id to which the TSFSharedObjectEvent is
to be sent.sharedMsg
- The instance of TSFSharedObjectEvent to be sent.
java.io.IOException
protected java.lang.Object getProperty(java.lang.String propertyName)
propertyName
- Name of property to retrieve.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |