Package org.compiere.model
Interface AdempiereProcessor
- All Known Implementing Classes:
MAcctProcessor
,MAlertProcessor
,MIMPProcessor
,MLdapProcessor
,MRequestProcessor
,MScheduler
,MWorkflowProcessor
public interface AdempiereProcessor
Background Processor Interface
- Version:
- $Id: AdempiereProcessor.java,v 1.2 2006/07/30 00:51:03 jjanke Exp $
- Author:
- Jorg Janke
-
Method Summary
Modifier and TypeMethodDescriptionint
Get ClientGet the cron patterngetCtx()
Get ContextGet Last run dategetDateNextRun
(boolean requery) Get next run dateGet Descriptionint
Get the frequencyGet the frequency typegetLogs()
Get Processor LogsgetName()
Get NameGet the schedule typeGet Unique IDboolean
save()
Savevoid
saveEx()
Save throwing exceptionvoid
setDateLastRun
(Timestamp dateLastRun) Set Last Run Datevoid
setDateNextRun
(Timestamp dateNextWork) Set Next Run Date
-
Method Details
-
getAD_Client_ID
int getAD_Client_ID()Get Client- Returns:
- AD_Client_ID
-
getName
String getName()Get Name- Returns:
- Name
-
getDescription
String getDescription()Get Description- Returns:
- Description
-
getCtx
Properties getCtx()Get Context- Returns:
- context
-
getFrequencyType
String getFrequencyType()Get the frequency type- Returns:
- frequency type
-
getScheduleType
String getScheduleType()Get the schedule type- Returns:
- schedule type
-
getCronPattern
String getCronPattern()Get the cron pattern- Returns:
- cron pattern
-
getFrequency
int getFrequency()Get the frequency- Returns:
- frequency
-
getServerID
String getServerID()Get Unique ID- Returns:
- Unique ID
-
getDateNextRun
Get next run date- Parameters:
requery
- requery database- Returns:
- date next run
-
setDateNextRun
Set Next Run Date- Parameters:
dateNextWork
- next work
-
getDateLastRun
Timestamp getDateLastRun()Get Last run date- Returns:
- date lext run
-
setDateLastRun
Set Last Run Date- Parameters:
dateLastRun
- last run
-
save
boolean save()Save- Returns:
- true if saved
-
saveEx
Save throwing exception- Throws:
AdempiereException
- See Also:
-
getLogs
AdempiereProcessorLog[] getLogs()Get Processor Logs- Returns:
- logs
-