Exemple #1
0
 public virtual void Shutdown()
 {
     if (ch != null)
     {
         ch.Close().AwaitUninterruptibly();
     }
     if (server != null)
     {
         server.ReleaseExternalResources();
     }
 }
            /// <exception cref="System.Exception"/>
            public override void ExceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
            {
                Org.Jboss.Netty.Channel.Channel ch = e.GetChannel();
                Exception cause = e.GetCause();

                if (TestDelegationTokenRemoteFetcher.Log.IsDebugEnabled())
                {
                    TestDelegationTokenRemoteFetcher.Log.Debug(cause.Message);
                }
                ch.Close().AddListener(ChannelFutureListener.Close);
            }