Examples of shutdownNow()


Examples of org.jboss.as.protocol.mgmt.AbstractMessageHandler.shutdownNow()

        }

        final AbstractMessageHandler handler = this.handler;
        if(handler != null) {
            // discard all active operations
            handler.shutdownNow();
        }

        if (!shutdown.get()) {
            //The remote host went down, try reconnecting
            new Thread(new Runnable() {
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.ManagementChannelHandler.shutdownNow()

                try {
                    handler.awaitCompletion(100, TimeUnit.MILLISECONDS);
                } catch (Exception e) {
                    ROOT_LOGGER.serviceShutdownIncomplete(e);
                } finally {
                    handler.shutdownNow();
                }
            }
        });
        channel.receiveMessage(handler.getReceiver());
        return key;
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.ManagementMessageHandler.shutdownNow()

                    ControllerLogger.ROOT_LOGGER.debugf("HostController server client did not complete shutdown within timeout");
                }
            } catch (Exception e) {
                ControllerLogger.ROOT_LOGGER.warnf(e , "service shutdown did not complete");
            } finally {
                handler.shutdownNow();
            }
        }
    }

    public String getServerName(){
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.support.SimpleHandlers.SimpleClient.shutdownNow()

            future.get(1, TimeUnit.SECONDS);
            Assert.fail();
        } catch(Exception expected) {
            //
        }
        client.shutdownNow();
        // channel close() would make it fail
        // channels.getClientChannel().close();
        try {
            future.get();
            Assert.fail();
View Full Code Here

Examples of org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor.shutdownNow()

        System.out.println("End of channel group");
        channelGroup.close().awaitUninterruptibly();
        comGroup.close().awaitUninterruptibly();
        // Close the executor for Pipeline
        System.out.println("End of pipeline executor");
        pipelineExecutor.shutdownNow();
        // Now release resources
        System.out.println("End of resources");
        factory.releaseExternalResources();
        comFactory.releaseExternalResources();
    }
View Full Code Here

Examples of org.restlet.service.TaskService.shutdownNow()

          // here, we _ensure_ it is shut down properly, since the allowed shutdown seems never invoked?
          final TaskService taskService = getApplication().getTaskService();

          if (taskService != null) {
            taskService.setShutdownAllowed(true);
            taskService.shutdownNow();
          }
        }
        finally {
          getApplication().stop();
        }
View Full Code Here

Examples of org.testng.internal.thread.GroupThreadPoolExecutor.shutdownNow()

          threadCount, threadCount, 0, TimeUnit.MILLISECONDS,
          new LinkedBlockingQueue<Runnable>(), graph);
      executor.run();
      try {
        executor.awaitTermination(10000, TimeUnit.SECONDS);
        executor.shutdownNow();
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.