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 TypeMethodDescriptionvoidbuild()Build the complete JVM server including the profile zOS UNIX file and the CICS resource definition.voidBuild and install the CICS BUNDLE resource definitionvoidBuild the CICS BUNDLE resource definition onlyvoiddelete()Delete the CICS BUNDLE resource including it's zOS UNIX files and directories.voiddeploy()Deploy the CICS BUNDLE to the zOS UNIX file systembooleandisable()Disable the CICS BUNDLE resourcevoidDisable and discard the CICS BUNDLE resource and delete the resource definition.booleanDisable and discard the CICS BUNDLE resource and re-install.booleandisableDiscardInstall(int timeout) Disable and discard the CICS BUNDLE resource and re-install.voiddiscard()Discard the CICS BUNDLE resource.voidenable()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 valuevoidInstall the CICS BUNDLE resource definitionbooleanReturns whether the CICS BUNDLE resource is currently enabledbooleanCheck if the CICS BUNDLE resource definition exist via CEDA DISPLAYbooleanCheck if the CICS BUNDLE resource has been installed via CEMT INQUIREvoidSet the CICS BUNDLE resource definition DESCRIPTION attribute valuevoidSet the CICS BUNDLE resource definition STATUS attribute valuebooleanWait for the CICS BUNDLE resource to be disabled.booleanwaitForDisable(int timeout) Wait for the CICS BUNDLE resource to be disabled with specified timeout.booleanWait for the CICS BUNDLE resource to be enabled.booleanwaitForEnable(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
-