@Singleton public class BaseVirtualMachineMonitor extends BaseMonitoringService implements VirtualMachineMonitor
VirtualMachine
objects.Modifier and Type | Field and Description |
---|---|
protected VirtualMachineDeployMonitor |
deployMonitor |
protected VirtualMachineUndeployMonitor |
undeployMonitor |
context, eventBus, pollingDelay, scheduler
Constructor and Description |
---|
BaseVirtualMachineMonitor(RestContext<AbiquoApi,AbiquoAsyncApi> context,
ScheduledExecutorService scheduler,
Long pollingDelay,
com.google.common.eventbus.EventBus eventBus,
VirtualMachineDeployMonitor deployMonitor,
VirtualMachineUndeployMonitor undeployMonitor) |
Modifier and Type | Method and Description |
---|---|
void |
awaitCompletionDeploy(Long maxWait,
TimeUnit timeUnit,
VirtualMachine... vms)
Monitor the given
VirtualMachine s and block until all deploys finish. |
void |
awaitCompletionDeploy(VirtualMachine... vms)
Monitor the given
VirtualMachine s and block until all deploys finish. |
void |
awaitCompletionUndeploy(Long maxWait,
TimeUnit timeUnit,
VirtualMachine... vms)
Monitor the given
VirtualMachine s and blocks until all undeploys finish. |
void |
awaitCompletionUndeploy(VirtualMachine... vms)
Monitor the given
VirtualMachine s and block until all undeploys finish. |
void |
awaitState(Long maxWait,
TimeUnit timeUnit,
com.abiquo.server.core.cloud.VirtualMachineState state,
VirtualMachine... vms)
Monitor the given
VirtualMachine s and block until it is in the given state. |
void |
awaitState(com.abiquo.server.core.cloud.VirtualMachineState state,
VirtualMachine... vms)
Monitor the given
VirtualMachine s and block until it is in the given state. |
void |
monitorDeploy(Long maxWait,
TimeUnit timeUnit,
VirtualMachine... vms)
Monitor the given
VirtualMachine s and populate an event when all deploys finish. |
void |
monitorDeploy(VirtualMachine... vms)
Monitor the given
VirtualMachine s and populate an event when all deploys finish. |
void |
monitorState(Long maxWait,
TimeUnit timeUnit,
com.abiquo.server.core.cloud.VirtualMachineState state,
VirtualMachine... vms)
Monitor the given
VirtualMachine s and populate an event when it is in the given
state. |
void |
monitorState(com.abiquo.server.core.cloud.VirtualMachineState state,
VirtualMachine... vms)
Monitor the given
VirtualMachine s and populate an event when it is in the given
state. |
void |
monitorUndeploy(Long maxWait,
TimeUnit timeUnit,
VirtualMachine... vms)
Monitor the given
VirtualMachine s and populate an event when all undeploys finish. |
void |
monitorUndeploy(VirtualMachine... vms)
Monitor the given
VirtualMachine s and populate an event when all undeploys 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 VirtualMachineDeployMonitor deployMonitor
protected VirtualMachineUndeployMonitor undeployMonitor
@Inject public BaseVirtualMachineMonitor(RestContext<AbiquoApi,AbiquoAsyncApi> context, @Named(value="jclouds.scheduler-threads") ScheduledExecutorService scheduler, @Named(value="abiquo.monitor-delay") Long pollingDelay, com.google.common.eventbus.EventBus eventBus, VirtualMachineDeployMonitor deployMonitor, VirtualMachineUndeployMonitor undeployMonitor)
public void awaitCompletionDeploy(VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and block until all deploys finish.awaitCompletionDeploy
in interface VirtualMachineMonitor
vms
- The VirtualMachine
s to monitor.public void monitorDeploy(VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and populate an event when all deploys finish.monitorDeploy
in interface VirtualMachineMonitor
vms
- The VirtualMachine
s to monitor.public void awaitCompletionDeploy(Long maxWait, TimeUnit timeUnit, VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and block until all deploys finish.awaitCompletionDeploy
in interface VirtualMachineMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.vms
- The VirtualMachine
s to monitor.public void monitorDeploy(Long maxWait, TimeUnit timeUnit, VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and populate an event when all deploys finish.monitorDeploy
in interface VirtualMachineMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.vms
- The VirtualMachine
s to monitor.public void awaitCompletionUndeploy(VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and block until all undeploys finish.awaitCompletionUndeploy
in interface VirtualMachineMonitor
vms
- The VirtualMachine
s to monitor.public void monitorUndeploy(VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and populate an event when all undeploys finish.monitorUndeploy
in interface VirtualMachineMonitor
vms
- The VirtualMachine
s to monitor.public void awaitCompletionUndeploy(Long maxWait, TimeUnit timeUnit, VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and blocks until all undeploys finish.awaitCompletionUndeploy
in interface VirtualMachineMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.vms
- The VirtualMachine
s to monitor.public void monitorUndeploy(Long maxWait, TimeUnit timeUnit, VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and populate an event when all undeploys finish.monitorUndeploy
in interface VirtualMachineMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.vms
- The VirtualMachine
s to monitor.public void awaitState(com.abiquo.server.core.cloud.VirtualMachineState state, VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and block until it is in the given state.awaitState
in interface VirtualMachineMonitor
vms
- The VirtualMachine
s to monitor.public void monitorState(com.abiquo.server.core.cloud.VirtualMachineState state, VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and populate an event when it is in the given
state.monitorState
in interface VirtualMachineMonitor
vms
- The VirtualMachine
s to monitor.public void awaitState(Long maxWait, TimeUnit timeUnit, com.abiquo.server.core.cloud.VirtualMachineState state, VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and block until it is in the given state.awaitState
in interface VirtualMachineMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.vms
- The VirtualMachine
s to monitor.public void monitorState(Long maxWait, TimeUnit timeUnit, com.abiquo.server.core.cloud.VirtualMachineState state, VirtualMachine... vms)
VirtualMachineMonitor
VirtualMachine
s and populate an event when it is in the given
state.monitorState
in interface VirtualMachineMonitor
maxWait
- The maximum time to wait.timeUnit
- The time unit for the maxWait parameter.vms
- The VirtualMachine
s to monitor.Copyright © 2009-2013 jclouds. All Rights Reserved.