Package org.compiere.server
Class RequestProcessor
- java.lang.Object
-
- org.compiere.server.AdempiereServer
-
- org.compiere.server.RequestProcessor
-
- All Implemented Interfaces:
Runnable
public class RequestProcessor extends AdempiereServer
Request Processor- Version:
- $Id: RequestProcessor.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $
- Author:
- Jorg Janke
-
-
Field Summary
Fields Modifier and Type Field Description protected MClientm_clientClient onfoprotected MRequestProcessorm_modelThe Concrete Modelprotected StringBufferm_summaryLast Summary-
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 RequestProcessor(MRequestProcessor model)RequestProcessor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoWork()Do the actual Workprotected booleanescalate(MRequest request)Escalateprotected voidfindSalesRep()Allocate Sales Repprotected intfindSalesRep(MRequest request)Find SalesRep/User based on Request Type and Question.StringgetServerInfo()Get Server Infoprotected voidprocessECR()Create ECRprotected voidprocessEMail()Create Reauest / Updates from EMailprotected voidprocessRequests()Process requests.protected voidprocessStatus()Process Request Statusprotected booleansendEmail(MRequest request, String AD_Message)Send Alert EMail-
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_model
protected MRequestProcessor m_model
The Concrete Model
-
m_summary
protected StringBuffer m_summary
Last Summary
-
m_client
protected MClient m_client
Client onfo
-
-
Constructor Detail
-
RequestProcessor
public RequestProcessor(MRequestProcessor model)
RequestProcessor- Parameters:
model- model
-
-
Method Detail
-
doWork
protected void doWork()
Do the actual Work- Specified by:
doWorkin classAdempiereServer
-
processRequests
protected void processRequests()
Process requests. Scheduled - are they due?
-
sendEmail
protected boolean sendEmail(MRequest request, String AD_Message)
Send Alert EMail- Parameters:
request- requestAD_Message- message- Returns:
- true if sent
-
escalate
protected boolean escalate(MRequest request)
Escalate- Parameters:
request- request- Returns:
- true if saved
-
processStatus
protected void processStatus()
Process Request Status
-
processECR
protected void processECR()
Create ECR
-
processEMail
protected void processEMail()
Create Reauest / Updates from EMail
-
findSalesRep
protected void findSalesRep()
Allocate Sales Rep
-
findSalesRep
protected int findSalesRep(MRequest request)
Find SalesRep/User based on Request Type and Question.- Parameters:
request- request- Returns:
- SalesRep_ID user
-
getServerInfo
public String getServerInfo()
Get Server Info- Specified by:
getServerInfoin classAdempiereServer- Returns:
- info
-
-