org.jclouds.compute.config
Class ComputeServiceTimeoutsModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.compute.config.ComputeServiceTimeoutsModule
All Implemented Interfaces:
com.google.inject.Module

public class ComputeServiceTimeoutsModule
extends com.google.inject.AbstractModule

Author:
Adrian Cole

Constructor Summary
ComputeServiceTimeoutsModule()
           
 
Method Summary
protected  void configure()
           
protected  com.google.common.base.Predicate<AtomicReference<Image>> imageAvailable(AtomicImageAvailable statusAvailable, ComputeServiceConstants.Timeouts timeouts)
           
protected  com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning(AtomicNodeRunning statusRunning, ComputeServiceConstants.Timeouts timeouts)
           
protected  com.google.common.base.Predicate<ScriptStatusReturnsZero.CommandUsingClient> runScriptRunning(ScriptStatusReturnsZero statusRunning, ComputeServiceConstants.Timeouts timeouts)
           
protected  com.google.common.base.Predicate<AtomicReference<Image>> serverDeleted(AtomicImageDeleted statusDeleted, ComputeServiceConstants.Timeouts timeouts)
           
protected  com.google.common.base.Predicate<AtomicReference<NodeMetadata>> serverSuspended(AtomicNodeSuspended statusSuspended, ComputeServiceConstants.Timeouts timeouts)
           
protected  com.google.common.base.Predicate<AtomicReference<NodeMetadata>> serverTerminated(AtomicNodeTerminated statusTerminated, ComputeServiceConstants.Timeouts timeouts)
           
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputeServiceTimeoutsModule

public ComputeServiceTimeoutsModule()
Method Detail

nodeRunning

@Provides
@Singleton
@Named(value="jclouds.compute.timeout.node-running")
protected com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning(AtomicNodeRunning statusRunning,
                                                                                                               ComputeServiceConstants.Timeouts timeouts)

serverTerminated

@Provides
@Singleton
@Named(value="jclouds.compute.timeout.node-terminated")
protected com.google.common.base.Predicate<AtomicReference<NodeMetadata>> serverTerminated(AtomicNodeTerminated statusTerminated,
                                                                                                                    ComputeServiceConstants.Timeouts timeouts)

serverSuspended

@Provides
@Singleton
@Named(value="jclouds.compute.timeout.node-suspended")
protected com.google.common.base.Predicate<AtomicReference<NodeMetadata>> serverSuspended(AtomicNodeSuspended statusSuspended,
                                                                                                                   ComputeServiceConstants.Timeouts timeouts)

runScriptRunning

@Provides
@Singleton
@Named(value="jclouds.compute.timeout.script-complete")
protected com.google.common.base.Predicate<ScriptStatusReturnsZero.CommandUsingClient> runScriptRunning(ScriptStatusReturnsZero statusRunning,
                                                                                                                                 ComputeServiceConstants.Timeouts timeouts)

imageAvailable

@Provides
@Singleton
@Named(value="jclouds.compute.timeout.image-available")
protected com.google.common.base.Predicate<AtomicReference<Image>> imageAvailable(AtomicImageAvailable statusAvailable,
                                                                                                           ComputeServiceConstants.Timeouts timeouts)

serverDeleted

@Provides
@Singleton
@Named(value="jclouds.compute.timeout.image-deleted")
protected com.google.common.base.Predicate<AtomicReference<Image>> serverDeleted(AtomicImageDeleted statusDeleted,
                                                                                                          ComputeServiceConstants.Timeouts timeouts)

configure

protected void configure()
Specified by:
configure in class com.google.inject.AbstractModule


Copyright © 2009-2012 jclouds. All Rights Reserved.