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);
}
}
Aggregations