public class NettyTransportServer extends Object implements ClusterTokenServer
| Constructor and Description |
|---|
NettyTransportServer(int port) |
| Modifier and Type | Method and Description |
|---|---|
int |
clientCount() |
void |
closeAll() |
void |
closeConnection(String clientIp,
int clientPort) |
int |
getCurrentState() |
List<String> |
listAllClient() |
void |
refreshRunningServer() |
void |
start() |
void |
stop() |
public void start()
start in interface ClusterTokenServerpublic void stop()
stop in interface ClusterTokenServerpublic void refreshRunningServer()
public void closeConnection(String clientIp, int clientPort) throws Exception
Exceptionpublic int getCurrentState()
public int clientCount()
Copyright © 2021 Alibaba Group. All rights reserved.