|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.compiere.server.CompiereServer
public abstract class CompiereServer
Compiere Server Base
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected CLogger |
log
Logger |
protected MClient |
p_client
Client |
protected CompiereProcessor |
p_model
The Processor Model |
protected int |
p_runCount
Number of Work executions |
protected long |
p_startWork
Tine start of work |
protected static MSystem |
p_system
System |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
protected |
CompiereServer(CompiereProcessor model,
int initialNap)
Server Base Class |
| Method Summary | |
|---|---|
static CompiereServer |
create(CompiereProcessor model)
Create New Server Thead |
protected abstract void |
doWork()
Do the actual Work |
Ctx |
getCtx()
Get Server Context |
Timestamp |
getDateLastRun()
Get the date Last run |
Timestamp |
getDateNextRun(boolean requery)
Get the date Next run |
String |
getDescription()
Get Description |
CompiereProcessorLog[] |
getLogs()
Get Processor Logs |
CompiereProcessor |
getModel()
Get Model |
int |
getSecondsAlive()
Get Seconds Alive |
String |
getServerID()
Get Unique ID |
abstract String |
getServerInfo()
Get Server Info |
long |
getSleepMS()
|
Timestamp |
getStartTime()
Get Start Time |
String |
getStatistics()
Get Run Statistics |
boolean |
isSleeping()
Is Sleeping |
void |
run()
Run async |
void |
runNow()
Run Now |
boolean |
sleep()
Sleep for set time |
String |
toString()
String Representation |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected CompiereProcessor p_model
protected int p_runCount
protected long p_startWork
protected CLogger log
protected static MSystem p_system
protected MClient p_client
| Constructor Detail |
|---|
protected CompiereServer(CompiereProcessor model,
int initialNap)
model - modelinitialNap - delay time running in sec| Method Detail |
|---|
public static CompiereServer create(CompiereProcessor model)
model - model
public Ctx getCtx()
public long getSleepMS()
public boolean sleep()
public void runNow()
public void run()
run in interface Runnablerun in class Threadpublic String getStatistics()
protected abstract void doWork()
public abstract String getServerInfo()
public String getServerID()
public Timestamp getDateNextRun(boolean requery)
requery - requery database
public Timestamp getDateLastRun()
public String getDescription()
public CompiereProcessor getModel()
public boolean isSleeping()
public String toString()
toString in class Threadpublic int getSecondsAlive()
public Timestamp getStartTime()
public CompiereProcessorLog[] getLogs()
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||