org.oddjob.scheduling
Class OddjobTimerService

java.lang.Object
  extended by org.oddjob.scheduling.OddjobTimerService
All Implemented Interfaces:
OddjobExecutors

public class OddjobTimerService
extends Object
implements OddjobExecutors

A TimerService that doesn't allow it Executor to be shut down. Not used at the moment.

Author:
Rob Gordon

Constructor Summary
OddjobTimerService()
           
 
Method Summary
 String getName()
          Get the name.
 ExecutorService getPoolExecutor()
          Provide a ExecutorService.
 int getPoolSize()
           
 ScheduledExecutorService getScheduledExecutor()
          Provide a ScheduledExecutorService.
 Date getTimeNow()
           
 void setName(String name)
          Set the name
 void setPoolSize(int poolSize)
           
 void start()
          Start the shcheduler.
 void stop()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OddjobTimerService

public OddjobTimerService()
Method Detail

getName

public String getName()
Get the name.

Returns:
The name.

setName

public void setName(String name)
Set the name

Parameters:
name - The name.

getPoolExecutor

public ExecutorService getPoolExecutor()
Description copied from interface: OddjobExecutors
Provide a ExecutorService. Implementations are free to use OddjobExecutors.getScheduledExecutor() for this, or provide something different.

Specified by:
getPoolExecutor in interface OddjobExecutors
Returns:
An ExecutorService. Never null.

getScheduledExecutor

public ScheduledExecutorService getScheduledExecutor()
Description copied from interface: OddjobExecutors
Provide a ScheduledExecutorService.

Specified by:
getScheduledExecutor in interface OddjobExecutors
Returns:
A ScheduledExecutorService. Never null.

start

public void start()
Start the shcheduler.

Throws:
SchedulerException

stop

public void stop()

getTimeNow

public Date getTimeNow()

getPoolSize

public int getPoolSize()

setPoolSize

public void setPoolSize(int poolSize)

toString

public String toString()
Overrides:
toString in class Object