jenkins.plugins.jclouds.compute.internal
Class TerminateNodes

java.lang.Object
  extended by jenkins.plugins.jclouds.compute.internal.TerminateNodes
All Implemented Interfaces:
com.google.common.base.Function<Iterable<RunningNode>,Void>

public class TerminateNodes
extends Object
implements com.google.common.base.Function<Iterable<RunningNode>,Void>


Constructor Summary
TerminateNodes(org.jclouds.logging.Logger logger, com.google.common.cache.LoadingCache<String,org.jclouds.compute.ComputeService> computeCache)
           
 
Method Summary
 Void apply(Iterable<RunningNode> runningNode)
           
 void terminateNode(String cloudName, org.jclouds.compute.domain.NodeMetadata n, boolean suspendOrTerminate, org.jclouds.logging.Logger logger)
          Destroy the node calls ComputeService.destroyNode(java.lang.String)
 
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
 

Constructor Detail

TerminateNodes

public TerminateNodes(org.jclouds.logging.Logger logger,
                      com.google.common.cache.LoadingCache<String,org.jclouds.compute.ComputeService> computeCache)
Method Detail

apply

public Void apply(Iterable<RunningNode> runningNode)
Specified by:
apply in interface com.google.common.base.Function<Iterable<RunningNode>,Void>

terminateNode

public void terminateNode(String cloudName,
                          org.jclouds.compute.domain.NodeMetadata n,
                          boolean suspendOrTerminate,
                          org.jclouds.logging.Logger logger)
                   throws UnsupportedOperationException
Destroy the node calls ComputeService.destroyNode(java.lang.String)

Throws:
UnsupportedOperationException


Copyright © 2004-2012. All Rights Reserved.