org.jclouds.trmk.vcloud_0_8.compute.functions
Class VAppToNodeMetadata

java.lang.Object
  extended by org.jclouds.trmk.vcloud_0_8.compute.functions.VAppToNodeMetadata
All Implemented Interfaces:
com.google.common.base.Function<VApp,NodeMetadata>

@Singleton
public class VAppToNodeMetadata
extends Object
implements com.google.common.base.Function<VApp,NodeMetadata>

Author:
Adrian Cole

Field Summary
protected  TerremarkVCloudComputeClient computeClient
           
protected  ConcurrentMap<OrgAndName,KeyPairCredentials> credentialsMap
           
protected  Map<String,Credentials> credentialStore
           
protected  FindLocationForResource findLocationForResourceInVDC
           
protected  HardwareForVCloudExpressVApp hardwareForVCloudExpressVApp
           
protected  com.google.common.base.Supplier<Set<? extends Image>> images
           
protected  Map<Status,NodeState> vAppStatusToNodeState
           
 
Constructor Summary
protected VAppToNodeMetadata(TerremarkVCloudComputeClient computeClient, Map<String,Credentials> credentialStore, Map<Status,NodeState> vAppStatusToNodeState, HardwareForVCloudExpressVApp hardwareForVCloudExpressVApp, FindLocationForResource findLocationForResourceInVDC, com.google.common.base.Supplier<Set<? extends Image>> images, ConcurrentMap<OrgAndName,KeyPairCredentials> credentialsMap)
           
 
Method Summary
 NodeMetadata apply(VApp from)
           
protected  void installCredentialsFromCache(URI nodeId, URI orgId, String group, NodeMetadataBuilder builder)
           
 
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

computeClient

protected final TerremarkVCloudComputeClient computeClient

credentialStore

protected final Map<String,Credentials> credentialStore

images

protected final com.google.common.base.Supplier<Set<? extends Image>> images

findLocationForResourceInVDC

protected final FindLocationForResource findLocationForResourceInVDC

hardwareForVCloudExpressVApp

protected final HardwareForVCloudExpressVApp hardwareForVCloudExpressVApp

vAppStatusToNodeState

protected final Map<Status,NodeState> vAppStatusToNodeState

credentialsMap

protected final ConcurrentMap<OrgAndName,KeyPairCredentials> credentialsMap
Constructor Detail

VAppToNodeMetadata

@Inject
protected VAppToNodeMetadata(TerremarkVCloudComputeClient computeClient,
                                    Map<String,Credentials> credentialStore,
                                    Map<Status,NodeState> vAppStatusToNodeState,
                                    HardwareForVCloudExpressVApp hardwareForVCloudExpressVApp,
                                    FindLocationForResource findLocationForResourceInVDC,
                                    com.google.common.base.Supplier<Set<? extends Image>> images,
                                    ConcurrentMap<OrgAndName,KeyPairCredentials> credentialsMap)
Method Detail

apply

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

installCredentialsFromCache

protected void installCredentialsFromCache(URI nodeId,
                                           URI orgId,
                                           String group,
                                           NodeMetadataBuilder builder)


Copyright © 2009-2011 jclouds. All Rights Reserved.