org.gcube.application.enm.service.concurrent
Class JobScheduler

java.lang.Object
  extended by org.gcube.application.enm.service.concurrent.JobScheduler

public class JobScheduler
extends Object

Schedules jobs to execute periodically.

Author:
Erik Torres

Field Summary
static long CLEAUNP_TIME_MILLIS
           
static long INITIAL_DELAY
           
static long JOB_EXEC_DELAY
           
protected  org.gcube.common.core.utils.logging.GCUBELog logger
           
static int MAX_JOBS_PER_RUN
           
 
Method Summary
static JobScheduler get()
          Get the singleton instance of the scheduler.
 void shutdownAndAwaitTermination()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.gcube.common.core.utils.logging.GCUBELog logger

INITIAL_DELAY

public static final long INITIAL_DELAY
See Also:
Constant Field Values

JOB_EXEC_DELAY

public static final long JOB_EXEC_DELAY
See Also:
Constant Field Values

MAX_JOBS_PER_RUN

public static final int MAX_JOBS_PER_RUN
See Also:
Constant Field Values

CLEAUNP_TIME_MILLIS

public static final long CLEAUNP_TIME_MILLIS
See Also:
Constant Field Values
Method Detail

get

public static JobScheduler get()
Get the singleton instance of the scheduler.

Returns:
The singleton instance.

start

public void start()

shutdownAndAwaitTermination

public final void shutdownAndAwaitTermination()


Copyright © 2012. All Rights Reserved.