use of javax.annotation.PreDestroy in project netvirt by opendaylight.
the class ElanDiagStatusProvider method close.
@PreDestroy
public void close() {
serviceDescriptor = new ServiceDescriptor(ElanConstants.ELAN_SERVICE_NAME, ServiceState.UNREGISTERED, "Service Closed");
diagStatusService.report(serviceDescriptor);
}
use of javax.annotation.PreDestroy in project joynr by bmwcarit.
the class JoynrIntegrationBean method destroy.
@PreDestroy
public void destroy() {
if (deregisterOnShutdown) {
for (Object provider : registeredProviders) {
try {
joynrRuntime.unregisterProvider(joynrRuntimeFactory.getLocalDomain(), provider);
} catch (Exception e) {
LOG.error("Error unregistering provider", e);
}
}
}
ShutdownNotifier shutdownNotifier = getJoynrInjector().getInstance(ShutdownNotifier.class);
shutdownNotifier.shutdown();
}
use of javax.annotation.PreDestroy in project camunda-bpm-platform by camunda.
the class EjbBpmPlatformBootstrap method stop.
@PreDestroy
protected void stop() {
final RuntimeContainerDelegateImpl containerDelegate = getContainerDelegate();
containerDelegate.getServiceContainer().createUndeploymentOperation("undeploying camunda BPM platform").addStep(new StopProcessApplicationsStep()).addStep(new StopProcessEnginesStep()).addStep(new StopJobExecutorStep()).addStep(new StopJcaExecutorServiceStep()).addStep(new UnregisterBpmPlatformPluginsStep()).execute();
LOGGER.log(Level.INFO, "camunda BPM platform stopped.");
}
use of javax.annotation.PreDestroy in project iobserve-analysis by research-iobserve.
the class DeploymentInterceptor method preDestroy.
/**
* Trigger event before container is undeployed.
*
* @param context
* invocation context with the container
* @return result of the filter chain
* @throws Exception
* on any internal error
*/
@PreDestroy
public Object preDestroy(final InvocationContext context) throws Exception {
final Object result = context.proceed();
if (this.monitoringCtrl.isMonitoringEnabled()) {
final String signature = context.getTarget().getClass().getCanonicalName();
// if (this.monitoringCtrl.isProbeActivated(signature)) {
this.monitoringCtrl.newMonitoringRecord(new EJBUndeployedEvent(this.timeSource.getTime(), this.hostname, signature, this.deploymentId));
// }
}
return result;
}
use of javax.annotation.PreDestroy in project pinpoint by naver.
the class JMXCollectorManager method tearDown.
@PreDestroy
public void tearDown() {
logger.info("PinpointCollectorManager finalization started.");
for (CollectorManager collectorManager : jmxCollectorManagerList.getSupportList()) {
try {
pinpointMBeanServer.unregisterMBean(collectorManager);
} catch (Exception e) {
logger.warn("Failed to unregister {} MBean.", collectorManager, e);
}
}
logger.info("PinpointCollectorManager finalization completed.");
}
Aggregations