org.jclouds.googlecomputeengine.functions
Class CreateNetworkIfNeeded

java.lang.Object
  extended by org.jclouds.googlecomputeengine.functions.CreateNetworkIfNeeded
All Implemented Interfaces:
com.google.common.base.Function<NetworkAndAddressRange,Network>

@Singleton
public class CreateNetworkIfNeeded
extends Object
implements com.google.common.base.Function<NetworkAndAddressRange,Network>


Field Summary
protected  GoogleComputeEngineApi api
           
protected  org.jclouds.logging.Logger logger
           
protected  com.google.common.base.Supplier<String> userProject
           
 
Constructor Summary
CreateNetworkIfNeeded(GoogleComputeEngineApi api, com.google.common.base.Supplier<String> userProject, com.google.common.base.Predicate<AtomicReference<Operation>> operationDonePredicate, Long operationCompleteCheckInterval, Long operationCompleteCheckTimeout)
           
 
Method Summary
 Network apply(NetworkAndAddressRange input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

logger

@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger

api

protected final GoogleComputeEngineApi api

userProject

protected final com.google.common.base.Supplier<String> userProject
Constructor Detail

CreateNetworkIfNeeded

@Inject
public CreateNetworkIfNeeded(GoogleComputeEngineApi api,
                                    com.google.common.base.Supplier<String> userProject,
                                    @Named(value="global")
                                    com.google.common.base.Predicate<AtomicReference<Operation>> operationDonePredicate,
                                    @Named(value="jclouds.google-compute-engine.operation-complete-interval")
                                    Long operationCompleteCheckInterval,
                                    @Named(value="jclouds.google-compute-engine.operation-complete-timeout")
                                    Long operationCompleteCheckTimeout)
Method Detail

apply

public Network apply(NetworkAndAddressRange input)
Specified by:
apply in interface com.google.common.base.Function<NetworkAndAddressRange,Network>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.