public class GridIpcClientTcpEndpoint extends Object implements GridIpcEndpoint
| Constructor and Description |
|---|
GridIpcClientTcpEndpoint(Socket clientSock)
Creates connected client IPC endpoint.
|
GridIpcClientTcpEndpoint(String host,
int port)
Creates and connects client IPC endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes endpoint.
|
InputStream |
inputStream()
Gets input stream associated with this IPC endpoint.
|
OutputStream |
outputStream()
Gets output stream associated with this IPC endpoint.
|
public GridIpcClientTcpEndpoint(Socket clientSock)
clientSock - Connected client socket.public GridIpcClientTcpEndpoint(String host, int port) throws GridException
port - Port.host - Host.GridException - If connection fails.public InputStream inputStream() throws GridException
inputStream in interface GridIpcEndpointGridException - If error occurred.public OutputStream outputStream() throws GridException
outputStream in interface GridIpcEndpointGridException - If error occurred.public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface GridIpcEndpointCopyright © 2014. All rights reserved.