org.jclouds.vcloud.compute.functions
Class VAppToNodeMetadata

java.lang.Object
  extended by org.jclouds.vcloud.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  Map<String,Credentials> credentialStore
           
protected  FindLocationForResource findLocationForResourceInVDC
           
protected  com.google.common.base.Function<VApp,Hardware> hardwareForVApp
           
protected static Logger logger
           
protected  Map<Status,NodeState> vAppStatusToNodeState
           
 
Constructor Summary
protected VAppToNodeMetadata(Map<Status,NodeState> vAppStatusToNodeState, Map<String,Credentials> credentialStore, FindLocationForResource findLocationForResourceInVDC, com.google.common.base.Function<VApp,Hardware> hardwareForVApp)
           
 
Method Summary
 NodeMetadata apply(VApp 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

protected static Logger logger

findLocationForResourceInVDC

protected final FindLocationForResource findLocationForResourceInVDC

hardwareForVApp

protected final com.google.common.base.Function<VApp,Hardware> hardwareForVApp

vAppStatusToNodeState

protected final Map<Status,NodeState> vAppStatusToNodeState

credentialStore

protected final Map<String,Credentials> credentialStore
Constructor Detail

VAppToNodeMetadata

@Inject
protected VAppToNodeMetadata(Map<Status,NodeState> vAppStatusToNodeState,
                                    Map<String,Credentials> credentialStore,
                                    FindLocationForResource findLocationForResourceInVDC,
                                    com.google.common.base.Function<VApp,Hardware> hardwareForVApp)
Method Detail

apply

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


Copyright © 2009-2011 jclouds. All Rights Reserved.