Class LocalActionInvoker

  • All Implemented Interfaces:
    org.pentaho.platform.api.action.IActionInvoker

    public class LocalActionInvoker
    extends org.pentaho.platform.scheduler2.action.DefaultActionInvoker
    A more specific implementation of DefaultActionInvoker for use within a worker node, that massages the param Map keys such that they are generic, and not scheduler specific.
    • Constructor Detail

      • LocalActionInvoker

        public LocalActionInvoker()
    • Method Detail

      • getStreamProvider

        protected org.pentaho.platform.api.scheduler2.IBackgroundExecutionStreamProvider getStreamProvider​(Map<String,​Serializable> params)
        Gets the stream provider from the INVOKER_STREAMPROVIDER key within the params Map or builds it from the input file and output dir Map values. Returns null if information needed to build the stream provider is not present in the map, which is perfectly ok for some IAction types.
        Overrides:
        getStreamProvider in class org.pentaho.platform.scheduler2.action.DefaultActionInvoker
        Parameters:
        params - the Map or parameters needed to invoke the IAction
        Returns:
        a IBackgroundExecutionStreamProvider represented in the params Map
      • invokeAction

        public org.pentaho.platform.api.action.IActionInvokeStatus invokeAction​(org.pentaho.platform.api.action.IAction actionBean,
                                                                                String actionUser,
                                                                                Map<String,​Serializable> params)
                                                                         throws Exception
        Specified by:
        invokeAction in interface org.pentaho.platform.api.action.IActionInvoker
        Overrides:
        invokeAction in class org.pentaho.platform.scheduler2.action.DefaultActionInvoker
        Throws:
        Exception