Search in sources :

Example 1 with CollectorRegistrationFailedEx

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);
    }
}
Also used : ComponentLifecycleException(alma.acs.component.ComponentLifecycleException) Controller(alma.MonitorArchiver.Controller) AcsJContainerServicesEx(alma.JavaContainerError.wrappers.AcsJContainerServicesEx) CollectorRegistrationFailedEx(alma.MonitorErr.CollectorRegistrationFailedEx)

Aggregations

AcsJContainerServicesEx (alma.JavaContainerError.wrappers.AcsJContainerServicesEx)1 Controller (alma.MonitorArchiver.Controller)1 CollectorRegistrationFailedEx (alma.MonitorErr.CollectorRegistrationFailedEx)1 ComponentLifecycleException (alma.acs.component.ComponentLifecycleException)1