Package org.eclipse.ecf.provider.generic
Class TCPServerSOContainer
- java.lang.Object
- 
- org.eclipse.ecf.core.AbstractContainer
- 
- org.eclipse.ecf.provider.generic.SOContainer
- 
- org.eclipse.ecf.provider.generic.ServerSOContainer
- 
- org.eclipse.ecf.provider.generic.TCPServerSOContainer
 
 
 
 
- 
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable,- IContainer,- IIdentifiable,- IReliableContainer,- ISharedObjectContainer,- ISharedObjectContainerGroupManager,- IConnectRequestHandler
 
 public class TCPServerSOContainer extends ServerSOContainer implements IConnectRequestHandler 
- 
- 
Field SummaryFields Modifier and Type Field Description static booleanDEFAULT_FALLBACK_PORTstatic StringDEFAULT_HOSTstatic intDEFAULT_KEEPALIVEstatic StringDEFAULT_NAMEstatic intDEFAULT_PORTstatic StringDEFAULT_PROTOCOLprotected TCPServerSOContainerGroupgroupprotected booleanisSingleprotected intkeepAlive- 
Fields inherited from class org.eclipse.ecf.provider.generic.ServerSOContainerconnectHandlerPolicy
 - 
Fields inherited from class org.eclipse.ecf.provider.generic.SOContainerconfig, DEFAULT_OBJECT_ARG_KEY, DEFAULT_OBJECT_ARGTYPES_KEY, groupManager, isClosing, loadingThreadGroup, policy, receiver, sharedObjectManager, sharedObjectMessageSerializer, sharedObjectThreadGroup
 
- 
 - 
Constructor SummaryConstructors Constructor Description TCPServerSOContainer(ISharedObjectContainerConfig config)TCPServerSOContainer(ISharedObjectContainerConfig config, int keepAlive)TCPServerSOContainer(ISharedObjectContainerConfig config, int port, InetAddress bindAddress, String path, int keepAlive)TCPServerSOContainer(ISharedObjectContainerConfig config, InetAddress bindAddress, int keepAlive)TCPServerSOContainer(ISharedObjectContainerConfig config, TCPServerSOContainerGroup grp, int keepAlive)TCPServerSOContainer(ISharedObjectContainerConfig config, TCPServerSOContainerGroup listener, String path, int keepAlive)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose this IContainer instance.protected SerializablegetConnectDataFromInput(Serializable input)static StringgetDefaultServerURL()protected intgetKeepAlive()static StringgetServerURL(String host, String name)SerializablehandleConnectRequest(Socket socket, String target, Serializable data, ISynchAsynchConnection conn)Handle a connect request from remote clientprotected voidinitialize(TCPServerSOContainerGroup listener, String path, int ka)- 
Methods inherited from class org.eclipse.ecf.provider.generic.ServerSOContaineracceptNewClient, checkJoin, connect, disconnect, ejectAllGroupMembers, ejectGroupMember, forwardExcluding, forwardToRemote, getConnectedID, getConnectionForID, getIDForConnection, getSynchConnectionForID, handleLeaveGroupMessage, handleViewChangeMessage, isGroupManager, processDisconnect, queueContainerMessage, setConnectPolicy
 - 
Methods inherited from class org.eclipse.ecf.provider.generic.SOContaineraddNewRemoteMember, addSharedObject0, addSharedObjectAndWait, addSharedObjectWrapper, addToLoading, checkRemoteCreate, createContainerPropertiesForSharedObject, createRemoteSharedObjectConfig, createRemoteSharedObjectContext, createRemoteSharedObjectWrapper, createSharedObjectConfig, createSharedObjectContext, createSharedObjectWrapper, debug, defaultDeserializeSharedObjectMessage, defaultSerializeSharedObjectMessage, deserializeContainerMessage, deserializeSharedObjectMessage, destroySharedObject, disconnect, fireDelegateContainerEvent, forward, getAdapter, getArgsFromProperties, getArgTypesFromProperties, getClassLoaderForContainer, getClassLoaderForSharedObject, getConfig, getConnectNamespace, getGroupMemberIDs, getGroupMembershipLock, getID, getMaxGroupMembers, getMessageReceiver, getNewSharedObjectThread, getNextSequenceNumber, getOtherMemberIDs, getReceiver, getSharedObject, getSharedObjectIDs, getSharedObjectManager, getSharedObjectMessageSerializer, getSharedObjectWrapper, handleAsynchIOException, handleCreateMessage, handleCreateResponseMessage, handleLeave, handleSharedObjectDisposeMessage, handleSharedObjectMessage, handleUndeliveredSharedObjectMessage, handleUnidentifiedMessage, isClosing, load, moveFromLoadingToActive, notifySharedObjectActivated, notifySharedObjectDeactivated, printToSystemError, processAsynch, processSynch, removeFromLoading, removeRemoteMember, removeSharedObject, sendCreate, sendCreateResponse, sendCreateResponseSharedObjectMessage, sendCreateSharedObjectMessage, sendDispose, sendDisposeSharedObjectMessage, sendMessage, sendMessage, sendSharedObjectMessage, serialize, serializeSharedObjectMessage, setMaxGroupMembers, setRemoteAddPolicy, setSharedObjectMessageSerializer, traceStack, validateContainerMessage, verifySharedObjectMessageTarget, verifyToIDForSharedObjectMessage
 - 
