public static class OAIHarvester.HarvestScheduler extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected static Integer |
activeThreads |
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 |
static Object |
lock |
| Constructor and Description |
|---|
OAIHarvester.HarvestScheduler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addThread(int collecionID)
Adds a thread to the ready stack.
|
static String |
getStatus() |
static boolean |
hasStatus(int statusToCheck) |
void |
run() |
static void |
setInterrupt(int newInterrupt) |
static void |
setInterrupt(int newInterrupt,
int newInterruptValue) |
public static final Object lock
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
public OAIHarvester.HarvestScheduler()
throws SQLException,
AuthorizeException
SQLExceptionAuthorizeExceptionpublic static boolean hasStatus(int statusToCheck)
public static void setInterrupt(int newInterrupt)
public static void setInterrupt(int newInterrupt,
int newInterruptValue)
public static String getStatus()
public static void addThread(int collecionID)
throws SQLException,
IOException,
AuthorizeException
Copyright © 2013 DuraSpace. All Rights Reserved.