Class UssCopy


  • public class UssCopy
    extends Object
    Provides Unix System Services (USS) copy functionality

    z/OSMF REST API

    Version:
    4.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssCopy

        public UssCopy​(ZosConnection connection)
        UssCopy Constructor
        Parameters:
        connection - for connection information, see ZosConnection object
    • Method Detail

      • copy

        public Response copy​(String fromPath,
                             String targetPath)
                      throws ZosmfRequestException
        Copy a Unix file or directory to another location
        Parameters:
        fromPath - the source path of the file or directory to copy
        targetPath - target path of where the file or directory will be copied too
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state
      • copyCommon

        public Response copyCommon​(String targetPath,
                                   CopyParams params)
                            throws ZosmfRequestException
        Copy a Unix file or directory to another location request driven by CopyParams object settings
        Parameters:
        targetPath - target path of where the file or directory will be copied too
        params - CopyParams parameters that specify copy action request
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state