org.glite.security.voms.service
Class VOMSTimer

java.lang.Object
  extended byjava.util.Timer
      extended byorg.glite.security.voms.service.VOMSTimer

public class VOMSTimer
extends java.util.Timer

General timer for VOMS: a decorated singleton for Timer that extends it with an interface for waiting for the currently running timer (if any) to finish execution. The timer thread is used by CAUpdater to schedule updates on the CA table and for various other periodic administrative activities.

Author:
Akos Frohner , Karoly Lorentey

Method Summary
 void cancel()
           
 void cancelAndWait()
           
static VOMSTimer getInstance(java.lang.String name)
          Factory method.
 boolean isCancelled()
          Returns true if the timer has been cancelled.
 boolean isRunning()
          Return true if the task is currently running.
static java.util.Iterator iterator()
          Return an iterator on all VOMSTimers.
 void schedule(java.util.TimerTask task, java.util.Date time)
           
 void schedule(java.util.TimerTask task, java.util.Date firstTime, long period)
           
 void schedule(java.util.TimerTask task, long delay)
           
 void schedule(java.util.TimerTask task, long delay, long period)
           
 void scheduleAtFixedRate(java.util.TimerTask task, java.util.Date firstTime, long period)
           
 void scheduleAtFixedRate(java.util.TimerTask task, long delay, long period)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static VOMSTimer getInstance(java.lang.String name)
Factory method.


iterator

public static java.util.Iterator iterator()
Return an iterator on all VOMSTimers.


isRunning

public boolean isRunning()
Return true if the task is currently running.


isCancelled

public boolean isCancelled()
Returns true if the timer has been cancelled. This should be periodically checked in timer tasks to allow for a prompt service shutdown.


cancel

public void cancel()

cancelAndWait

public void cancelAndWait()

schedule

public void schedule(java.util.TimerTask task,
                     java.util.Date time)

schedule

public void schedule(java.util.TimerTask task,
                     java.util.Date firstTime,
                     long period)

schedule

public void schedule(java.util.TimerTask task,
                     long delay)

schedule

public void schedule(java.util.TimerTask task,
                     long delay,
                     long period)

scheduleAtFixedRate

public void scheduleAtFixedRate(java.util.TimerTask task,
                                java.util.Date firstTime,
                                long period)

scheduleAtFixedRate

public void scheduleAtFixedRate(java.util.TimerTask task,
                                long delay,
                                long period)