public class TcpServer extends Object implements TcpServerMBean
| Modifier and Type | Class and Description |
|---|---|
static class |
TcpServer.Monitor |
| Modifier and Type | Field and Description |
|---|---|
private ServerSocket |
listen |
private TcpServer.Monitor[] |
monitors |
private fr.dyade.aaa.agent.AgentId |
serverId |
| Constructor and Description |
|---|
TcpServer(ServerSocket listen,
int poolSize,
fr.dyade.aaa.agent.AgentId serverId) |
| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
getListen() |
int |
getListenPort()
Gets the listen port of the server.
|
int |
getPoolSize()
Gets the number of threads of the pool.
|
fr.dyade.aaa.agent.AgentId |
getServerId() |
void |
start() |
void |
stop() |
private volatile ServerSocket listen
private TcpServer.Monitor[] monitors
private fr.dyade.aaa.agent.AgentId serverId
public TcpServer(ServerSocket listen, int poolSize, fr.dyade.aaa.agent.AgentId serverId)
public int getPoolSize()
getPoolSize in interface TcpServerMBeanpublic int getListenPort()
getListenPort in interface TcpServerMBeanpublic final void start()
public final void stop()
public final ServerSocket getListen()
public final fr.dyade.aaa.agent.AgentId getServerId()
Copyright © 2021 ScalAgent D.T.. All rights reserved.