hudson.plugins.ec2
Class EC2RetentionStrategy

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.slaves.RetentionStrategy<?>>
      extended by hudson.slaves.RetentionStrategy<EC2Computer>
          extended by hudson.plugins.ec2.EC2RetentionStrategy
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.slaves.RetentionStrategy<?>>

public class EC2RetentionStrategy
extends hudson.slaves.RetentionStrategy<EC2Computer>

RetentionStrategy for EC2.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class EC2RetentionStrategy.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.slaves.RetentionStrategy
hudson.slaves.RetentionStrategy.Always, hudson.slaves.RetentionStrategy.Demand
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static boolean disabled
           
 int idleTerminationMinutes
          Number of minutes of idleness before an instance should be terminated.
 
Fields inherited from class hudson.slaves.RetentionStrategy
INSTANCE, LIST, NOOP
 
Constructor Summary
EC2RetentionStrategy(String idleTerminationMinutes)
           
 
Method Summary
 long check(EC2Computer c)
           
 void start(EC2Computer c)
          Try to connect to it ASAP.
 
Methods inherited from class hudson.slaves.RetentionStrategy
all, isManualLaunchAllowed
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idleTerminationMinutes

public final int idleTerminationMinutes
Number of minutes of idleness before an instance should be terminated. A value of zero indicates that the instance should never be automatically terminated


disabled

public static boolean disabled
Constructor Detail

EC2RetentionStrategy

@DataBoundConstructor
public EC2RetentionStrategy(String idleTerminationMinutes)
Method Detail

check

public long check(EC2Computer c)
Specified by:
check in class hudson.slaves.RetentionStrategy<EC2Computer>

start

public void start(EC2Computer c)
Try to connect to it ASAP.

Overrides:
start in class hudson.slaves.RetentionStrategy<EC2Computer>


Copyright © 2004-2012 Hudson. All Rights Reserved.