|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TCPIPProtocol
Defines constants used as hints key that can be given to a TCP/IP protocol.
Field Summary | |
---|---|
static String |
ADDRESS
Key name for value used by the Protocol.createExportIdentifier(java.util.Map method
to specify the address of the export identifier to create. |
static String |
CONNECTION_RETRY
This integer hint, used at bind time, can specify the number of connection retries before aborting. |
static String |
PORT
This integer hint, used at export time, can specify the listening port on which the TCP/IP protocol will wait incoming connection for an exported channel. |
static String |
PORT_RANGE
This integer hint, used at export time, can specify the range of listening ports on which the TCP/IP protocol will try to open server socket. |
static String |
SO_LINGER
This integer hint, used either at export or bind time, can specify the SO_LINGER parameter of created sockets. |
static String |
SO_TIMEOUT
This integer hint, used either at export or bind time, can specify the SO_TIMEOUT parameter of created sockets. |
static String |
TCP_NO_DELAY
This boolean hint, used either at export or bind time, can specify if the Nagle's algorithm is disabled. |
Fields inherited from interface org.objectweb.dream.protocol.Protocol |
---|
ITF_NAME, LOWER_PROTOCOL_ITF_NAME |
Method Summary | |
---|---|
OutgoingPush |
bind(String hostName,
int port,
IncomingPush toClientPush)
Utility method. |
IPExportIdentifier |
createExportIdentifier(String hostName,
int port)
Utility method. |
IPExportIdentifier |
export(ChannelFactory channel,
int port,
int range)
Utility method. |
Methods inherited from interface org.objectweb.dream.protocol.channel.ChannelProtocol |
---|
bind, export, unexport |
Methods inherited from interface org.objectweb.dream.protocol.Protocol |
---|
createExportIdentifier |
Field Detail |
---|
static final String PORT
Protocol.createExportIdentifier(java.util.Map, org.objectweb.dream.protocol.ExportIdentifier[])
method
to specify the port of the export identifier to create.
static final String PORT_RANGE
PORT
key), only the specified port will be tried before aborting.
static final String ADDRESS
Protocol.createExportIdentifier(java.util.Map, org.objectweb.dream.protocol.ExportIdentifier[])
method
to specify the address of the export identifier to create. The value
associated with this key can be an InetAddress
or a
String
.
static final String CONNECTION_RETRY
static final String TCP_NO_DELAY
Socket.setTcpNoDelay(boolean)
,
Constant Field Valuesstatic final String SO_TIMEOUT
SO_TIMEOUT
parameter of created sockets.
Socket.setSoTimeout(int)
,
Constant Field Valuesstatic final String SO_LINGER
SO_LINGER
parameter of created sockets. A negative value
disable the linger on close.
Socket.setSoLinger(boolean, int)
,
Constant Field ValuesMethod Detail |
---|
IPExportIdentifier export(ChannelFactory channel, int port, int range) throws ExportException
channel
- the channel to exportport
- the listening port on which the TCP/IP protocol will wait
incoming connection for an exported channel. range
- the range of listening ports on which the TCP/IP protocol will
try to open server socket. ExportException
- if the export process fails.ChannelProtocol.export(ChannelFactory, java.util.Map)
OutgoingPush bind(String hostName, int port, IncomingPush toClientPush) throws InvalidExportIdentifierException, BindException
InvalidExportIdentifierException
BindException
ChannelProtocol.bind(org.objectweb.dream.protocol.ExportIdentifier,
IncomingPush, java.util.Map)
IPExportIdentifier createExportIdentifier(String hostName, int port)
Protocol.createExportIdentifier(java.util.Map,
org.objectweb.dream.protocol.ExportIdentifier[])
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |