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 namevoid
createArtifactDirectory
(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 IZosImage
Returns a zOS Image for the specified image ID@NotNull IZosImage
getImageForTag
(@NotNull String tag) Returns a zOS Image for the specified tag@NotNull String
getRunDatasetHLQ
(@NotNull IZosImage image) Returns the data set HLQ(s) for temporary data sets for the specified image@NotNull String
getRunUNIXPathPrefix
(@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 IZosImage
getUnmanagedImage
(String imageId) Returns a zOS Image for the specified image that may not have been provisioned so farboolean
Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].restrict.to.image
propertyint
getZosBatchPropertyJobWaitTimeout
(String imageId) Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].timeout
propertyboolean
Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].truncate.jcl.records
propertyboolean
getZosBatchPropertyUseSysaff
(String imageId) Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].use.sysaff
propertyboolean
Provides other managers to the zOS Consolezosconsole.console.[imageid].restrict.to.image
propertyint
Provides other managers to the zOS Filezosfile.unix.[imageid].directory.list.max.items
propertyboolean
Provides other managers to the zOS Filezosfile.batchjob.[imageid].restrict.to.image
propertyProvides other managers to the zOS Filezosfile.[imageid].unix.file.permission
propertynewZosBatchJobname
(IZosImage image) Provides other managers aIZosBatchJobname
with a prefix defined by the zOS Batchzosbatch.jobname.[imageid].prefix
propertynewZosBatchJobname
(String name) Provides other managers aIZosBatchJobname
with 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 IZosImage
provisionImageForTag
(@NotNull String tag) Returns a zOS Image for the specified tag, if necessary provisions itvoid
storeArtifact
(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.image
property- Parameters:
imageId
-- Returns:
- Throws:
ZosBatchManagerException
-
getZosBatchPropertyUseSysaff
Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].use.sysaff
property- Parameters:
imageId
-- Returns:
- Throws:
ZosBatchManagerException
-
getZosBatchPropertyJobWaitTimeout
Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].timeout
property- Parameters:
imageId
-- Returns:
- Throws:
ZosBatchManagerException
-
getZosBatchPropertyTruncateJCLRecords
Provides other managers to the zOS Batchzosbatch.batchjob.[imageid].truncate.jcl.records
property- Parameters:
imageId
-- Returns:
- Throws:
ZosBatchManagerException
-
newZosBatchJobname
Provides other managers aIZosBatchJobname
with a prefix defined by the zOS Batchzosbatch.jobname.[imageid].prefix
property- Parameters:
image
-- Returns:
- Throws:
ZosBatchException
-
newZosBatchJobname
Provides other managers aIZosBatchJobname
with 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.items
property- Parameters:
imageId
-- Returns:
- Throws:
ZosFileManagerException
-
getZosFilePropertyFileRestrictToImage
Provides other managers to the zOS Filezosfile.batchjob.[imageid].restrict.to.image
property- Parameters:
imageId
-- Returns:
- Throws:
ZosFileManagerException
-
getZosFilePropertyUnixFilePermissions
Provides other managers to the zOS Filezosfile.[imageid].unix.file.permission
property- Parameters:
imageId
-- Returns:
- Throws:
ZosFileManagerException
-
getZosConsolePropertyConsoleRestrictToImage
boolean getZosConsolePropertyConsoleRestrictToImage(String imageId) throws ZosConsoleManagerException Provides other managers to the zOS Consolezosconsole.console.[imageid].restrict.to.image
property- 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
-