@Singleton public class BaseVirtualApplianceMonitor extends BaseMonitoringService implements VirtualApplianceMonitor
VirtualAppliance
objects.Modifier and Type | Field and Description |
---|---|
protected VirtualApplianceDeployMonitor |
deployMonitor |
protected VirtualApplianceUndeployMonitor |
undeployMonitor |
context, eventBus, pollingDelay, scheduler
Constructor and Description |
---|
BaseVirtualApplianceMonitor(RestContext<AbiquoApi,AbiquoAsyncApi> context,
ScheduledExecutorService scheduler,
Long pollingDelay,
com.google.common.eventbus.EventBus eventBus,
VirtualApplianceDeployMonitor deployMonitor,
VirtualApplianceUndeployMonitor undeployMonitor) |
Modifier and Type | Method and Description |
---|---|
void |
awaitCompletionDeploy(Long maxWait,
TimeUnit timeUnit,
VirtualAppliance... vapps)
Monitor the given
VirtualAppliance s and block until the deploy finishes. |
void |
awaitCompletionDeploy(VirtualAppliance... vapps)
Monitor the given
VirtualAppliance s and block until the deploy finishes. |
void |
awaitCompletionUndeploy(Long maxWait,
TimeUnit timeUnit,
VirtualAppliance... vapps)
Monitor the given
VirtualAppliance s and blocks until the undeploy finishes. |
void |
awaitCompletionUndeploy(VirtualAppliance... vapps)
Monitor the given
VirtualAppliance s and block until the undeploy finishes. |
void |
monitorDeploy(Long maxWait,
TimeUnit timeUnit,
VirtualAppliance... vapps)
Monitor the given
VirtualAppliance s and populate an event when deploy finishes. |
void |
monitorDeploy(VirtualAppliance... vapps)
Monitor the given
VirtualAppliance s and populate an event when the deploy finishes. |
void |
monitorUndeploy(Long maxWait,
TimeUnit timeUnit,
VirtualAppliance... vapps)
Monitor the given
VirtualAppliance s and populate an event when undeploy finishes. |
void |
monitorUndeploy(VirtualAppliance... vapps)
Monitor the given
VirtualAppliance s and call populate an event when undeploy
finishes. |
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 VirtualApplianceDeployMonitor deployMonitor
protected VirtualApplianceUndeployMonitor undeployMonitor
@Inject public BaseVirtualApplianceMonitor(RestContext<AbiquoApi,AbiquoAsyncApi> context, @Named(value="jclouds.scheduler-threads") ScheduledExecutorService scheduler, @Named(value="abiquo.monitor-delay") Long pollingDelay, com.google.common.eventbus.EventBus eventBus, VirtualApplianceDeployMonitor deployMonitor, VirtualApplianceUndeployMonitor undeployMonitor)
public void awaitCompletionDeploy(VirtualAppliance... vapps)
VirtualApplianceMonitor
VirtualAppliance
s and block until the deploy finishes.awaitCompletionDeploy
in interface VirtualApplianceMonitor
vapps
- The VirtualAppliance
s to monitor.public void monitorDeploy(VirtualAppliance... vapps)
VirtualApplianceMonitor
VirtualAppliance
s and populate an event when the deploy finishes.monitorDeploy
in interface VirtualApplianceMonitor
public void awaitCompletionDeploy(Long maxWait, TimeUnit timeUnit, VirtualAppliance... vapps)
VirtualApplianceMonitor
VirtualAppliance
s and block until the deploy finishes.awaitCompletionDeploy
in interface VirtualApplianceMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.vapps
- The VirtualAppliance
s to monitor.public void monitorDeploy(Long maxWait, TimeUnit timeUnit, VirtualAppliance... vapps)
VirtualApplianceMonitor
VirtualAppliance
s and populate an event when deploy finishes.monitorDeploy
in interface VirtualApplianceMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.vapps
- The VirtualAppliance
s to monitor.public void awaitCompletionUndeploy(VirtualAppliance... vapps)
VirtualApplianceMonitor
VirtualAppliance
s and block until the undeploy finishes.awaitCompletionUndeploy
in interface VirtualApplianceMonitor
vapps
- The VirtualAppliance
s to monitor.public void monitorUndeploy(VirtualAppliance... vapps)
VirtualApplianceMonitor
VirtualAppliance
s and call populate an event when undeploy
finishes.monitorUndeploy
in interface VirtualApplianceMonitor
vapps
- The VirtualAppliance
s to monitor.public void awaitCompletionUndeploy(Long maxWait, TimeUnit timeUnit, VirtualAppliance... vapps)
VirtualApplianceMonitor
VirtualAppliance
s and blocks until the undeploy finishes.awaitCompletionUndeploy
in interface VirtualApplianceMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.vapps
- The VirtualAppliance
s to monitor.public void monitorUndeploy(Long maxWait, TimeUnit timeUnit, VirtualAppliance... vapps)
VirtualApplianceMonitor
VirtualAppliance
s and populate an event when undeploy finishes.monitorUndeploy
in interface VirtualApplianceMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.vapps
- The VirtualAppliance
s to monitor.Copyright © 2009-2013 jclouds. All Rights Reserved.