|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.io.AbstractSocketEndpoint
com.sun.sgs.impl.io.ServerSocketEndpoint
public class ServerSocketEndpoint
An implementation of ServerEndpoint that wraps a
local SocketAddress.
| Field Summary | |
|---|---|
static String |
DEFAULT_REUSE_ADDRESS
Default value for the reuse-address property if not specified. |
static String |
REUSE_ADDRESS_PROPERTY
The System property for whether to set the reuse-address property. |
| Fields inherited from class com.sun.sgs.impl.io.AbstractSocketEndpoint |
|---|
address, executor, numProcessors, transportType |
| Constructor Summary | |
|---|---|
ServerSocketEndpoint(SocketAddress address,
TransportType type)
Constructs a ServerSocketEndpoint with the given
TransportType. |
|
ServerSocketEndpoint(SocketAddress address,
TransportType type,
Executor executor)
Constructs a ServerSocketEndpoint with the given TransportType
using the given Executor for thread management. |
|
ServerSocketEndpoint(SocketAddress address,
TransportType type,
Executor executor,
int numProcessors)
Constructs a ServerSocketEndpoint with the given TransportType
using the given Executor for thread management. |
|
| Method Summary | |
|---|---|
Acceptor<SocketAddress> |
createAcceptor()
Creates an Acceptor to passively listen for connections
on this local ServerEndpoint. |
| Methods inherited from class com.sun.sgs.impl.io.AbstractSocketEndpoint |
|---|
getAddress, getExecutor, getNumProcessors, getTransportType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.sgs.io.ServerEndpoint |
|---|
getAddress |
| Field Detail |
|---|
public static final String REUSE_ADDRESS_PROPERTY
public static final String DEFAULT_REUSE_ADDRESS
| Constructor Detail |
|---|
public ServerSocketEndpoint(SocketAddress address,
TransportType type)
ServerSocketEndpoint with the given
TransportType. This is the simplest way to create a
ServerSocketEndpoint. The returned endpoint will use
new daemon threads as necessary for processing events.
address - the socket address to encapsulatetype - the type of transport
public ServerSocketEndpoint(SocketAddress address,
TransportType type,
Executor executor)
ServerSocketEndpoint with the given TransportType
using the given Executor for thread management.
address - the socket address to encapsulatetype - the type of transportexecutor - an Executor specifying the threading policy
public ServerSocketEndpoint(SocketAddress address,
TransportType type,
Executor executor,
int numProcessors)
ServerSocketEndpoint with the given TransportType
using the given Executor for thread management.
The numProcessors parameter refers to the number of
MINA SocketIOProcessors to initially create.
numProcessors must be greater than 0.
(Note: A SocketIOProcessor is a MINA implementation detail that
controls the internal processing of the IO. It is exposed here to allow
clients the option to configure this value, which may aid
performance tuning).
address - the socket address to encapsulatetype - the type of transportexecutor - An Executor specifying the threading policynumProcessors - the number of processors available on this
system. This value must be greater than 0.
IllegalArgumentException - if numProcessors is
zero or negative.| Method Detail |
|---|
public Acceptor<SocketAddress> createAcceptor()
Acceptor to passively listen for connections
on this local ServerEndpoint.
createAcceptor in interface ServerEndpoint<SocketAddress>Acceptor configured to listen on this
ServerEndpoint
|
Project Darkstar, Version 0.9.9.7 2013-07-29 20:58:27 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||