org.jclouds.ec2.compute.functions
Class CreateUniqueKeyPair

java.lang.Object
  extended by org.jclouds.ec2.compute.functions.CreateUniqueKeyPair
All Implemented Interfaces:
com.google.common.base.Function<RegionAndName,KeyPair>

@Singleton
public class CreateUniqueKeyPair
extends Object
implements com.google.common.base.Function<RegionAndName,KeyPair>

Author:
Adrian Cole

Field Summary
protected  EC2Client ec2Client
           
protected  Logger logger
           
protected  com.google.common.base.Supplier<String> randomSuffix
           
 
Constructor Summary
CreateUniqueKeyPair(EC2Client ec2Client, com.google.common.base.Supplier<String> randomSuffix)
           
 
Method Summary
 KeyPair apply(RegionAndName from)
           
 
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 Logger logger

ec2Client

protected final EC2Client ec2Client

randomSuffix

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

CreateUniqueKeyPair

@Inject
public CreateUniqueKeyPair(EC2Client ec2Client,
                                  com.google.common.base.Supplier<String> randomSuffix)
Method Detail

apply

public KeyPair apply(RegionAndName from)
Specified by:
apply in interface com.google.common.base.Function<RegionAndName,KeyPair>


Copyright © 2009-2011 jclouds. All Rights Reserved.