Package dev.galasa.zosfile
Interface IZosDataset
public interface IZosDataset
Representation of a non-VSAM data set
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumeration of data type for store and retrieve of data set content:IZosDataset.DatasetDataType.TEXTIZosDataset.DatasetDataType.BINARYIZosDataset.DatasetDataType.RECORDstatic enumEnumeration of data set organization options:IZosDataset.DatasetOrganization.PARTITIONEDIZosDataset.DatasetOrganization.SEQUENTIALstatic enumstatic enumstatic enumEnumeration of space units for data set allocation:IZosDataset.SpaceUnit.TRACKSIZosDataset.SpaceUnit.CYLINDERS - 
Method Summary
Modifier and TypeMethodDescriptioncreate()Allocate the physical data set on the zOS image.booleandelete()Delete the data set on the zOS image.booleanexists()Returns true if the data set exists on the zOS imageReturn the attributes of the data set as aString
The format of the String is defined by the implementationintReturn block size of the data setGet the data set creation dateReturn the data class of the data setReturn the organization (IZosDataset.DatasetOrganization) of the data setGet theIZosDataset.DSTypefor the data setReturn the data type (IZosDataset.DatasetDataType) for store and retrieve of the data set contentintReturn directory blocks of the partitioned data setGet the data set expiration dateintGet the number of extents of the data setReturn the management class of the data setReturns the member name if supplied and is a partitioned data setgetName()Return the name of the data setintReturn primary allocation extents of the data setReturn the record format of the data setintReturn the record length of the data setGet the data set referenced dateintReturn secondary allocation extents of the data setReturn the allocation space unit of the data setReturn the storage class of the data setgetUnit()Return the unit name of the data setintgetUsed()Get the number of used extents of the data setReturn the Volume serial(s) of the data setbooleanisPDS()Returns true if the data set exists and is a partitioned data setvoidmemberCreate(@NotNull String memberName) Create an empty member in the partitioned data setvoidmemberDelete(@NotNull String memberName) Delete a member from the partitioned data setbooleanmemberExists(@NotNull String memberName) Return true if the named member exists in the partitioned data setList the members of the partitioned data setbyte[]memberRetrieveAsBinary(@NotNull String memberName) Retrieve content from the partitioned data set member in Binary modememberRetrieveAsText(@NotNull String memberName) Retrieve content from the partitioned data set member in Text modevoidmemberSaveToResultsArchive(@NotNull String memberName, String rasPath) Store the content of the partitioned data set member to the Results Archive StorevoidmemberStoreBinary(@NotNull String memberName, @javax.validation.constraints.NotNull byte[] content) Write content to the partitioned data set member in Binary modevoidmemberStoreText(@NotNull String memberName, @NotNull String content) Write content to the partitioned data set member in Text modebyte[]Retrieve content of the data set in Binary modeRetrieve content of the data set in Text modevoidRetrieve the attributes of an existing data set to make the values available in the getter methodsvoidsaveToResultsArchive(String rasPath) Store the content of the data set to the Results Archive StorevoidsetBlockSize(int blockSize) Set the block size for the data setvoidsetDataClass(String dataClass) Set the data class of the data setvoidsetDatasetOrganization(IZosDataset.DatasetOrganization organization) Set the organization (IZosDataset.DatasetOrganization) of the data setvoidsetDatasetType(IZosDataset.DSType dsType) Set theIZosDataset.DSTypefor the data setvoidsetDataType(IZosDataset.DatasetDataType dataType) Set the data type (IZosDataset.DatasetDataType) for store and retrieve of the data set contentvoidsetDirectoryBlocks(int directoryBlocks) Set the number of directory blocksvoidsetManagementClass(String managementClass) Set the management class of the data setvoidsetRecordFormat(IZosDataset.RecordFormat recordFormat) Set theIZosDataset.RecordFormatfor the data setvoidsetRecordlength(int recordlength) Set the record length for the data setvoidsetShouldArchive(boolean shouldArchive) Set flag to control if the content of the data set should be automatically stored to the test output at test end.voidsetShouldCleanup(boolean shouldCleanup) Set flag to control if the data set should be automatically deleted from zOS at test end.voidsetSpace(IZosDataset.SpaceUnit spaceUnit, int primaryExtents, int secondaryExtents) Set theIZosDataset.SpaceUnitfor data set, and specify how many primary and secondary extents to allocate.voidsetStorageClass(String storageClass) Set the storage class of the data setvoidSet the unit name of the data setvoidsetVolumes(String volumes) Set the Volume serial(s) of the data setbooleanReturn flag that controls if the content of the data set should be automatically stored to the test output at test endbooleanReturn flag that controls if the data set should be automatically deleted from zOS at test endvoidstoreBinary(@javax.validation.constraints.NotNull byte[] content) Write content to the data set in Binary modevoidWrite content to the data set in Text mode 
- 
Method Details
- 
create
Allocate the physical data set on the zOS image. Will be deleted at test method end- Returns:
 - Throws:
 ZosDatasetException
 - 
