public class SocketTargetServerConnection extends Object implements TargetServerConnection
TargetServerConnection
.Constructor and Description |
---|
SocketTargetServerConnection(PortProvider portProvider)
Create a new
SocketTargetServerConnection . |
Modifier and Type | Method and Description |
---|---|
ByteChannel |
open(int socketTimeout)
Open a connection to the target server with the specified timeout.
|
public SocketTargetServerConnection(PortProvider portProvider)
SocketTargetServerConnection
.portProvider
- the port providerpublic ByteChannel open(int socketTimeout) throws IOException
TargetServerConnection
open
in interface TargetServerConnection
socketTimeout
- the read timeoutByteChannel
providing read/write access to the serverIOException
- in case of I/O errorsCopyright © 2018 Pivotal Software, Inc.. All rights reserved.