Remote startup / Shudown of a netty server
이희승 (Trustin Lee)
trustin at gmail.com
Wed Jan 26 11:44:03 EST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
It will be OK if you are going to terminate the VM on stop. Otherwise you should release all resources properly as documented in the javadoc - NioServerSocketChannelFactory and NioClientSocketChannelFactory.
"Brendt" <draco2k4 at yahoo.com> wrote:
>
>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.
>_______________________________________________
>netty-users mailing list
>netty-users at lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/netty-users
- --
Trustin Lee, http://gleamynode.net/
Sent from a mobile device. Please excuse my brevity.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8
iIkEAREIADEFAk1AT1MqHFRydXN0aW4gSGV1aXNldW5nIExlZSA8dHJ1c3RpbkBn
bWFpbC5jb20+AAoJEJb7nbIZ8zON9u0A/jUBQ/qbFHA3V0esqX2zP52JCLKdQCxe
nhxGpJs0obwCAP9/hpzWz9weF55U5BQgjnW5q+Wt/A34ZAeutNcPe1vcmQ==
=VdKJ
-----END PGP SIGNATURE-----
More information about the netty-users
mailing list