Interface IpcServerEndpoint
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
IpcServerTcpEndpoint
public interface IpcServerEndpoint extends Closeable
IPC server endpoint that is capable for client connections accepting.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IpcEndpointaccept()Accepts client IPC connection.voidclose()Closes server IPC.@Nullable StringgetHost()Gets host endpoint is bound to.intgetPort()Gets port endpoint is bound to.booleanisManagement()Indicates if this endpoint is a management endpoint.voidstart()Starts configured endpoint implementation.
-
-
-
Method Detail
-
accept
IpcEndpoint accept() throws IgniteCheckedException
Accepts client IPC connection. After client connection is accepted, it can be used for IPC. This method will block until client connects to IPC server endpoint.- Returns:
- Accepted client connection.
- Throws:
IgniteCheckedException- If accept failed and the endpoint is not usable anymore.
-
start
void start() throws IgniteCheckedExceptionStarts configured endpoint implementation.- Throws:
IgniteCheckedException- If failed to start server endpoint.
-
close
void close()
Closes server IPC. After IPC is closed, no further operations can be performed on this object.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getPort
int getPort()
Gets port endpoint is bound to. Endpoints who does not bind to any port should return -1.- Returns:
- Port number.
-
getHost
@Nullable @Nullable String getHost()
Gets host endpoint is bound to. Endpoints who does not bind to any port should returnnull.- Returns:
- Host.
-
isManagement
boolean isManagement()
Indicates if this endpoint is a management endpoint.- Returns:
trueif it's a management endpoint.
-
-