|
Adempiere 3.4.0s | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.compiere.server.AdempiereServer
public abstract class AdempiereServer
Adempiere 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 AdempiereProcessor |
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 |
AdempiereServer(AdempiereProcessor model,
int initialNap)
Server Base Class |
| Method Summary | |
|---|---|
static AdempiereServer |
create(AdempiereProcessor model)
Create New Server Thead |
protected abstract void |
doWork()
Do the actual Work |
Properties |
getCtx()
Get Server Context |
Timestamp |
getDateLastRun()
Get the date Last run |
Timestamp |
getDateNextRun(boolean requery)
Get the date Next run |
String |
getDescription()
Get Description |
AdempiereProcessorLog[] |
getLogs()
Get Processor Logs |
AdempiereProcessor |
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 AdempiereProcessor 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 AdempiereServer(AdempiereProcessor model,
int initialNap)
model - modelinitialNap - delay time running in sec| Method Detail |
|---|
public static AdempiereServer create(AdempiereProcessor model)
model - model
public Properties 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 AdempiereProcessor getModel()
public boolean isSleeping()
public String toString()
toString in class Threadpublic int getSecondsAlive()
public Timestamp getStartTime()
public AdempiereProcessorLog[] getLogs()
|
Adempiere 3.4.0s | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||