@Singleton public class BaseConversionMonitor extends BaseMonitoringService implements ConversionMonitor
Conversion
objects.Modifier and Type | Field and Description |
---|---|
protected ConversionStatusMonitor |
conversionMonitor |
context, eventBus, pollingDelay, scheduler
Constructor and Description |
---|
BaseConversionMonitor(RestContext<AbiquoApi,AbiquoAsyncApi> context,
ScheduledExecutorService scheduler,
Long pollingDelay,
com.google.common.eventbus.EventBus eventBus,
ConversionStatusMonitor monitor) |
Modifier and Type | Method and Description |
---|---|
void |
awaitCompletion(Conversion... conversions)
Monitor the given
Conversion s and block until they finishes. |
void |
awaitCompletion(Long maxWait,
TimeUnit timeUnit,
Conversion... conversions)
Monitor the given
Conversion s and block until they finish. |
void |
monitor(Conversion... conversions)
Monitor the given
Conversion s and populate an event when they finish. |
void |
monitor(Long maxWait,
TimeUnit timeUnit,
Conversion... conversions)
Monitor the given
Conversion s and populate an event when they finish. |
awaitCompletion, awaitCompletion, getAsyncTaskMonitor, getConversionMonitor, getVirtualApplianceMonitor, getVirtualMachineMonitor, monitor, monitor, register, unregister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
awaitCompletion, awaitCompletion, getAsyncTaskMonitor, getConversionMonitor, getVirtualApplianceMonitor, getVirtualMachineMonitor, monitor, monitor, register, unregister
protected ConversionStatusMonitor conversionMonitor
@Inject public BaseConversionMonitor(RestContext<AbiquoApi,AbiquoAsyncApi> context, @Named(value="jclouds.scheduler-threads") ScheduledExecutorService scheduler, @Named(value="abiquo.monitor-delay") Long pollingDelay, com.google.common.eventbus.EventBus eventBus, ConversionStatusMonitor monitor)
public void awaitCompletion(Conversion... conversions)
ConversionMonitor
Conversion
s and block until they finishes.awaitCompletion
in interface ConversionMonitor
conversions
- The Conversion
s to monitor.public void monitor(Conversion... conversions)
ConversionMonitor
Conversion
s and populate an event when they finish.monitor
in interface ConversionMonitor
conversions
- The Conversion
s to monitor.public void awaitCompletion(Long maxWait, TimeUnit timeUnit, Conversion... conversions)
ConversionMonitor
Conversion
s and block until they finish.awaitCompletion
in interface ConversionMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.conversions
- The Conversion
s to monitor.public void monitor(Long maxWait, TimeUnit timeUnit, Conversion... conversions)
ConversionMonitor
Conversion
s and populate an event when they finish.monitor
in interface ConversionMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.conversions
- The Conversion
s to monitor.Copyright © 2009-2013 jclouds. All Rights Reserved.