hudson.plugins.ec2.ebs
Class ZPoolMonitor

java.lang.Object
  extended by java.util.TimerTask
      extended by hudson.triggers.SafeTimerTask
          extended by hudson.model.PeriodicWork
              extended by hudson.plugins.ec2.ebs.ZPoolMonitor
All Implemented Interfaces:
hudson.ExtensionPoint, java.lang.Runnable

@Extension
public class ZPoolMonitor
extends hudson.model.PeriodicWork

Once an hour, check if the main zpool is that hosts $HUDSON_HOME has still enough free space.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN
 
Constructor Summary
ZPoolMonitor()
           
 
Method Summary
protected  void doRun()
           
 long getRecurrencePeriod()
           
static boolean isInsideEC2()
          Returns true if this JVM runs inside EC2.
 
Methods inherited from class hudson.model.PeriodicWork
all, getInitialDelay
 
Methods inherited from class hudson.triggers.SafeTimerTask
run
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZPoolMonitor

public ZPoolMonitor()
Method Detail

getRecurrencePeriod

public long getRecurrencePeriod()
Specified by:
getRecurrencePeriod in class hudson.model.PeriodicWork

doRun

protected void doRun()
Specified by:
doRun in class hudson.triggers.SafeTimerTask

isInsideEC2

public static boolean isInsideEC2()
Returns true if this JVM runs inside EC2.



Copyright © 2010. All Rights Reserved.