Class BaseActiveModule

    • Field Detail

      • running

        private boolean running
    • Constructor Detail

      • BaseActiveModule

        public BaseActiveModule()
    • Method Detail

      • healthcheck

        public abstract boolean healthcheck​(java.util.List<java.lang.String> failures)
        Description copied from interface: ActiveModule
        When invoked, the module must run a self check to verify it is functioning correctly. Any failures must be reported in the failures list passed in to the method by the callee
        Specified by:
        healthcheck in interface ActiveModule
        Parameters:
        failures - - a list of failures if any occur
        Returns:
        - true if module has no problems otherwise false ith failure messages in passed in List
      • canHandle

        public boolean canHandle​(java.lang.String action,
                                 Message msg,
                                 java.util.Map<java.lang.Object,​java.lang.Object> options)
        Specified by:
        canHandle in interface ProcessorModule
      • forceStop

        public void forceStop​(java.lang.Exception cause)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setRunning

        private void setRunning​(boolean running)