Methods inherited from class org.eclipse.ecf.core.AbstractContaineraddListener, fireContainerEvent, getPasswordFromConnectContext, removeListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.ecf.core.IContaineraddListener, removeListener
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_PROTOCOLpublic static final String DEFAULT_PROTOCOL - See Also:
- Constant Field Values
 
 - 
DEFAULT_PORTpublic static final int DEFAULT_PORT 
 - 
DEFAULT_KEEPALIVEpublic static final int DEFAULT_KEEPALIVE 
 - 
DEFAULT_NAMEpublic static final String DEFAULT_NAME 
 - 
DEFAULT_HOSTpublic static String DEFAULT_HOST 
 - 
DEFAULT_FALLBACK_PORTpublic static final boolean DEFAULT_FALLBACK_PORT - Since:
- 4.2
 
 - 
keepAliveprotected int keepAlive 
 - 
groupprotected TCPServerSOContainerGroup group 
 - 
isSingleprotected boolean isSingle 
 
- 
 - 
Constructor Detail- 
TCPServerSOContainerpublic TCPServerSOContainer(ISharedObjectContainerConfig config, int port, InetAddress bindAddress, String path, int keepAlive) throws IOException - Parameters:
- config- config
- port- port
- bindAddress- bind address
- path- path
- keepAlive- keep alive
- Throws:
- IOException- if some problem creating
- Since:
- 4.4
 
 - 
TCPServerSOContainerpublic TCPServerSOContainer(ISharedObjectContainerConfig config, InetAddress bindAddress, int keepAlive) throws IOException, URISyntaxException - Parameters:
- config- config
- bindAddress- bind address
- keepAlive- keep alive
- Throws:
- IOException- if some problem creating
- URISyntaxException- if some problem creating
- Since:
- 4.4
 
 - 
TCPServerSOContainerpublic TCPServerSOContainer(ISharedObjectContainerConfig config, TCPServerSOContainerGroup grp, int keepAlive) throws IOException, URISyntaxException - Throws:
- IOException
- URISyntaxException
 
 - 
TCPServerSOContainerpublic TCPServerSOContainer(ISharedObjectContainerConfig config, TCPServerSOContainerGroup listener, String path, int keepAlive) 
 - 
TCPServerSOContainerpublic TCPServerSOContainer(ISharedObjectContainerConfig config) throws IOException, URISyntaxException - Throws:
- IOException
- URISyntaxException
 
 - 
TCPServerSOContainerpublic TCPServerSOContainer(ISharedObjectContainerConfig config, int keepAlive) throws IOException, URISyntaxException - Throws:
- IOException
- URISyntaxException
 
 
- 
 - 
Method Detail- 
getKeepAliveprotected int getKeepAlive() 
 - 
getDefaultServerURLpublic static String getDefaultServerURL() 
 - 
initializeprotected void initialize(TCPServerSOContainerGroup listener, String path, int ka) 
 - 
disposepublic void dispose() Description copied from interface:IContainerDispose this IContainer instance. The container instance will be made inactive after the completion of this method and will be unavailable for subsequent usage.- Specified by:
- disposein interface- IContainer
- Overrides:
- disposein class- ServerSOContainer
 
 - 
handleConnectRequestpublic Serializable handleConnectRequest(Socket socket, String target, Serializable data, ISynchAsynchConnection conn) Description copied from interface:IConnectRequestHandlerHandle a connect request from remote client- Specified by:
- handleConnectRequestin interface- IConnectRequestHandler
- Parameters:
- socket- the Socket that the request came in on
- target- the target that the request is intended for
- data- any data that was sent along with request (e.g. password or other authentication data)
- conn- the connection instance that received the request
- Returns:
- any data intended as a response. If null is returned, this typically means refusal of connect request
 
 - 
getConnectDataFromInputprotected Serializable getConnectDataFromInput(Serializable input) throws Exception - Throws:
- Exception
 
 
- 
 
-