public class IpcServerTcpEndpoint extends Object implements IpcServerEndpoint
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_IPC_PORT
Default endpoint port number.
|
| Constructor and Description |
|---|
IpcServerTcpEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
IpcEndpoint |
accept()
Accepts client IPC connection.
|
void |
close()
Closes server IPC.
|
String |
getHost()
Gets host endpoint is bound to.
|
int |
getPort()
Gets port endpoint is bound to.
|
boolean |
isManagement()
Indicates if this endpoint is a management endpoint.
|
void |
setHost(String host)
Sets host endpoint will be bound to.
|
void |
setManagement(boolean mgmt)
Sets management property.
|
void |
setPort(int port)
Sets port endpoint will be bound to.
|
void |
setupConfiguration(Map<String,String> endpointCfg)
Sets configuration properties from the map.
|
void |
start()
Starts configured endpoint implementation.
|
String |
toString() |
public static final int DFLT_IPC_PORT
public void start()
throws IgniteCheckedException
start in interface IpcServerEndpointIgniteCheckedException - If failed to start server endpoint.public IpcEndpoint accept() throws IgniteCheckedException
accept in interface IpcServerEndpointIgniteCheckedException - If accept failed and the endpoint is not usable anymore.public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface IpcServerEndpointpublic int getPort()
getPort in interface IpcServerEndpointpublic void setPort(int port)
port - Port number.public String getHost()
null.getHost in interface IpcServerEndpointpublic void setHost(String host)
host - Host.public boolean isManagement()
isManagement in interface IpcServerEndpointtrue if it's a management endpoint.public void setManagement(boolean mgmt)
mgmt - flag.public void setupConfiguration(Map<String,String> endpointCfg) throws IgniteCheckedException
endpointCfg - Map of properties.IgniteCheckedException - If invalid property name or value.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020