Search in sources :

Example 1 with ShutdownException

use of io.fabric8.common.util.ShutdownTracker.ShutdownException in project fabric8 by jboss-fuse.

the class FabricDetectingGateway method deactivate.

@Deactivate
void deactivate() throws Exception {
    JMXUtils.unregisterMBean(mbeanServer, new ObjectName("io.fabric8.gateway:type=DetectingGateway"));
    deactivateComponent();
    if (detectingGateway != null) {
        cache.destroy();
        detectingGateway.destroy();
        detectingGateway = null;
    }
    try {
        shutdownTacker.shutdown(new Runnable() {

            @Override
            public void run() {
                LOG.info("Invoked Shutdown on DetectingGateway.");
            }
        });
    } catch (ShutdownException e) {
        LOG.error("Exception while shutting down Detecting Gateway", e);
    }
}
Also used : ShutdownException(io.fabric8.common.util.ShutdownTracker.ShutdownException) ObjectName(javax.management.ObjectName)

Aggregations

ShutdownException (io.fabric8.common.util.ShutdownTracker.ShutdownException)1 ObjectName (javax.management.ObjectName)1