Package org.compiere.server
Class Scheduler
- java.lang.Object
-
- org.compiere.server.AdempiereServer
-
- org.compiere.server.Scheduler
-
- All Implemented Interfaces:
Runnable
public class Scheduler extends AdempiereServer
Scheduler- Version:
- $Id: Scheduler.java,v 1.5 2006/07/30 00:53:33 jjanke Exp $ Contributors: Carlos Ruiz - globalqss - FR [3135351] - Enable Scheduler for buttons
- Author:
- Jorg Janke
-
-
Field Summary
Fields Modifier and Type Field Description protected int
AD_Scheduler_ID
protected StringBuffer
m_summary
Last Summaryprotected Trx
m_trx
Transactionprotected ProcessInfo
pi
-
Fields inherited from class org.compiere.server.AdempiereServer
log, m_sleepMS, m_start, p_client, p_model, p_runCount, p_startWork, p_system
-
-
Constructor Summary
Constructors Constructor Description Scheduler(MScheduler model)
Scheduler
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doWork()
Workprotected void
fillParameter(MPInstance pInstance)
Fill Parameterprotected static MScheduler
get(Properties ctx, int AD_Scheduler_ID)
Get MScheduler from cache (immutable)protected int
getAD_User_ID()
String
getServerInfo()
Get Server Infoprotected String
runProcess(MProcess process)
Run Process or Report-
Methods inherited from class org.compiere.server.AdempiereServer
doRun, doRunNow, getCtx, getDateLastRun, getDateNextRun, getDescription, getInitialNap, getLogs, getModel, getName, getSecondsAlive, getServerID, getSleepMS, getStartTime, getStatistics, isInterrupted, isOKtoRunOnIP, isSleeping, recalculateSleepMS, run, runNow, toString
-
-
-
-
Field Detail
-
m_summary
protected StringBuffer m_summary
Last Summary
-
m_trx
protected Trx m_trx
Transaction
-
AD_Scheduler_ID
protected int AD_Scheduler_ID
-
pi
protected ProcessInfo pi
-
-
Constructor Detail
-
Scheduler
public Scheduler(MScheduler model)
Scheduler- Parameters:
model
- model
-
-
Method Detail
-
doWork
protected void doWork()
Work- Specified by:
doWork
in classAdempiereServer
-
runProcess
protected String runProcess(MProcess process) throws Exception
Run Process or Report- Parameters:
process
- process- Returns:
- summary
- Throws:
Exception
-
getAD_User_ID
protected int getAD_User_ID()
-
fillParameter
protected void fillParameter(MPInstance pInstance)
Fill Parameter- Parameters:
pInstance
- process instance
-
getServerInfo
public String getServerInfo()
Get Server Info- Specified by:
getServerInfo
in classAdempiereServer
- Returns:
- info
-
get
protected static MScheduler get(Properties ctx, int AD_Scheduler_ID)
Get MScheduler from cache (immutable)- Parameters:
ctx
-AD_Scheduler_ID
-- Returns:
- MScheduler
-
-