Class BatchModuleMaster


  • public class BatchModuleMaster
    extends BatchModule
    Module master that dispatch to subcribed modules
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void batchDidStart()
      Called by Batch right after batch start
      NB : Same context and activity that in willStart but with the new state State.READY set
      void batchDidStop()
      Called by Batch right after batch stop
      NB : No context or activity are available
      void batchIsFinishing()
      Called by Batch before switching to State.FINISHING
      NB : Context and activity are still available from the runtimeManager
      void batchWillStart()
      Called by Batch before batch start
      NB : Context & activity are already available from the runtimeManager
      void batchWillStop()
      Called by Batch before switching to State.OFF
      NB : Context is still available from runtimeManager (not activity)
      java.lang.String getId()
      ID of the module
      int getState()
      Should return the state of the module (usually 0 for deactivated, 1 for activated)
      static BatchModuleMaster provide()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from class: BatchModule
        ID of the module
        Specified by:
        getId in class BatchModule
        Returns:
      • getState

        public int getState()
        Description copied from class: BatchModule
        Should return the state of the module (usually 0 for deactivated, 1 for activated)
        Specified by:
        getState in class BatchModule
        Returns:
      • batchWillStart

        public void batchWillStart()
        Description copied from class: BatchModule
        Called by Batch before batch start
        NB : Context & activity are already available from the runtimeManager
        Overrides:
        batchWillStart in class BatchModule
      • batchDidStart

        public void batchDidStart()
        Description copied from class: BatchModule
        Called by Batch right after batch start
        NB : Same context and activity that in willStart but with the new state State.READY set
        Overrides:
        batchDidStart in class BatchModule
      • batchIsFinishing

        public void batchIsFinishing()
        Description copied from class: BatchModule
        Called by Batch before switching to State.FINISHING
        NB : Context and activity are still available from the runtimeManager
        Overrides:
        batchIsFinishing in class BatchModule
      • batchWillStop

        public void batchWillStop()
        Description copied from class: BatchModule
        Called by Batch before switching to State.OFF
        NB : Context is still available from runtimeManager (not activity)
        Overrides:
        batchWillStop in class BatchModule
      • batchDidStop

        public void batchDidStop()
        Description copied from class: BatchModule
        Called by Batch right after batch stop
        NB : No context or activity are available
        Overrides:
        batchDidStop in class BatchModule