Package hudson.plugins.ec2.ebs
Class ZPoolMonitor
- java.lang.Object
-
- java.util.TimerTask
-
- hudson.triggers.SafeTimerTask
-
- hudson.model.PeriodicWork
-
- hudson.plugins.ec2.ebs.ZPoolMonitor
-
- All Implemented Interfaces:
ExtensionPoint
,Runnable
@Extension public class ZPoolMonitor extends 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 class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnable
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN
-
-
Constructor Summary
Constructors Constructor Description ZPoolMonitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, init
-
Methods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, run
-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Method Detail
-
getRecurrencePeriod
public long getRecurrencePeriod()
- Specified by:
getRecurrencePeriod
in classPeriodicWork
-
doRun
protected void doRun()
- Specified by:
doRun
in classSafeTimerTask
-
isInsideEC2
public static boolean isInsideEC2()
Returns true if this JVM runs inside EC2.
-
-