| Modifier and Type | Field and Description |
|---|---|
protected static Integer |
activeThreads |
protected static EPerson |
harvestAdmin |
static int |
HARVESTER_INTERRUPT_INSERT_THREAD |
static int |
HARVESTER_INTERRUPT_KILL_THREAD |
static int |
HARVESTER_INTERRUPT_NONE |
static int |
HARVESTER_INTERRUPT_PAUSE |
static int |
HARVESTER_INTERRUPT_RESUME |
static int |
HARVESTER_INTERRUPT_STOP |
static int |
HARVESTER_STATUS_PAUSED |
static int |
HARVESTER_STATUS_RUNNING |
static int |
HARVESTER_STATUS_SLEEPING |
static int |
HARVESTER_STATUS_STOPPED |
protected static Stack<HarvestThread> |
harvestThreads |
protected static UUID |
interruptValue |
static Object |
lock |
protected static org.apache.log4j.Logger |
log |
protected Context |
mainContext |
protected static Integer |
maxActiveThreads |
protected static long |
maxHeartbeat |
protected static long |
minHeartbeat |
protected static int |
status |
| Constructor and Description |
|---|
HarvestScheduler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addThread(Context context,
HarvestedCollection harvestedCollection)
Adds a thread to the ready stack.
|
static int |
getInterrupt() |
static String |
getStatus() |
static boolean |
hasStatus(int statusToCheck) |
void |
run() |
protected void |
scheduleLoop() |
static void |
setInterrupt(int newInterrupt) |
static void |
setInterrupt(int newInterrupt,
UUID newInterruptValue) |
protected static org.apache.log4j.Logger log
protected static EPerson harvestAdmin
protected Context mainContext
public static final Object lock
protected static Stack<HarvestThread> harvestThreads
protected static Integer maxActiveThreads
protected static volatile Integer activeThreads
public static final int HARVESTER_STATUS_RUNNING
public static final int HARVESTER_STATUS_SLEEPING
public static final int HARVESTER_STATUS_PAUSED
public static final int HARVESTER_STATUS_STOPPED
public static final int HARVESTER_INTERRUPT_NONE
public static final int HARVESTER_INTERRUPT_PAUSE
public static final int HARVESTER_INTERRUPT_STOP
public static final int HARVESTER_INTERRUPT_RESUME
public static final int HARVESTER_INTERRUPT_INSERT_THREAD
public static final int HARVESTER_INTERRUPT_KILL_THREAD
protected static int status
protected static UUID interruptValue
protected static long minHeartbeat
protected static long maxHeartbeat
public HarvestScheduler()
throws SQLException,
AuthorizeException
SQLExceptionAuthorizeExceptionpublic static boolean hasStatus(int statusToCheck)
public static void setInterrupt(int newInterrupt)
public static void setInterrupt(int newInterrupt,
UUID newInterruptValue)
public static int getInterrupt()
public static String getStatus()
protected void scheduleLoop()
public void addThread(Context context, HarvestedCollection harvestedCollection) throws SQLException, IOException, AuthorizeException
Copyright © 2016 DuraSpace. All Rights Reserved.