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 intAD_Scheduler_IDprotected StringBufferm_summaryLast Summaryprotected Trxm_trxTransactionprotected ProcessInfopi-
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 voiddoWork()Workprotected voidfillParameter(MPInstance pInstance)Fill Parameterprotected static MSchedulerget(Properties ctx, int AD_Scheduler_ID)Get MScheduler from cache (immutable)protected intgetAD_User_ID()StringgetServerInfo()Get Server Infoprotected StringrunProcess(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:
doWorkin 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:
getServerInfoin 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
-
-