org.eclipse.ecf.provider.generic
Class SOContext
java.lang.Object
org.eclipse.ecf.provider.generic.SOContext
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.ecf.core.sharedobject.ISharedObjectContext
public class SOContext
- extends java.lang.Object
- implements org.eclipse.ecf.core.sharedobject.ISharedObjectContext
|
Constructor Summary |
SOContext(ID objID,
ID homeID,
SOContainer cont,
java.util.Map props,
org.eclipse.ecf.core.sharedobject.util.IQueueEnqueue queue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected SOContainer container
sharedObjectID
protected ID sharedObjectID
homeContainerID
protected ID homeContainerID
isActive
protected boolean isActive
properties
protected java.util.Map properties
queue
protected org.eclipse.ecf.core.sharedobject.util.IQueueEnqueue queue
SOContext
public SOContext(ID objID,
ID homeID,
SOContainer cont,
java.util.Map props,
org.eclipse.ecf.core.sharedobject.util.IQueueEnqueue queue)
isActive
public boolean isActive()
- Specified by:
isActive in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
trace
protected void trace(java.lang.String msg)
traceStack
protected void traceStack(java.lang.String msg,
java.lang.Throwable e)
makeInactive
protected void makeInactive()
isInactive
protected boolean isInactive()
getLocalContainerID
public ID getLocalContainerID()
- Specified by:
getLocalContainerID in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
getSharedObjectManager
public org.eclipse.ecf.core.sharedobject.ISharedObjectManager getSharedObjectManager()
- Specified by:
getSharedObjectManager in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
getQueue
public org.eclipse.ecf.core.sharedobject.util.IQueueEnqueue getQueue()
- Specified by:
getQueue in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
connect
public void connect(ID groupID,
IConnectContext joinContext)
throws ContainerConnectException
- Specified by:
connect in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
- Throws:
ContainerConnectException
disconnect
public void disconnect()
- Specified by:
disconnect in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
getConnectedID
public ID getConnectedID()
- Specified by:
getConnectedID in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
isGroupManager
public boolean isGroupManager()
- Specified by:
isGroupManager in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
isGroupServer
public boolean isGroupServer()
getGroupMemberIDs
public ID[] getGroupMemberIDs()
- Specified by:
getGroupMemberIDs in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
sendCreate
public void sendCreate(ID toContainerID,
org.eclipse.ecf.core.sharedobject.ReplicaSharedObjectDescription sd)
throws java.io.IOException
- Specified by:
sendCreate in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
- Throws:
java.io.IOException
sendCreateResponse
public void sendCreateResponse(ID toContainerID,
java.lang.Throwable throwable,
long identifier)
throws java.io.IOException
- Specified by:
sendCreateResponse in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
- Throws:
java.io.IOException
sendDispose
public void sendDispose(ID toContainerID)
throws java.io.IOException
- Specified by:
sendDispose in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
- Throws:
java.io.IOException
sendMessage
public void sendMessage(ID toContainerID,
java.lang.Object data)
throws java.io.IOException
- Specified by:
sendMessage in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
- Throws:
java.io.IOException
getAdapter
public java.lang.Object getAdapter(java.lang.Class clazz)
- Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
getConnectNamespace
public Namespace getConnectNamespace()
- Specified by:
getConnectNamespace in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext
getLocalContainerProperties
public java.util.Map getLocalContainerProperties()
- Specified by:
getLocalContainerProperties in interface org.eclipse.ecf.core.sharedobject.ISharedObjectContext