Remote startup / Shudown of a netty server
Brendt
draco2k4 at yahoo.com
Sat Jan 22 13:44:42 EST 2011
Thanks for the quick response Marc. I've done some reading and managed to
get what I wanted done with JMX (pretty neat stuff).
Could you (or anyone) confirm for me that what I'm doing when stopping a
proxy is correct?
public class ProxyServer
{
private Channel proxyChannel;
...
public boolean start()
{
...
final Channel channel = bootstrap.bind(new InetSocketAddress(ipAddress,
port));
this.proxyChannel = channel;
...
}
public boolean stop()
{
proxyChannel.close();
}
}
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Remote-startup-Shudown-of-a-netty-server-tp5925249p5951348.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list