org.eclipse.corona.collaboration.ecf.container
Class CoronaServerSOContainer

java.lang.Object
  extended by org.eclipse.ecf.provider.generic.SOContainer
      extended by org.eclipse.ecf.provider.generic.ServerSOContainer
          extended by org.eclipse.ecf.provider.generic.TCPServerSOContainer
              extended by org.eclipse.corona.collaboration.ecf.container.CoronaServerSOContainer
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ecf.core.comm.ConnectionRequestHandler, org.eclipse.ecf.core.IContainer, org.eclipse.ecf.core.IIdentifiable, org.eclipse.ecf.core.IReliableContainer, org.eclipse.ecf.core.ISharedObjectContainer, org.eclipse.ecf.core.ISharedObjectContainerGroupManager

public class CoronaServerSOContainer
extends org.eclipse.ecf.provider.generic.TCPServerSOContainer


Field Summary
 
Fields inherited from class org.eclipse.ecf.provider.generic.TCPServerSOContainer
DEFAULT_HOST, DEFAULT_KEEPALIVE, DEFAULT_NAME, DEFAULT_PORT, DEFAULT_PROTOCOL, group, isSingle, keepAlive
 
Fields inherited from class org.eclipse.ecf.provider.generic.ServerSOContainer
joinpolicy
 
Fields inherited from class org.eclipse.ecf.provider.generic.SOContainer
config, DEFAULT_OBJECT_ARG_KEY, DEFAULT_OBJECT_ARGTYPES_KEY, groupManager, isClosing, loadingThreadGroup, policy, receiver, sharedObjectManager, sharedObjectThreadGroup
 
Constructor Summary
CoronaServerSOContainer(org.eclipse.ecf.core.ISharedObjectContainerConfig config, org.eclipse.ecf.provider.generic.TCPServerSOContainerGroup grp, int keepAlive)
          Class constructor.
CoronaServerSOContainer(org.eclipse.ecf.core.ISharedObjectContainerConfig config, org.eclipse.ecf.provider.generic.TCPServerSOContainerGroup listener, java.lang.String path, int keepAlive)
          Class constructor.
 
Method Summary
protected  java.util.Map getContainerPropertiesForSharedObject(org.eclipse.ecf.core.identity.ID sharedObjectID)
          Get the container properties that the shared object can access.
 
Methods inherited from class org.eclipse.ecf.provider.generic.TCPServerSOContainer
checkConnect, dispose, getConnectDataFromInput, getDefaultServerURL, getKeepAlive, getServerURL, initialize
 
Methods inherited from class org.eclipse.ecf.provider.generic.ServerSOContainer
acceptNewClient, checkJoin, connect, disconnect, ejectAllGroupMembers, ejectGroupMember, forwardExcluding, forwardToRemote, getConnectedID, getConnectionForID, getIDForConnection, getSynchConnectionForID, handleLeaveGroupMessage, handleViewChangeMessage, isGroupManager, queueContainerMessage, setConnectPolicy
 
Methods inherited from class org.eclipse.ecf.provider.generic.SOContainer
addListener, addNewRemoteMember, addSharedObject0, addSharedObjectAndWait, addSharedObjectWrapper, addToLoading, checkRemoteCreate, createLoadingThreadGroup, createRemoteSharedObjectConfig, createRemoteSharedObjectContext, createRemoteSharedObjectWrapper, createSharedObjectConfig, createSharedObjectContext, createSharedObjectWrapper, debug, deserializeContainerMessage, deserializeSharedObjectMessage, destroySharedObject, dumpStack, fireContainerEvent, forward, getAdapter, getArgsFromProperties, getArgTypesFromProperties, getClassLoaderForContainer, getClassLoaderForSharedObject, getConfig, getConnectNamespace, getGroupMemberIDs, getGroupMembershipLock, getID, getMaxGroupMembers, getNewSharedObjectThread, getNextSequenceNumber, getOSGIServiceInterface, getOtherMemberIDs, getReceiver, getSharedObject, getSharedObjectIDs, getSharedObjectManager, getSharedObjectThreadGroup, getSharedObjectWrapper, handleAsynchIOException, handleCreateMessage, handleCreateResponseMessage, handleSharedObjectDisposeMessage, handleSharedObjectMessage, handleUnidentifiedMessage, isClosing, killConnection, load, log, logException, memberLeave, moveFromLoadingToActive, notifySharedObjectActivated, notifySharedObjectDeactivated, processAsynch, processDisconnect, processSynch, removeFromLoading, removeListener, removeRemoteMember, removeSharedObject, sendCreate, sendCreateResponse, sendCreateResponseSharedObjectMessage, sendCreateSharedObjectMessage, sendDispose, sendDisposeSharedObjectMessage, sendMessage, sendMessage, sendSharedObjectMessage, serializeObject, serializeSharedObjectMessage, setIsClosing, setMaxGroupMembers, setRemoteAddPolicy, validateContainerMessage, verifyToIDForSharedObjectMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoronaServerSOContainer

public CoronaServerSOContainer(org.eclipse.ecf.core.ISharedObjectContainerConfig config,
                               org.eclipse.ecf.provider.generic.TCPServerSOContainerGroup listener,
                               java.lang.String path,
                               int keepAlive)
Class constructor. Performs basic initiailization for the class instance.

Parameters:
config - An instance of ISharedObjectContainerConfig containing properties for the container.
listener - An instance of TCPServerSOContainerGroup that is listening for messages/events for the new container.
path - Name of the container.
keepAlive - Amount of time to keep container alive.

CoronaServerSOContainer

public CoronaServerSOContainer(org.eclipse.ecf.core.ISharedObjectContainerConfig config,
                               org.eclipse.ecf.provider.generic.TCPServerSOContainerGroup grp,
                               int keepAlive)
                        throws java.io.IOException,
                               java.net.URISyntaxException
Class constructor. Performs basic initiailization for the class instance.

Parameters:
config - An instance of ISharedObjectContainerConfig containing properties for the container.
listener - An instance of TCPServerSOContainerGroup that is listening for messages/events for the new container.
keepAlive - Amount of time to keep container alive.
Throws:
java.io.IOException
java.net.URISyntaxException
Method Detail

getContainerPropertiesForSharedObject

protected java.util.Map getContainerPropertiesForSharedObject(org.eclipse.ecf.core.identity.ID sharedObjectID)
Get the container properties that the shared object can access.

Overrides:
getContainerPropertiesForSharedObject in class org.eclipse.ecf.provider.generic.SOContainer
Parameters:
sharedObjectID - ID of shared object trying to access the containers properties.
Returns:
An instance of MAP that contains the properties that the specified shared object can access.

Copyright 2006 IBM Corporation and others.
All Rights Reserved.