public class TCPServerSOContainer extends ServerSOContainer implements IConnectRequestHandler
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_FALLBACK_PORT |
static java.lang.String |
DEFAULT_HOST |
static int |
DEFAULT_KEEPALIVE |
static java.lang.String |
DEFAULT_NAME |
static int |
DEFAULT_PORT |
static java.lang.String |
DEFAULT_PROTOCOL |
protected TCPServerSOContainerGroup |
group |
protected boolean |
isSingle |
protected int |
keepAlive |
connectHandlerPolicy
config, DEFAULT_OBJECT_ARG_KEY, DEFAULT_OBJECT_ARGTYPES_KEY, groupManager, isClosing, loadingThreadGroup, policy, receiver, sharedObjectManager, sharedObjectMessageSerializer, sharedObjectThreadGroup
Constructor and Description |
---|
TCPServerSOContainer(ISharedObjectContainerConfig config) |
TCPServerSOContainer(ISharedObjectContainerConfig config,
java.net.InetAddress bindAddress,
int keepAlive) |
TCPServerSOContainer(ISharedObjectContainerConfig config,
int keepAlive) |
TCPServerSOContainer(ISharedObjectContainerConfig config,
int port,
java.net.InetAddress bindAddress,
java.lang.String path,
int keepAlive) |
TCPServerSOContainer(ISharedObjectContainerConfig config,
TCPServerSOContainerGroup grp,
int keepAlive) |
TCPServerSOContainer(ISharedObjectContainerConfig config,
TCPServerSOContainerGroup listener,
java.lang.String path,
int keepAlive) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose this IContainer instance.
|
protected java.io.Serializable |
getConnectDataFromInput(java.io.Serializable input) |
static java.lang.String |
getDefaultServerURL() |
protected int |
getKeepAlive() |
static java.lang.String |
getServerURL(java.lang.String host,
java.lang.String name) |
java.io.Serializable |
handleConnectRequest(java.net.Socket socket,
java.lang.String target,
java.io.Serializable data,
ISynchAsynchConnection conn)
Handle a connect request from remote client
|
protected void |
initialize(TCPServerSOContainerGroup listener,
java.lang.String path,
int ka) |
acceptNewClient, checkJoin, connect, disconnect, ejectAllGroupMembers, ejectGroupMember, forwardExcluding, forwardToRemote, getConnectedID, getConnectionForID, getIDForConnection, getSynchConnectionForID, handleLeaveGroupMessage, handleViewChangeMessage, isGroupManager, processDisconnect, queueContainerMessage, setConnectPolicy
addNewRemoteMember, 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
addListener, fireContainerEvent, getPasswordFromConnectContext, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, removeListener
public static final java.lang.String DEFAULT_PROTOCOL
public static final int DEFAULT_PORT
public static final int DEFAULT_KEEPALIVE
public static final java.lang.String DEFAULT_NAME
public static java.lang.String DEFAULT_HOST
public static final boolean DEFAULT_FALLBACK_PORT
protected int keepAlive
protected TCPServerSOContainerGroup group
protected boolean isSingle
public TCPServerSOContainer(ISharedObjectContainerConfig config, int port, java.net.InetAddress bindAddress, java.lang.String path, int keepAlive) throws java.io.IOException
config
- configport
- portbindAddress
- bind addresspath
- pathkeepAlive
- keep alivejava.io.IOException
- if some problem creatingpublic TCPServerSOContainer(ISharedObjectContainerConfig config, java.net.InetAddress bindAddress, int keepAlive) throws java.io.IOException, java.net.URISyntaxException
config
- configbindAddress
- bind addresskeepAlive
- keep alivejava.io.IOException
- if some problem creatingjava.net.URISyntaxException
- if some problem creatingpublic TCPServerSOContainer(ISharedObjectContainerConfig config, TCPServerSOContainerGroup grp, int keepAlive) throws java.io.IOException, java.net.URISyntaxException
java.io.IOException
java.net.URISyntaxException
public TCPServerSOContainer(ISharedObjectContainerConfig config, TCPServerSOContainerGroup listener, java.lang.String path, int keepAlive)
public TCPServerSOContainer(ISharedObjectContainerConfig config) throws java.io.IOException, java.net.URISyntaxException
java.io.IOException
java.net.URISyntaxException
public TCPServerSOContainer(ISharedObjectContainerConfig config, int keepAlive) throws java.io.IOException, java.net.URISyntaxException
java.io.IOException
java.net.URISyntaxException
protected int getKeepAlive()
public static java.lang.String getServerURL(java.lang.String host, java.lang.String name)
public static java.lang.String getDefaultServerURL()
protected void initialize(TCPServerSOContainerGroup listener, java.lang.String path, int ka)
public void dispose()
IContainer
dispose
in interface IContainer
dispose
in class ServerSOContainer
public java.io.Serializable handleConnectRequest(java.net.Socket socket, java.lang.String target, java.io.Serializable data, ISynchAsynchConnection conn)
IConnectRequestHandler
handleConnectRequest
in interface IConnectRequestHandler
socket
- the Socket that the request came in ontarget
- the target that the request is intended fordata
- any data that was sent along with request (e.g. password or
other authentication data)conn
- the connection instance that received the requestprotected java.io.Serializable getConnectDataFromInput(java.io.Serializable input) throws java.lang.Exception
java.lang.Exception