Class UssMove


  • public class UssMove
    extends Object
    Provides Unix System Services (USS) move functionality

    z/OSMF REST API

    Version:
    2.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssMove

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

        public UssMove​(ZosConnection connection,
                       ZoweRequest request)
                throws Exception
        Alternative UssMove 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
        Throws:
        Exception - processing error
    • Method Detail

      • move

        public Response move​(String fromPath,
                             String targetPath)
                      throws Exception
        Move a UNIX file or directory with overwrite set as true
        Parameters:
        fromPath - the source path of the file or directory to move
        targetPath - the target path of where the file or directory will be moved too
        Returns:
        Response object
        Throws:
        Exception - processing error
      • move

        public Response move​(String fromPath,
                             String targetPath,
                             boolean overwrite)
                      throws Exception
        Move a UNIX file or directory with overwrite value specified
        Parameters:
        fromPath - the source path of the file or directory to move
        targetPath - the target path of where the file or directory will be moved too
        overwrite - true if you want to override existing data at target path or false to not override
        Returns:
        Response object
        Throws:
        Exception - processing error