|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.io.AbstractSocketEndpoint
abstract class AbstractSocketEndpoint
| Field Summary | |
|---|---|
protected SocketAddress |
address
The socket address this endpoint encapsulates. |
protected Executor |
executor
The Executor used by this endpoint's connector or acceptor. |
protected int |
numProcessors
A MINA configuration parameter whose value may affect performance. |
protected TransportType |
transportType
The transport type this endpoint encapsulates. |
| Constructor Summary | |
|---|---|
protected |
AbstractSocketEndpoint(SocketAddress address,
TransportType type)
Constructs an AbstractSocketEndpoint with the given
TransportType. |
protected |
AbstractSocketEndpoint(SocketAddress address,
TransportType type,
Executor executor,
int numProcessors)
Constructs an AbstractSocketEndpoint with the given
TransportType using the given Executor for thread management. |
| Method Summary | |
|---|---|
SocketAddress |
getAddress()
Returns the SocketAddress encapsulated by this endpoint. |
Executor |
getExecutor()
Returns the Executor encapsulated by this endpoint. |
int |
getNumProcessors()
Returns the number of processors available to the MINA framework. |
TransportType |
getTransportType()
Returns the TransportType encapsulated by this endpoint. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final SocketAddress address
protected final TransportType transportType
protected final Executor executor
Executor used by this endpoint's connector or acceptor.
protected final int numProcessors
| Constructor Detail |
|---|
protected AbstractSocketEndpoint(SocketAddress address,
TransportType type)
AbstractSocketEndpoint with the given
TransportType. This is the simplest way to create an
AbstractSocketEndpoint. The returned endpoint will use
a cached pool of daemon threads as necessary for processing events.
address - the socket address to encapsulatetype - the type of transport
protected AbstractSocketEndpoint(SocketAddress address,
TransportType type,
Executor executor,
int numProcessors)
AbstractSocketEndpoint 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 SocketAddress getAddress()
SocketAddress encapsulated by this endpoint.
SocketAddress encapsulated by this endpointpublic TransportType getTransportType()
TransportType encapsulated by this endpoint.
TransportType encapsulated by this endpointpublic Executor getExecutor()
Executor encapsulated by this endpoint.
Executor encapsulated by this endpointpublic int getNumProcessors()
public String toString()
toString in class Object
|
Project Darkstar, Version 0.9.8.9 2013-07-29 20:37:40 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||