Search in sources :

Example 1 with CollectorManager

use of com.navercorp.pinpoint.collector.manage.CollectorManager in project pinpoint by naver.

the class JMXCollectorManager method setUp.

@PostConstruct
public void setUp() {
    logger.info("PinpointCollectorManager initialization started.");
    for (CollectorManager collectorManager : jmxCollectorManagerList.getSupportList()) {
        try {
            pinpointMBeanServer.registerMBean(collectorManager);
        } catch (Exception e) {
            logger.warn("Failed to register {} MBean.", collectorManager, e);
        }
    }
    logger.info("PinpointCollectorManager initialization completed.");
}
Also used : CollectorManager(com.navercorp.pinpoint.collector.manage.CollectorManager) PostConstruct(javax.annotation.PostConstruct)

Example 2 with CollectorManager

use of com.navercorp.pinpoint.collector.manage.CollectorManager 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.");
}
Also used : CollectorManager(com.navercorp.pinpoint.collector.manage.CollectorManager) PreDestroy(javax.annotation.PreDestroy)

Aggregations

CollectorManager (com.navercorp.pinpoint.collector.manage.CollectorManager)2 PostConstruct (javax.annotation.PostConstruct)1 PreDestroy (javax.annotation.PreDestroy)1