public class IpcSharedMemoryClientEndpoint extends Object implements IpcEndpoint
| Constructor and Description |
|---|
IpcSharedMemoryClientEndpoint(int port,
IgniteLogger parent)
Creates and connects client IPC endpoint and starts background checker thread to avoid deadlocks on other party
crash.
|
IpcSharedMemoryClientEndpoint(int port,
int timeout,
IgniteLogger parent)
Creates and connects client IPC endpoint and starts background checker thread to avoid deadlocks on other party
crash.
|
IpcSharedMemoryClientEndpoint(IpcSharedMemorySpace inSpace,
IpcSharedMemorySpace outSpace,
IgniteLogger parent)
Creates connected client IPC endpoint.
|
| 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 IpcSharedMemoryClientEndpoint(IpcSharedMemorySpace inSpace, IpcSharedMemorySpace outSpace, IgniteLogger parent)
inSpace - In space.outSpace - Out space.parent - Parent logger.public IpcSharedMemoryClientEndpoint(int port,
IgniteLogger parent)
throws IgniteCheckedException
port - Port server endpoint bound to.parent - Parent logger.IgniteCheckedException - If connection fails.public IpcSharedMemoryClientEndpoint(int port,
int timeout,
IgniteLogger parent)
throws IgniteCheckedException
port - Port server endpoint bound to.timeout - Connection timeout.parent - Parent logger.IgniteCheckedException - If connection fails.public InputStream inputStream()
inputStream in interface IpcEndpointpublic OutputStream outputStream()
outputStream in interface IpcEndpointpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface IpcEndpointpublic 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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019