Package dev.galasa.zos.spi
Interface IZosManagerSpi
- All Superinterfaces:
IZosManager
-
Method Summary
Modifier and TypeMethodDescriptionbuildUniquePathName(Path artifactPath, String name) Build a unique results archive artifact namevoidcreateArtifactDirectory(Path artifactPath) Create an empty dirictory in the results archive on behalf of another managergetCredentials(String credentialsId, String imageId) Returns the credentials on the specified image id@NotNull IZosImageReturns a zOS Image for the specified image ID@NotNull IZosImagegetImageForTag(@NotNull String tag) Returns a zOS Image for the specified tag@NotNull StringgetRunDatasetHLQ(@NotNull IZosImage image) Returns the data set HLQ(s) for temporary data sets for the specified image@NotNull StringgetRunUNIXPathPrefix(@NotNull IZosImage image) Returns the zOS UNIX path prefix for temporary file for the specified imageReturns the provisioned z/OS ports which are tagged with a string value@NotNull IZosImagegetUnmanagedImage(String imageId) Returns a zOS Image for the specified image that may not have been provisioned so farbooleanProvides other managers to the zOS Batchzosbatch.batchjob.[imageid].restrict.to.imagepropertyintgetZosBatchPropertyJobWaitTimeout(String imageId) Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].timeoutpropertybooleanProvides other managers to the zOS Batchzosbatch.batchjob.[imageid].truncate.jcl.recordspropertybooleangetZosBatchPropertyUseSysaff(String imageId) Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].use.sysaffpropertybooleanProvides other managers to the zOS Consolezosconsole.console.[imageid].restrict.to.imagepropertyintProvides other managers to the zOS Filezosfile.unix.[imageid].directory.list.max.itemspropertybooleanProvides other managers to the zOS Filezosfile.batchjob.[imageid].restrict.to.imagepropertyProvides other managers to the zOS Filezosfile.[imageid].unix.file.permissionpropertynewZosBatchJobname(IZosImage image) Provides other managers aIZosBatchJobnamewith a prefix defined by the zOS Batchzosbatch.jobname.[imageid].prefixpropertynewZosBatchJobname(String name) Provides other managers aIZosBatchJobnamewith a the supplied namenewZosBatchJobOutput(IZosBatchJob batchJob, String name, String jobid) Create a new batch job output objectnewZosBatchJobOutputSpoolFile(IZosBatchJob batchJob, String jobname, String jobid, String stepname, String procstep, String ddname, String id, String records) Create a new zOS Batch job spool file object@NotNull IZosImageprovisionImageForTag(@NotNull String tag) Returns a zOS Image for the specified tag, if necessary provisions itvoidstoreArtifact(Path artifactPath, String content, ResultArchiveStoreContentType type) Store an artifact in the results archive on behalf of another manager
-
Method Details
-
provisionImageForTag
@NotNull @NotNull IZosImage provisionImageForTag(@NotNull @NotNull String tag) throws ZosManagerException Returns a zOS Image for the specified tag, if necessary provisions it- Parameters:
tag- the tag of the image- Returns:
- and image, never null
- Throws:
ZosManagerException- if the tag is missing
-
getImageForTag
Returns a zOS Image for the specified tag- Parameters:
tag- the tag of the image- Returns:
- and image, never null
- Throws:
ZosManagerException- if the tag is missing
-
getImage
Returns a zOS Image for the specified image ID- Parameters:
imageId- the ID of the image- Returns:
- the image, never null
- Throws:
ZosManagerException
-
getUnmanagedImage
Returns a zOS Image for the specified image that may not have been provisioned so far- Parameters:
imageId- the ID of the image- Returns:
- the image, never null
- Throws:
ZosManagerException- if there is no image defined
-
getRunDatasetHLQ
@NotNull @NotNull String getRunDatasetHLQ(@NotNull @NotNull IZosImage image) throws ZosManagerException Returns the data set HLQ(s) for temporary data sets for the specified image- Parameters:
image-- Returns:
- the image, never null
- Throws:
ZosManagerException
-
getRunUNIXPathPrefix
@NotNull @NotNull String getRunUNIXPathPrefix(@NotNull @NotNull IZosImage image) throws ZosManagerException Returns the zOS UNIX path prefix for temporary file for the specified image- Parameters:
image-- Returns:
- the image, never null
- Throws:
ZosManagerException
-
getZosBatchPropertyBatchRestrictToImage
Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].restrict.to.imageproperty- Parameters:
imageId-- Returns:
- Throws:
ZosBatchManagerException
-
getZosBatchPropertyUseSysaff
Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].use.sysaffproperty- Parameters:
imageId-- Returns:
- Throws:
ZosBatchManagerException
-
getZosBatchPropertyJobWaitTimeout
Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].timeoutproperty- Parameters:
imageId-- Returns:
- Throws:
ZosBatchManagerException
-
getZosBatchPropertyTruncateJCLRecords
Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].truncate.jcl.recordsproperty- Parameters:
imageId-- Returns:
- Throws:
ZosBatchManagerException
-
newZosBatchJobname
Provides other managers aIZosBatchJobnamewith a prefix defined by the zOS Batchzosbatch.jobname.[imageid].prefixproperty- Parameters:
image-- Returns:
- Throws:
ZosBatchException
-
newZosBatchJobname
Provides other managers aIZosBatchJobnamewith a the supplied name- Parameters:
name-- Returns:
- Throws:
ZosBatchException
-
newZosBatchJobOutput
Create a new batch job output object- Parameters:
batchJob-name-jobid-- Returns:
-
newZosBatchJobOutputSpoolFile
IZosBatchJobOutputSpoolFile newZosBatchJobOutputSpoolFile(IZosBatchJob batchJob, String jobname, String jobid, String stepname, String procstep, String ddname, String id, String records) throws ZosBatchException Create a new zOS Batch job spool file object- Parameters:
batchJob-jobname-jobid-stepname-procstep-ddname-id-records-- Returns:
- Throws:
ZosBatchException
-
buildUniquePathName
Build a unique results archive artifact name- Parameters:
artifactPath-name-- Returns:
-
storeArtifact
void storeArtifact(Path artifactPath, String content, ResultArchiveStoreContentType type) throws ZosManagerException Store an artifact in the results archive on behalf of another manager- Parameters:
artifactPath-content-type-- Throws:
ZosManagerException
-
createArtifactDirectory
Create an empty dirictory in the results archive on behalf of another manager- Parameters:
artifactPath-- Throws:
ZosManagerException
-
getZosFilePropertyDirectoryListMaxItems
Provides other managers to the zOS Filezosfile.unix.[imageid].directory.list.max.itemsproperty- Parameters:
imageId-- Returns:
- Throws:
ZosFileManagerException
-
getZosFilePropertyFileRestrictToImage
Provides other managers to the zOS Filezosfile.batchjob.[imageid].restrict.to.imageproperty- Parameters:
imageId-- Returns:
- Throws:
ZosFileManagerException
-
getZosFilePropertyUnixFilePermissions
Provides other managers to the zOS Filezosfile.[imageid].unix.file.permissionproperty- Parameters:
imageId-- Returns:
- Throws:
ZosFileManagerException
-
getZosConsolePropertyConsoleRestrictToImage
boolean getZosConsolePropertyConsoleRestrictToImage(String imageId) throws ZosConsoleManagerException Provides other managers to the zOS Consolezosconsole.console.[imageid].restrict.to.imageproperty- Parameters:
imageId-- Returns:
- Throws:
ZosConsoleManagerException
-
getCredentials
Returns the credentials on the specified image id- Parameters:
credentialsId-imageId-- Returns:
- Throws:
ZosManagerException
-
getTaggedPorts
Returns the provisioned z/OS ports which are tagged with a string value- Returns:
- Map of tags to ports
-