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 IpcServerEndpoint
IgniteCheckedException
- If failed to start server endpoint.public IpcEndpoint accept() throws IgniteCheckedException
accept
in interface IpcServerEndpoint
IgniteCheckedException
- If accept failed and the endpoint is not usable anymore.public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface IpcServerEndpoint
public int getPort()
getPort
in interface IpcServerEndpoint
public void setPort(int port)
port
- Port number.public String getHost()
null
.getHost
in interface IpcServerEndpoint
public void setHost(String host)
host
- Host.public boolean isManagement()
isManagement
in interface IpcServerEndpoint
true
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 Fabric : ver. 2.0.0 Release Date : April 30 2017