Class ManagementRequestTracker

java.lang.Object
org.jboss.as.remoting.management.ManagementRequestTracker

public class ManagementRequestTracker extends Object
The main purpose of this class is to setup proper service dependencies for shutdown. In general all services accepting management requests (http or remoting) register here. On shutdown services registering the shutdown handles need to use the #prepareShutdown and then awaitShutdown() to prevent remoting services to shut down before active management requests could complete.
Author:
Emanuel Muckenhuber
  • Method Details

    • isShutdown

      public boolean isShutdown()
    • prepareShutdown

      public void prepareShutdown()
    • registerTracker

      public void registerTracker(org.jboss.as.protocol.mgmt.support.ManagementChannelShutdownHandle tracker)
    • unregisterTracker

      public void unregisterTracker(org.jboss.as.protocol.mgmt.support.ManagementChannelShutdownHandle tracker)
    • awaitShutdown

      public boolean awaitShutdown(long timeout, TimeUnit timeUnit) throws InterruptedException
      Throws:
      InterruptedException