Class UssCreate

    • Constructor Detail

      • UssCreate

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

        public UssCreate​(ZosConnection connection,
                         ZosmfRequest request)
        Alternative UssCreate 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

      • create

        public Response create​(String targetPath,
                               CreateParams params)
                        throws ZosmfRequestException
        Perform UNIX create file or directory name request driven by CreateParams object settings.
        Parameters:
        targetPath - the name of the file or directory you are going to create
        params - create response parameters, see CreateParams object
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state
      • createZfs

        public Response createZfs​(String fileSystemName)
                           throws ZosmfRequestException
        Create a ZFS using default values of 755 permissions, 10 primary and 2 secondary cylinders allocated, and a timeout of 20 seconds.
        Parameters:
        fileSystemName - ZFS file system name
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state
      • createZfsCommon

        public Response createZfsCommon​(String fileSystemName,
                                        CreateZfsParams params)
                                 throws ZosmfRequestException
        Create a ZFS request driven by the CreateZfsParams object settings.
        Parameters:
        fileSystemName - ZFS file system name
        params - create ZFS response parameters, see CreateZfsParams object
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state