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<NodeMetadata> nodeRunning(NodeRunning stateRunning, ComputeServiceConstants.Timeouts timeouts)
           
protected  com.google.common.base.Predicate<ScriptStatusReturnsZero.CommandUsingClient> runScriptRunning(ScriptStatusReturnsZero stateRunning, ComputeServiceConstants.Timeouts timeouts)
           
protected  com.google.common.base.Predicate<NodeMetadata> serverSuspended(NodeSuspended stateSuspended, ComputeServiceConstants.Timeouts timeouts)
           
protected  com.google.common.base.Predicate<NodeMetadata> serverTerminated(NodeTerminated stateTerminated, 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="NODE_RUNNING")
protected com.google.common.base.Predicate<NodeMetadata> nodeRunning(NodeRunning stateRunning,
                                                                                              ComputeServiceConstants.Timeouts timeouts)

serverTerminated

@Provides
@Singleton
@Named(value="NODE_TERMINATED")
protected com.google.common.base.Predicate<NodeMetadata> serverTerminated(NodeTerminated stateTerminated,
                                                                                                   ComputeServiceConstants.Timeouts timeouts)

serverSuspended

@Provides
@Singleton
@Named(value="NODE_SUSPENDED")
protected com.google.common.base.Predicate<NodeMetadata> serverSuspended(NodeSuspended stateSuspended,
                                                                                                  ComputeServiceConstants.Timeouts timeouts)

runScriptRunning

@Provides
@Singleton
@Named(value="SCRIPT_COMPLETE")
protected com.google.common.base.Predicate<ScriptStatusReturnsZero.CommandUsingClient> runScriptRunning(ScriptStatusReturnsZero stateRunning,
                                                                                                                                 ComputeServiceConstants.Timeouts timeouts)

configure

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


Copyright © 2009-2011 jclouds. All Rights Reserved.