delete
Delete the data set on the zOS image.- Returns:
 - deleted
 - Throws:
 ZosDatasetException
 - 
exists
Returns true if the data set exists on the zOS image- Returns:
 - Throws:
 ZosDatasetException
 - 
storeText
Write content to the data set in Text mode- Parameters:
 content-- Throws:
 ZosDatasetException
 - 
storeBinary
void storeBinary(@NotNull @javax.validation.constraints.NotNull byte[] content) throws ZosDatasetException Write content to the data set in Binary mode- Parameters:
 content-- Throws:
 ZosDatasetException
 - 
retrieveAsText
Retrieve content of the data set in Text mode- Returns:
 - data set content
 - Throws:
 ZosDatasetException
 - 
retrieveAsBinary
Retrieve content of the data set in Binary mode- Returns:
 - data set content
 - Throws:
 ZosDatasetException
 - 
saveToResultsArchive
Store the content of the data set to the Results Archive Store- Parameters:
 rasPath- path in Results Archive Store- Throws:
 ZosDatasetException
 - 
isPDS
Returns true if the data set exists and is a partitioned data set- Returns:
 - Throws:
 ZosDatasetException
 - 
getMemberName
String getMemberName()Returns the member name if supplied and is a partitioned data set- Returns:
 - Throws:
 ZosDatasetException
 - 
memberCreate
Create an empty member in the partitioned data set- Parameters:
 memberName-- Throws:
 ZosDatasetException
 - 
memberDelete
Delete a member from the partitioned data set- Parameters:
 memberName-- Throws:
 ZosDatasetException
 - 
memberExists
Return true if the named member exists in the partitioned data set- Parameters:
 memberName-- Returns:
 - Throws:
 ZosDatasetException
 - 
memberStoreText
void memberStoreText(@NotNull @NotNull String memberName, @NotNull @NotNull String content) throws ZosDatasetException Write content to the partitioned data set member in Text mode- Parameters:
 memberName-content-- Throws:
 ZosDatasetException
 - 
memberStoreBinary
void memberStoreBinary(@NotNull @NotNull String memberName, @NotNull @javax.validation.constraints.NotNull byte[] content) throws ZosDatasetException Write content to the partitioned data set member in Binary mode- Parameters:
 memberName-content-- Throws:
 ZosDatasetException
 - 
memberRetrieveAsText
Retrieve content from the partitioned data set member in Text mode- Parameters:
 memberName-- Returns:
 - Throws:
 ZosDatasetException
 - 
memberRetrieveAsBinary
Retrieve content from the partitioned data set member in Binary mode- Parameters:
 memberName-- Returns:
 - Throws:
 ZosDatasetException
 - 
memberList
List the members of the partitioned data set- Returns:
 - Throws:
 ZosDatasetException
 - 
memberSaveToResultsArchive
void memberSaveToResultsArchive(@NotNull @NotNull String memberName, String rasPath) throws ZosDatasetException Store the content of the partitioned data set member to the Results Archive Store- Parameters:
 memberName-rasPath- path in Results Archive Store- Throws:
 ZosDatasetException
 - 
setDataType
Set the data type (IZosDataset.DatasetDataType) for store and retrieve of the data set content- Parameters:
 dataType-
 - 
setVolumes
Set the Volume serial(s) of the data set- Parameters:
 volumes-
 - 
setUnit
Set the unit name of the data set- Parameters:
 unit-
 - 
setDatasetOrganization
Set the organization (IZosDataset.DatasetOrganization) of the data set- Parameters:
 organization-
 - 
