Search in sources :

Example 1 with MonitorTaskCompleter

use of com.emc.storageos.volumecontroller.impl.plugins.discovery.smis.MonitorTaskCompleter in project coprhd-controller by CoprHD.

the class ObjectControllerImpl method startMonitoring.

@Override
public void startMonitoring(AsyncTask task, Type deviceType) throws InternalException {
    try {
        _log.debug("ObjectControllerImpl:startMonitoring");
        MonitoringJob job = new MonitoringJob();
        job.setCompleter(new MonitorTaskCompleter(task));
        job.setDeviceType(deviceType);
        ControllerServiceImpl.enqueueMonitoringJob(job);
    } catch (Exception e) {
        throw ClientControllerException.fatals.unableToMonitorSMISProvider(task, deviceType.toString(), e);
    }
}
Also used : MonitoringJob(com.emc.storageos.volumecontroller.impl.monitoring.MonitoringJob) MonitorTaskCompleter(com.emc.storageos.volumecontroller.impl.plugins.discovery.smis.MonitorTaskCompleter) InternalException(com.emc.storageos.svcs.errorhandling.resources.InternalException) ControllerException(com.emc.storageos.volumecontroller.ControllerException) ClientControllerException(com.emc.storageos.exceptions.ClientControllerException)

Example 2 with MonitorTaskCompleter

use of com.emc.storageos.volumecontroller.impl.plugins.discovery.smis.MonitorTaskCompleter in project coprhd-controller by CoprHD.

the class BlockControllerImpl method startMonitoring.

/**
 * {@inheritDoc}
 */
@Override
public void startMonitoring(AsyncTask task, Type deviceType) throws ControllerException {
    try {
        MonitoringJob job = new MonitoringJob();
        job.setCompleter(new MonitorTaskCompleter(task));
        job.setDeviceType(deviceType);
        ControllerServiceImpl.enqueueMonitoringJob(job);
    } catch (Exception e) {
        throw ClientControllerException.fatals.unableToMonitorSMISProvider(task, deviceType.toString(), e);
    }
}
Also used : MonitoringJob(com.emc.storageos.volumecontroller.impl.monitoring.MonitoringJob) MonitorTaskCompleter(com.emc.storageos.volumecontroller.impl.plugins.discovery.smis.MonitorTaskCompleter) InternalException(com.emc.storageos.svcs.errorhandling.resources.InternalException) DatabaseException(com.emc.storageos.db.exceptions.DatabaseException) ControllerException(com.emc.storageos.volumecontroller.ControllerException) ClientControllerException(com.emc.storageos.exceptions.ClientControllerException) RetryableDatabaseException(com.emc.storageos.db.exceptions.RetryableDatabaseException)

Example 3 with MonitorTaskCompleter

use of com.emc.storageos.volumecontroller.impl.plugins.discovery.smis.MonitorTaskCompleter in project coprhd-controller by CoprHD.

the class FileControllerImpl method startMonitoring.

@Override
public void startMonitoring(AsyncTask task, Type deviceType) throws ControllerException {
    try {
        MonitoringJob job = new MonitoringJob();
        job.setCompleter(new MonitorTaskCompleter(task));
        job.setDeviceType(deviceType);
        ControllerServiceImpl.enqueueMonitoringJob(job);
    } catch (Exception e) {
        throw ClientControllerException.fatals.unableToMonitorSMISProvider(task, deviceType.toString(), e);
    }
}
Also used : MonitoringJob(com.emc.storageos.volumecontroller.impl.monitoring.MonitoringJob) MonitorTaskCompleter(com.emc.storageos.volumecontroller.impl.plugins.discovery.smis.MonitorTaskCompleter) InternalException(com.emc.storageos.svcs.errorhandling.resources.InternalException) ControllerException(com.emc.storageos.volumecontroller.ControllerException) ClientControllerException(com.emc.storageos.exceptions.ClientControllerException)

Aggregations

ClientControllerException (com.emc.storageos.exceptions.ClientControllerException)3 InternalException (com.emc.storageos.svcs.errorhandling.resources.InternalException)3 ControllerException (com.emc.storageos.volumecontroller.ControllerException)3 MonitoringJob (com.emc.storageos.volumecontroller.impl.monitoring.MonitoringJob)3 MonitorTaskCompleter (com.emc.storageos.volumecontroller.impl.plugins.discovery.smis.MonitorTaskCompleter)3 DatabaseException (com.emc.storageos.db.exceptions.DatabaseException)1 RetryableDatabaseException (com.emc.storageos.db.exceptions.RetryableDatabaseException)1