public class GridIpcSharedMemoryClientEndpoint extends Object implements GridIpcEndpoint
| Constructor and Description |
|---|
GridIpcSharedMemoryClientEndpoint(GridIpcSharedMemorySpace inSpace,
GridIpcSharedMemorySpace outSpace,
GridLogger parent)
Creates connected client IPC endpoint.
|
GridIpcSharedMemoryClientEndpoint(int port,
GridLogger parent)
Creates and connects client IPC endpoint and starts background checker thread to avoid deadlocks on other party
crash.
|
GridIpcSharedMemoryClientEndpoint(int port,
int timeout,
GridLogger parent)
Creates and connects client IPC endpoint and starts background checker thread to avoid deadlocks on other party
crash.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes endpoint.
|
void |
forceClose()
Forcibly closes spaces and frees all system resources.
|
InputStream |
inputStream()
Gets input stream associated with this IPC endpoint.
|
OutputStream |
outputStream()
Gets output stream associated with this IPC endpoint.
|
String |
toString() |
public GridIpcSharedMemoryClientEndpoint(GridIpcSharedMemorySpace inSpace, GridIpcSharedMemorySpace outSpace, GridLogger parent)
inSpace - In space.outSpace - Out space.parent - Parent logger.public GridIpcSharedMemoryClientEndpoint(int port,
GridLogger parent)
throws GridException
port - Port server endpoint bound to.parent - Parent logger.GridException - If connection fails.public GridIpcSharedMemoryClientEndpoint(int port,
int timeout,
GridLogger parent)
throws GridException
port - Port server endpoint bound to.timeout - Connection timeout.parent - Parent logger.GridException - If connection fails.public InputStream inputStream()
inputStream in interface GridIpcEndpointpublic OutputStream outputStream()
outputStream in interface GridIpcEndpointpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface GridIpcEndpointpublic void forceClose()
This method should be called with caution as it may result to the other-party process crash. It is intended to call when there was an IO error during handshake and other party has not yet attached to the space.
Copyright © 2014. All rights reserved.