setSpace
Set theIZosDataset.SpaceUnitfor data set, and specify how many primary and secondary extents to allocate.- Parameters:
 spaceUnit-primaryExtents-secondaryExtents-
 - 
setDirectoryBlocks
void setDirectoryBlocks(int directoryBlocks) Set the number of directory blocks- Parameters:
 directoryBlocks-
 - 
setRecordFormat
Set theIZosDataset.RecordFormatfor the data set- Parameters:
 recordFormat-
 - 
setBlockSize
void setBlockSize(int blockSize) Set the block size for the data set- Parameters:
 blockSize-
 - 
setRecordlength
void setRecordlength(int recordlength) Set the record length for the data set- Parameters:
 recordlength-
 - 
setManagementClass
Set the management class of the data set- Parameters:
 managementClass-
 - 
setStorageClass
Set the storage class of the data set- Parameters:
 storageClass-
 - 
setDataClass
Set the data class of the data set- Parameters:
 dataClass-
 - 
setDatasetType
Set theIZosDataset.DSTypefor the data set- Parameters:
 dsType-
 - 
getName
String getName()Return the name of the data set- Returns:
 
 - 
getDataType
IZosDataset.DatasetDataType getDataType()Return the data type (IZosDataset.DatasetDataType) for store and retrieve of the data set content- Returns:
 
 - 
getVolumes
String getVolumes()Return the Volume serial(s) of the data set- Returns:
 
 - 
getUnit
String getUnit()Return the unit name of the data set- Returns:
 
 - 
getDatasetOrganization
IZosDataset.DatasetOrganization getDatasetOrganization()Return the organization (IZosDataset.DatasetOrganization) of the data set- Returns:
 
 - 
getSpaceUnit
IZosDataset.SpaceUnit getSpaceUnit()Return the allocation space unit of the data set- Returns:
 
 - 
getPrimaryExtents
int getPrimaryExtents()Return primary allocation extents of the data set- Returns:
 
 - 
getSecondaryExtents
int getSecondaryExtents()Return secondary allocation extents of the data set- Returns:
 
 - 
getDirectoryBlocks
int getDirectoryBlocks()Return directory blocks of the partitioned data set- Returns:
 
 - 
getRecordFormat
IZosDataset.RecordFormat getRecordFormat()Return the record format of the data set- Returns:
 
 - 
getBlockSize
int getBlockSize()Return block size of the data set- Returns:
 
 - 
getRecordlength
int getRecordlength()Return the record length of the data set- Returns:
 
 - 
getManagementClass
String getManagementClass()Return the management class of the data set- Returns:
 
 - 
getStorageClass
String getStorageClass()Return the storage class of the data set- Returns:
 
 - 
getDataClass
String getDataClass()Return the data class of the data set- Returns:
 
 - 
getDatasetType
IZosDataset.DSType getDatasetType()Get theIZosDataset.DSTypefor the data set- Returns:
 
 - 
getExtents
int getExtents()Get the number of extents of the data set- Returns:
 
 - 
getUsed
int getUsed()Get the number of used extents of the data set- Returns:
 
 - 
getCreateDate
String getCreateDate()Get the data set creation date- Returns:
 
 - 
getReferencedDate
String getReferencedDate()Get the data set referenced date- Returns:
 
 - 
getExpirationDate
String getExpirationDate()Get the data set expiration date- Returns:
 
 - 
retrieveAttibutes
Retrieve the attributes of an existing data set to make the values available in the getter methods- Throws:
 ZosDatasetException
 - 
getAttibutesAsString
Return the attributes of the data set as aString
The format of the String is defined by the implementation- Returns:
 - Throws:
 ZosDatasetException
 - 
setShouldArchive
void setShouldArchive(boolean shouldArchive) Set flag to control if the content of the data set should be automatically stored to the test output at test end. Defaults to false - 
shouldArchive
boolean shouldArchive()Return flag that controls if the content of the data set should be automatically stored to the test output at test end - 
setShouldCleanup
void setShouldCleanup(boolean shouldCleanup) Set flag to control if the data set should be automatically deleted from zOS at test end. Defaults to true - 
shouldCleanup
boolean shouldCleanup()Return flag that controls if the data set should be automatically deleted from zOS at test end 
 -