use of com.emc.storageos.volumecontroller.impl.monitoring.MonitoringJob 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);
}
}
use of com.emc.storageos.volumecontroller.impl.monitoring.MonitoringJob 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);
}
}
use of com.emc.storageos.volumecontroller.impl.monitoring.MonitoringJob 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);
}
}
Aggregations