org.apache.whirr.service
Class DryRunModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.apache.whirr.service.DryRunModule
All Implemented Interfaces:
com.google.inject.Module

public class DryRunModule
extends com.google.inject.AbstractModule

Outputs orchestration jclouds does to INFO logging and saves an ordered list of all scripts executed on the cluster that can be used to make assertions. Use in tests by setting whirr.provider to "stub" and make sure you do not specify a hardware, image, or location id.


Nested Class Summary
static class DryRunModule.DryRun
           
 class DryRunModule.LogCallToRunScriptOnNode
           
 class DryRunModule.SaveDryRunsByInterceptingRunScriptOnNodeCreation
           
 
Constructor Summary
DryRunModule()
           
 
Method Summary
protected  void configure()
           
static DryRunModule.DryRun getDryRun()
           
static String md5Hex(com.google.common.io.InputSupplier<? extends InputStream> supplier)
           
static String md5Hex(String in)
           
static void resetDryRun()
           
 
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

DryRunModule

public DryRunModule()
Method Detail

getDryRun

public static DryRunModule.DryRun getDryRun()

resetDryRun

public static void resetDryRun()

configure

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

md5Hex

public static String md5Hex(String in)

md5Hex

public static String md5Hex(com.google.common.io.InputSupplier<? extends InputStream> supplier)


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.