|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.execution.core.file.socket.SocketChannelFactory
Factory to create the local socket channel abstraction, this factory offers a default instance to use for normal unsecure socket establishment but other factories can be implemented that implement the socket channel factory interface and used where socket channel factories are applicable and required
| Constructor Summary | |
|---|---|
protected |
SocketChannelFactory()
Limit instantiation to factory extenders |
| Method Summary | |
|---|---|
ISocketChannel |
create(java.net.InetSocketAddress address)
Creates a local socket channel abstraction over a new socket to be established at the given internet socket address, basically connects to the address given, establishes a socket to the other side and returns back an abstraction to manipulate the connection with -- this method creates a new connection at the given address or returns back an existing connection that is not in use (with no contention with another client possible) |
ISocketChannel |
create(java.net.InetSocketAddress address,
int timeout)
Creates a local socket channel abstraction over a new socket to be established at the given internet socket address, basically connects to the address given, establishes a socket to the other side and returns back an abstraction to manipulate the connection with -- this method creates a new connection at the given address or returns back an existing connection that is not in use (with no contention with another client possible) |
ISocketChannel |
create(java.net.Socket socket)
Creates a local socket channel abstraction for the given socket, this does not create a new connection, simply wraps a java.nio channel with a local abstraction |
ISocketChannel |
create(java.nio.channels.SocketChannel realChannel)
Creates a local socket channel abstraction for the given standard channel, this does not create a new connection, simply wraps a java.nio channel with a local abstraction |
static ISocketChannelFactory |
getInstance()
Default instance accessor method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected SocketChannelFactory()
| Method Detail |
public static ISocketChannelFactory getInstance()
public ISocketChannel create(java.net.InetSocketAddress address)
throws java.io.IOException
ISocketChannelFactory
create in interface ISocketChannelFactoryaddress - the address to establish a connection to
java.io.IOException - throws an IO exception if socket problems arise
public ISocketChannel create(java.net.InetSocketAddress address,
int timeout)
throws java.io.IOException
ISocketChannelFactory
create in interface ISocketChannelFactoryaddress - the address to establish a connection totimeout - timeout to use for the connection
java.io.IOException - throws an IO exception if socket problems arisepublic ISocketChannel create(java.nio.channels.SocketChannel realChannel)
ISocketChannelFactory
create in interface ISocketChannelFactoryrealChannel - the standard Java abstraction
public ISocketChannel create(java.net.Socket socket)
throws java.io.IOException
ISocketChannelFactory
create in interface ISocketChannelFactorysocket - the socket to seed this socket channel
java.io.IOException
|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||