Class UssCreate
- java.lang.Object
-
- zowe.client.sdk.zosfiles.uss.methods.UssCreate
-
public class UssCreate extends Object
Provides Unix System Services (USS) create object functionality- Version:
- 4.0
- Author:
- James Kostrewski, Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description UssCreate(ZosConnection connection)UssCreate ConstructorUssCreate(ZosConnection connection, ZosmfRequest request)Alternative UssCreate constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responsecreate(String targetPath, CreateParams params)Perform UNIX create a file or directory name request driven by CreateParams object settings.ResponsecreateZfs(String fileSystemName)Create a ZFS using default values of 755 permissions, 10 primary and 2 secondary cylinders allocated, and a timeout of 20 seconds.ResponsecreateZfsCommon(String fileSystemName, CreateZfsParams params)Create a ZFS request driven by the CreateZfsParams object settings.
-
-
-
Constructor Detail
-
UssCreate
public UssCreate(ZosConnection connection)
UssCreate Constructor- Parameters:
connection- for 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- for connection information, see ZosConnection objectrequest- any compatible ZoweRequest Interface object
-
-
Method Detail
-
create
public Response create(String targetPath, CreateParams params) throws ZosmfRequestException
Perform UNIX create a file or directory name request driven by CreateParams object settings.- Parameters:
targetPath- the name of the file or directory you are going to createparams- to 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 nameparams- create ZFS response parameters, see CreateZfsParams object- Returns:
- Response object
- Throws:
ZosmfRequestException- request error state
-
-