public class GridIpcServerTcpEndpoint extends Object implements GridIpcServerEndpoint
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_IPC_PORT
Default endpoint port number.
|
| Constructor and Description |
|---|
GridIpcServerTcpEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
GridIpcEndpoint |
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 |
start()
Starts configured endpoint implementation.
|
String |
toString() |
public static final int DFLT_IPC_PORT
public void start()
throws GridException
start in interface GridIpcServerEndpointGridException - If failed to start server endpoint.public GridIpcEndpoint accept() throws GridException
accept in interface GridIpcServerEndpointGridException - If accept failed and the endpoint is not usable anymore.public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface GridIpcServerEndpointpublic int getPort()
getPort in interface GridIpcServerEndpointpublic void setPort(int port)
port - Port number.public String getHost()
null.getHost in interface GridIpcServerEndpointpublic void setHost(String host)
host - Host.public boolean isManagement()
isManagement in interface GridIpcServerEndpointtrue if it's a management endpoint.public void setManagement(boolean mgmt)
mgmt - flag.Copyright © 2014. All rights reserved.