Class ScriptPluginFileCopier

    • Method Detail

      • copyFileStream

        public java.lang.String copyFileStream​(ExecutionContext executionContext,
                                               java.io.InputStream inputStream,
                                               INodeEntry node,
                                               java.lang.String destination)
                                        throws FileCopierException
        Copy inputstream
        Specified by:
        copyFileStream in interface FileCopier
        Parameters:
        executionContext - context
        inputStream - the input stream
        node - node
        destination - the full path destination for the file
        Returns:
        File path of the file after copying to the node
        Throws:
        FileCopierException - if an error occurs
      • copyFile

        public java.lang.String copyFile​(ExecutionContext executionContext,
                                         java.io.File file,
                                         INodeEntry node,
                                         java.lang.String destination)
                                  throws FileCopierException
        Copy existing file
        Specified by:
        copyFile in interface FileCopier
        Parameters:
        executionContext - context
        file - local file tocopy
        node - node
        destination - the full path destination for the file
        Returns:
        File path of the file after copying to the node
        Throws:
        FileCopierException - if an error occurs
      • copyScriptContent

        public java.lang.String copyScriptContent​(ExecutionContext executionContext,
                                                  java.lang.String s,
                                                  INodeEntry node,
                                                  java.lang.String destination)
                                           throws FileCopierException
        Copy string content
        Specified by:
        copyScriptContent in interface FileCopier
        Parameters:
        executionContext - context
        s - file content string
        node - node
        destination - the full path destination for the file
        Returns:
        File path of the file after copying to the node
        Throws:
        FileCopierException - if an error occurs