Package dev.galasa.zosfile
Interface IZosFileHandler
public interface IZosFileHandler
Tester facing interface for zOS file management.
Provides 3 types of files:
- IUNIXFile
- IDataset
- IVSAMDataset
newDataset(String, IZosImage)
), then to call methods on that
object to configure it, and then to call methods on this manager to
manipulate it.
-
Method Summary
Modifier and TypeMethodDescriptionlistDatasets
(String prefix, IZosImage image) Return aList
of data set name starting with the supplied prefixnewDataset
(String dsname, IZosImage image) Instantiate a newIZosDataset
, which can represent either an existing dataset, or one to be created.newUNIXFile
(String fullFilePath, IZosImage image) Instantiate a newIZosUNIXFile
, which can represent either an existing UNIX file, or directory, or one to be created.newVSAMDataset
(String dsname, IZosImage image) Instantiate a newIZosVSAMDataset
object with the given name.
-
Method Details
-
newDataset
Instantiate a newIZosDataset
, which can represent either an existing dataset, or one to be created. Member name will be ignored- Parameters:
dsname
-image
-- Returns:
- Throws:
ZosDatasetException
-
newUNIXFile
Instantiate a newIZosUNIXFile
, which can represent either an existing UNIX file, or directory, or one to be created.
N.B. If a directory is to be represented, fullFilePath must end with a "/"- Parameters:
fullFilePath
-- Returns:
- Throws:
ZosUNIXFileException
-
newVSAMDataset
Instantiate a newIZosVSAMDataset
object with the given name. The object returned is a 'blank-slate' and will require configuring before it can be defined or stored.- Parameters:
dsname
-- Returns:
- Throws:
ZosVSAMDatasetException
-
listDatasets
Return aList
of data set name starting with the supplied prefix- Parameters:
prefix
-image
-- Returns:
- Throws:
ZosDatasetException
-