Package xyz.cofe.trambda.tcp.serv.cli
Class TcpServerCLI
- java.lang.Object
-
- xyz.cofe.trambda.tcp.serv.cli.TcpServerCLI
-
public class TcpServerCLI extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Map<TcpServer<Object>,ServerBuildInfo<Object>>serversstatic Map<InetSocketAddress,ServerBuildInfo<Object>>serversBuildInfo
-
Constructor Summary
Constructors Constructor Description TcpServerCLI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddService(Class<?> service, String host, int port)Map<InetSocketAddress,ServerBuildInfo<Object>>getServersBuildInfo()static voidmain(String[] args0)voidservice(String addr, Class<?> srvc)voidservice(String addr, Class<?> srvc, groovy.lang.Closure<?> conf)voidservice(String addr, Object srvc)voidservice(String addr, Object srvc, groovy.lang.Closure<?> conf)voidstart()voidstop()
-
-
-
Field Detail
-
servers
public static final Map<TcpServer<Object>,ServerBuildInfo<Object>> servers
-
serversBuildInfo
public static final Map<InetSocketAddress,ServerBuildInfo<Object>> serversBuildInfo
-
-
Method Detail
-
getServersBuildInfo
public Map<InetSocketAddress,ServerBuildInfo<Object>> getServersBuildInfo()
-
start
public void start()
-
stop
public void stop()
-
main
public static void main(String[] args0)
-
-