public class GridTcpRouterImpl extends Object implements GridTcpRouter, GridTcpRouterMBean, LifecycleAware
| Constructor and Description |
|---|
GridTcpRouterImpl(GridTcpRouterConfiguration cfg)
Creates new router instance.
|
| Modifier and Type | Method and Description |
|---|---|
GridTcpRouterConfiguration |
configuration()
Returns configuration used to start router.
|
boolean |
equals(Object o) |
String |
getHost()
Gets host for TCP binary protocol server.
|
int |
getPort()
Gets port for TCP binary protocol server.
|
long |
getReceivedCount()
Returns number of messages received by this router.
|
long |
getSendCount()
Returns number of responses returned by this router.
|
Collection<String> |
getServers()
Gets list of server addresses where router's embedded client should connect.
|
int |
hashCode() |
UUID |
id()
Returns router Id.
|
boolean |
isSslClientAuth()
Gets a flag indicating whether or not remote clients will be required to have a valid SSL certificate which
validity will be verified with trust manager.
|
boolean |
isSslEnabled()
Gets a flag indicating whether or not remote clients will be required to have a valid SSL certificate which
validity will be verified with trust manager.
|
void |
start()
Starts router.
|
void |
stop()
Stops this router.
|
public GridTcpRouterImpl(GridTcpRouterConfiguration cfg)
cfg - Router configuration.public void start()
throws IgniteException
start in interface LifecycleAwareIgniteException - If failed.public void stop()
stop in interface LifecycleAwarepublic String getHost()
getHost in interface GridTcpRouterMBeanpublic int getPort()
getPort in interface GridTcpRouterMBeanpublic boolean isSslEnabled()
isSslEnabled in interface GridTcpRouterMBeanpublic boolean isSslClientAuth()
isSslClientAuth in interface GridTcpRouterMBeanpublic Collection<String> getServers()
getServers in interface GridTcpRouterMBeanpublic UUID id()
Unique router Ids are automatically generated on router startup.
They are used to control router's lifecycle via GridRouterFactory.
id in interface GridTcpRouterGridRouterFactory.tcpRouter(UUID),
GridRouterFactory.stopTcpRouter(UUID)public GridTcpRouterConfiguration configuration()
configuration in interface GridTcpRouterGridRouterFactory.startTcpRouter(GridTcpRouterConfiguration)public long getReceivedCount()
getReceivedCount in interface GridTcpRouterMBeanpublic long getSendCount()
getSendCount in interface GridTcpRouterMBean
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018