Package dev.galasa.cicsts.cicsresource
Interface ICicsBundle
public interface ICicsBundle
Represents a CICS Bundle resource. It provides methods to set CICS Bundle specific attributes on the resource
(via CEDA) and to manage and set attributes in CEMT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
build()
Build the complete JVM server including the profile zOS UNIX file and the CICS resource definition.void
Build and install the CICS BUNDLE resource definitionvoid
Build the CICS BUNDLE resource definition onlyvoid
delete()
Delete the CICS BUNDLE resource including it's zOS UNIX files and directories.void
deploy()
Deploy the CICS BUNDLE to the zOS UNIX file systemboolean
disable()
Disable the CICS BUNDLE resourcevoid
Disable and discard the CICS BUNDLE resource and delete the resource definition.boolean
Disable and discard the CICS BUNDLE resource and re-install.boolean
disableDiscardInstall
(int timeout) Disable and discard the CICS BUNDLE resource and re-install.void
discard()
Discard the CICS BUNDLE resource.void
enable()
Enable the CICS BUNDLE resourcegetName()
Returns the CICS BUNDLE name as defined in the CICS Resource DefinitionReturn the CICS BUNDLE resource BUNDLEDIR attribute valueReturn the CICS BUNDLE resource definition DESCRIPTION attribute valueReturn the CICS BUNDLE resource definition GROUP attribute valueReturn the CICS BUNDLE resource definition NAME attribute valueReturn the CICS BUNDLE resource STATUS attribute valuevoid
Install the CICS BUNDLE resource definitionboolean
Returns whether the CICS BUNDLE resource is currently enabledboolean
Check if the CICS BUNDLE resource definition exist via CEDA DISPLAYboolean
Check if the CICS BUNDLE resource has been installed via CEMT INQUIREvoid
Set the CICS BUNDLE resource definition DESCRIPTION attribute valuevoid
Set the CICS BUNDLE resource definition STATUS attribute valueboolean
Wait for the CICS BUNDLE resource to be disabled.boolean
waitForDisable
(int timeout) Wait for the CICS BUNDLE resource to be disabled with specified timeout.boolean
Wait for the CICS BUNDLE resource to be enabled.boolean
waitForEnable
(int timeout) Wait for the CICS BUNDLE resource to be enabled with specified timeout.
-
Method Details
-
setDefinitionDescriptionAttribute
Set the CICS BUNDLE resource definition DESCRIPTION attribute value- Parameters:
value
- the resource definition DESCRIPTION attribute value
-
setDefinitionStatusAttribute
Set the CICS BUNDLE resource definition STATUS attribute value- Parameters:
value
- the resource definition STATUS attribute value
-
getResourceDefinitionNameAttribute
String getResourceDefinitionNameAttribute()Return the CICS BUNDLE resource definition NAME attribute value- Returns:
- the resource definition NAME attribute value
-
getResourceDefinitionGroupAttribute
String getResourceDefinitionGroupAttribute()Return the CICS BUNDLE resource definition GROUP attribute value- Returns:
- the resource definition GROUP attribute value
-
getResourceDefinitionDescriptionAttribute
String getResourceDefinitionDescriptionAttribute()Return the CICS BUNDLE resource definition DESCRIPTION attribute value- Returns:
- the resource definition DESCRIPTION attribute value
-
getResourceDefinitionStatusAttribute
CicsResourceStatus getResourceDefinitionStatusAttribute()Return the CICS BUNDLE resource STATUS attribute value- Returns:
- the resource STATUS attribute value
-
getResourceDefinitionBundledirAttribute
String getResourceDefinitionBundledirAttribute()Return the CICS BUNDLE resource BUNDLEDIR attribute value- Returns:
- the resource JVMPROFILE attribute value
-
build
Build the complete JVM server including the profile zOS UNIX file and the CICS resource definition. This method will install the CICS resource and wait for it to become enabled- Throws:
CicsBundleResourceException
-
buildResourceDefinition
Build the CICS BUNDLE resource definition only- Throws:
CicsBundleResourceException
-
deploy
Deploy the CICS BUNDLE to the zOS UNIX file system- Throws:
CicsBundleResourceException
-
buildInstallResourceDefinition
Build and install the CICS BUNDLE resource definition- Throws:
CicsBundleResourceException
-
installResourceDefinition
Install the CICS BUNDLE resource definition- Throws:
CicsBundleResourceException
-
resourceDefined
Check if the CICS BUNDLE resource definition exist via CEDA DISPLAY- Returns:
- true if the resource definition exists, false otherwise
- Throws:
CicsBundleResourceException
-
resourceInstalled
Check if the CICS BUNDLE resource has been installed via CEMT INQUIRE- Returns:
- true if it has been installed, false otherwise.
- Throws:
CicsBundleResourceException
-
enable
Enable the CICS BUNDLE resource- Throws:
CicsBundleResourceException
-
waitForEnable
Wait for the CICS BUNDLE resource to be enabled. Does NOT issue the enable command- Returns:
- true if enabled, false if not enabled
- Throws:
CicsBundleResourceException
-
waitForEnable
Wait for the CICS BUNDLE resource to be enabled with specified timeout. Does NOT issue the enable command- Parameters:
timeout
- timeout in seconds- Returns:
- true if enabled, false if not enabled
- Throws:
CicsBundleResourceException
-
isEnabled
Returns whether the CICS BUNDLE resource is currently enabled- Returns:
- true if enabled, false if not enabled
- Throws:
CicsBundleResourceException
-
disable
Disable the CICS BUNDLE resource- Returns:
- true if disabled, false if not disabled
- Throws:
CicsBundleResourceException
-
waitForDisable
Wait for the CICS BUNDLE resource to be disabled. Does NOT issue the disable command- Returns:
- true if disabled, false if not disabled
- Throws:
CicsBundleResourceException
-
waitForDisable
Wait for the CICS BUNDLE resource to be disabled with specified timeout. Does NOT issue the disable command- Parameters:
timeout
- timeout in seconds- Returns:
- true if disabled, false if not disabled
- Throws:
CicsBundleResourceException
-
disableDiscardInstall
Disable and discard the CICS BUNDLE resource and re-install. Waits for disable and enable Errors during the process will cause an exception to be thrown- Returns:
- true if disabled, false if not disabled
- Throws:
CicsBundleResourceException
-
disableDiscardInstall
Disable and discard the CICS BUNDLE resource and re-install. Waits for disable and enable Errors during the process will cause an exception to be thrown- Parameters:
timeout
- timeout in seconds- Returns:
- true if disabled, false if not disabled
- Throws:
CicsBundleResourceException
-
delete
Delete the CICS BUNDLE resource including it's zOS UNIX files and directories. If the resource is installed, it will be disabled and discarded- Throws:
CicsBundleResourceException
-
discard
Discard the CICS BUNDLE resource. If the resource is enabled, it will be disabled and discarded- Throws:
CicsBundleResourceException
-
disableDiscardDelete
Disable and discard the CICS BUNDLE resource and delete the resource definition. Errors during the process will cause an exception to be thrown- Throws:
CicsBundleResourceException
-
getName
String getName()Returns the CICS BUNDLE name as defined in the CICS Resource Definition- Returns:
- the CICS BUNDLE name
-