Class AecuServiceMBeanImpl

    • Method Detail

      • getFiles

        public List<String> getFiles​(String path)
                              throws de.valtech.aecu.api.service.AecuException
        Description copied from interface: AecuServiceMBean
        Returns a list of files that can be executed in the given path.
        Specified by:
        getFiles in interface AecuServiceMBean
        Parameters:
        path - file or folder
        Returns:
        list of files that are executable
        Throws:
        de.valtech.aecu.api.service.AecuException - error finding files (e.g. invalid path)
      • execute

        public String execute​(String path)
                       throws de.valtech.aecu.api.service.AecuException
        Description copied from interface: AecuServiceMBean
        Executes the script(s) at the given position.
        Specified by:
        execute in interface AecuServiceMBean
        Parameters:
        path - path of script/folder
        Returns:
        execution result
        Throws:
        de.valtech.aecu.api.service.AecuException - error during execution
      • executeWithHistory

        public String executeWithHistory​(String path)
                                  throws de.valtech.aecu.api.service.AecuException
        Description copied from interface: AecuServiceMBean
        Executes the script(s) at the given position and taking install hook history into account.
        Specified by:
        executeWithHistory in interface AecuServiceMBean
        Parameters:
        path - path of script/folder
        Returns:
        execution result
        Throws:
        de.valtech.aecu.api.service.AecuException - error during execution
      • getHistory

        public String getHistory​(int start,
                                 int count)
                          throws de.valtech.aecu.api.service.AecuException
        Description copied from interface: AecuServiceMBean
        Returns history entries.
        Specified by:
        getHistory in interface AecuServiceMBean
        Parameters:
        start - start index (0 is last run)
        count - number of entries to return
        Returns:
        history entries
        Throws:
        de.valtech.aecu.api.service.AecuException - error reading history
      • execute

        public String execute​(String path,
                              String data)
                       throws de.valtech.aecu.api.service.AecuException
        Description copied from interface: AecuServiceMBean
        Returns history entries.
        Specified by:
        execute in interface AecuServiceMBean
        Parameters:
        path - path of script/folder
        data - json data used in the script context
        Returns:
        history entries
        Throws:
        de.valtech.aecu.api.service.AecuException - error reading history