use of alma.MonitorErr.CollectorRegistrationFailedEx in project ACS by ACS-Community.
the class FileReaderCollectorImpl method initialize.
@Override
public void initialize(ContainerServices inContainerServices) throws ComponentLifecycleException {
super.initialize(inContainerServices);
Controller controller;
try {
controller = ControllerHelper.narrow(m_containerServices.getComponent("ARCHIVE/TMCDB/MONITOR_CONTROL"));
controller.registerCollector(name());
} catch (AcsJContainerServicesEx ex) {
throw new ComponentLifecycleException(ex);
} catch (CollectorRegistrationFailedEx ex) {
throw new ComponentLifecycleException(ex);
}
}
Aggregations