Class UssCopy


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

    z/OSMF REST API

    Version:
    3.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssCopy

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

        public UssCopy​(ZosConnection connection,
                       ZosmfRequest request)
        Alternative UssCopy constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.
        Parameters:
        connection - connection information, see ZosConnection object
        request - any compatible ZoweRequest Interface 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 specifies copy action request
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state