org.jclouds.vcloud.compute.strategy
Class VCloudListNodesStrategy

java.lang.Object
  extended by org.jclouds.vcloud.compute.strategy.VCloudListNodesStrategy
All Implemented Interfaces:
ListNodesStrategy

@Singleton
public class VCloudListNodesStrategy
extends Object
implements ListNodesStrategy

Author:
Adrian Cole

Field Summary
protected  VCloudClient client
           
protected  FindLocationForResource findLocationForResourceInVDC
           
protected  VCloudGetNodeMetadataStrategy getNodeMetadata
           
 Logger logger
           
protected  com.google.common.base.Supplier<Map<String,? extends Org>> nameToOrg
           
 
Constructor Summary
protected VCloudListNodesStrategy(VCloudClient client, com.google.common.base.Supplier<Map<String,? extends Org>> nameToOrg, VCloudGetNodeMetadataStrategy getNodeMetadata, FindLocationForResource findLocationForResourceInVDC)
           
 
Method Summary
 Iterable<NodeMetadata> listDetailsOnNodesMatching(com.google.common.base.Predicate<ComputeMetadata> filter)
           
 Iterable<ComputeMetadata> listNodes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

@Named(value="jclouds.compute")
public Logger logger

client

protected final VCloudClient client

nameToOrg

protected final com.google.common.base.Supplier<Map<String,? extends Org>> nameToOrg

getNodeMetadata

protected final VCloudGetNodeMetadataStrategy getNodeMetadata

findLocationForResourceInVDC

protected final FindLocationForResource findLocationForResourceInVDC
Constructor Detail

VCloudListNodesStrategy

@Inject
protected VCloudListNodesStrategy(VCloudClient client,
                                         com.google.common.base.Supplier<Map<String,? extends Org>> nameToOrg,
                                         VCloudGetNodeMetadataStrategy getNodeMetadata,
                                         FindLocationForResource findLocationForResourceInVDC)
Method Detail

listNodes

public Iterable<ComputeMetadata> listNodes()
Specified by:
listNodes in interface ListNodesStrategy

listDetailsOnNodesMatching

public Iterable<NodeMetadata> listDetailsOnNodesMatching(com.google.common.base.Predicate<ComputeMetadata> filter)
Specified by:
listDetailsOnNodesMatching in interface ListNodesStrategy


Copyright © 2009-2011 jclouds. All Rights Reserved.