public interface BusyThread extends WorkflowThread
Modifier and Type | Method and Description |
---|---|
void |
freemem()
is called when an outOfMemoryCycle is performed
this method should try to free some memory, so that the job can be executed
|
long |
getBusyCycles() |
long |
getBusySleep()
gets the sleep time for pauses between two jobs if the job returns true (busy)
|
long |
getHighCPUCycles() |
long |
getIdleCycles() |
long |
getIdleSleep()
gets the sleep time for pauses between two jobs if the job returns false (idle)
|
long |
getOutOfMemoryCycles() |
long |
getSleepTime() |
void |
intermission(long pause)
the thread is forced to pause for a specific time
if the thread is busy meanwhile, the pause is ommitted
|
boolean |
job()
performes one job procedure; this loopes until terminate() is called
|
long |
setBusySleep(long milliseconds)
sets a sleep time for pauses between two jobs if the job returns true (busy)
|
long |
setIdleSleep(long milliseconds)
sets a sleep time for pauses between two jobs if the job returns false (idle)
|
double |
setLoadPreReqisite(double load)
sets maximimum load for the job execution
|
void |
setMemPreReqisite(long freeBytes)
sets minimum required amount of memory for the job execution
|
void |
setObeyIntermission(boolean obey)
defines if the thread should obey the intermission command
|
void |
setStartupSleep(long milliseconds)
sets a sleep time before execution of the job-loop
|
close, getBlockTime, getExecTime, getJobCount, getLongDescription, getMemoryUse, getMonitorURL, getShortDescription, isAlive, jobExceptionHandler, open, setDescription, shutdownInProgress, start, terminate
void setStartupSleep(long milliseconds)
milliseconds
- long setIdleSleep(long milliseconds)
milliseconds
- long getIdleSleep()
long setBusySleep(long milliseconds)
milliseconds
- long getBusySleep()
void setMemPreReqisite(long freeBytes)
freeBytes
- double setLoadPreReqisite(double load)
load
- void setObeyIntermission(boolean obey)
obey
- long getIdleCycles()
long getBusyCycles()
long getOutOfMemoryCycles()
long getHighCPUCycles()
long getSleepTime()
void intermission(long pause)
pause
- boolean job() throws java.lang.Exception
java.lang.Exception
void freemem()