Class MRequestProcessor

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, AdempiereProcessor, AdempiereProcessor2, I_Persistent, I_R_RequestProcessor, Evaluatee

public class MRequestProcessor extends X_R_RequestProcessor implements AdempiereProcessor, AdempiereProcessor2
Request Processor Model
Version:
$Id: MRequestProcessor.java,v 1.2 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MRequestProcessor

      public MRequestProcessor(Properties ctx, String R_RequestProcessor_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      R_RequestProcessor_UU - UUID key
      trxName - Transaction
    • MRequestProcessor

      public MRequestProcessor(Properties ctx, int R_RequestProcessor_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      R_RequestProcessor_ID - id
    • MRequestProcessor

      public MRequestProcessor(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
    • MRequestProcessor

      public MRequestProcessor(MClient parent, int Supervisor_ID)
      Parent Constructor
      Parameters:
      parent - parent
      Supervisor_ID - Supervisor
  • Method Details

    • getActive

      public static MRequestProcessor[] getActive(Properties ctx)
      Get Active Request Processors
      Parameters:
      ctx - context
      Returns:
      array of MRequestProcessor
    • getRoutes

      public MRequestProcessorRoute[] getRoutes(boolean reload)
      Get Routes
      Parameters:
      reload - true to reload from DB
      Returns:
      array of routes
    • getLogs

      public AdempiereProcessorLog[] getLogs()
      Get Logs
      Specified by:
      getLogs in interface AdempiereProcessor
      Returns:
      Array of Logs
    • deleteLog

      public int deleteLog()
      Delete old Request Log
      Returns:
      number of records
    • getDateNextRun

      public Timestamp getDateNextRun(boolean requery)
      Get next run date
      Specified by:
      getDateNextRun in interface AdempiereProcessor
      Parameters:
      requery - true to re-query database
      Returns:
      next run date
    • getServerID

      public String getServerID()
      Get Unique Server ID
      Specified by:
      getServerID in interface AdempiereProcessor
      Returns:
      Unique Server ID
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved
    • getFrequencyType

      public String getFrequencyType()
      Description copied from interface: AdempiereProcessor
      Get the frequency type
      Specified by:
      getFrequencyType in interface AdempiereProcessor
      Returns:
      frequency type
    • getFrequency

      public int getFrequency()
      Description copied from interface: AdempiereProcessor
      Get the frequency
      Specified by:
      getFrequency in interface AdempiereProcessor
      Returns:
      frequency
    • isIgnoreProcessingTime

      public boolean isIgnoreProcessingTime()
      Specified by:
      isIgnoreProcessingTime in interface AdempiereProcessor2
      Returns:
      True if previous DateNextRun should be use as base to calculate the new DateNextRun value. False to follow the legacy behaviour where current server time is use as the base to calculate the new DateNextRun value.
    • getScheduleType

      public String getScheduleType()
      Description copied from interface: AdempiereProcessor
      Get the schedule type
      Specified by:
      getScheduleType in interface AdempiereProcessor
      Returns:
      schedule type
    • getCronPattern

      public String getCronPattern()
      Description copied from interface: AdempiereProcessor
      Get the cron pattern
      Specified by:
      getCronPattern in interface AdempiereProcessor
      Returns:
      cron pattern