com.base2services.jenkins
Class SqsHookCleaner

java.lang.Object
  extended by java.util.TimerTask
      extended by hudson.triggers.SafeTimerTask
          extended by hudson.model.PeriodicWork
              extended by com.base2services.jenkins.SqsHookCleaner
All Implemented Interfaces:
hudson.ExtensionPoint, Runnable

@Extension
public class SqsHookCleaner
extends hudson.model.PeriodicWork

Removes post-commit hooks from repositories that we no longer care. This runs periodically in a delayed fashion to avoid hitting GitHub too often.

Author:
Kohsuke Kawaguchi, aaronwalker

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
SqsHookCleaner()
           
 
Method Summary
protected  void doRun()
           
static SqsHookCleaner get()
           
 long getRecurrencePeriod()
           
 
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

SqsHookCleaner

public SqsHookCleaner()
Method Detail

getRecurrencePeriod

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

doRun

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

get

public static SqsHookCleaner get()


Copyright © 2004-2013. All Rights Reserved.