Class LocalFileCopier

    • Field Detail

      • SERVICE_PROVIDER_TYPE

        public static final java.lang.String SERVICE_PROVIDER_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • LocalFileCopier

        public LocalFileCopier​(Framework framework)
    • Method Detail

      • setDisableLocalExecutor

        public void setDisableLocalExecutor​(boolean disableLocalExecutor)
      • copyFileStream

        public java.lang.String copyFileStream​(ExecutionContext context,
                                               java.io.InputStream input,
                                               INodeEntry node,
                                               java.lang.String destination)
                                        throws FileCopierException
        Description copied from interface: FileCopier
        Copy the contents of an input stream to the node
        Specified by:
        copyFileStream in interface FileCopier
        Parameters:
        context - context
        input - 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 context,
                                         java.io.File file,
                                         INodeEntry node,
                                         java.lang.String destination)
                                  throws FileCopierException
        Description copied from interface: FileCopier
        Copy the contents of an input stream to the node
        Specified by:
        copyFile in interface FileCopier
        Parameters:
        context - 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 context,
                                                  java.lang.String script,
                                                  INodeEntry node,
                                                  java.lang.String destination)
                                           throws FileCopierException
        Description copied from interface: FileCopier
        Copy the contents of an input stream to the node
        Specified by:
        copyScriptContent in interface FileCopier
        Parameters:
        context - context
        script - 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