Package dev.galasa.cicsts.cicsresource
Interface ICicsResource
public interface ICicsResource
Represents a CICS Resource. Provides methods to manage the resource, e.g. set attributes, install and delete via CEDA,
enable, disable and discard via CEMT
-
Method Summary
Modifier and TypeMethodDescriptionnewCicsBundle
(ICicsTerminal cicsTerminal, Class<?> testClass, String name, String group, String bundleDir) Create a CICS BUNDLE resource object without supplying the CICS bundle content, i.e.newCicsBundle
(ICicsTerminal cicsTerminal, Class<?> testClass, String name, String group, String bundlePath, Map<String, String> parameters) Create a CICS BUNDLE resource object supplying the CICS bundle content.newJvmprofile
(String jvmprofileName) Create an empty JVM profile object for use by aIJvmserver
newJvmprofile
(String jvmprofileName, String content) Create an JVM profile object for use by aIJvmserver
using the suppliedMap
of options.newJvmprofile
(String jvmprofileName, Map<String, String> content) Create an JVM profile object for use by aIJvmserver
using the suppliedMap
of options.newJvmserver
(ICicsTerminal cicsTerminal, String name, String group, IJvmprofile jvmprofile) Create a CICS JVMSERVER resource object using the supplied JVM profilenewJvmserver
(ICicsTerminal cicsTerminal, String name, String group, String jvmprofileName, IJvmserver.JvmserverType jvmserverType) Create a CICS JVMSERVER resource object using the CICS/Galasa default propertiesnewLibertyJvmserver
(ICicsTerminal cicsTerminal, String name, String group, IJvmprofile jvmprofile, IZosLibertyServer libertyServer) Create a CICS Liberty JVMSERVER resource object using the supplied JVM profile and Liberty server
-
Method Details
-
newCicsBundle
ICicsBundle newCicsBundle(ICicsTerminal cicsTerminal, Class<?> testClass, String name, String group, String bundlePath, Map<String, String> parameters) throws CicsBundleResourceExceptionCreate a CICS BUNDLE resource object supplying the CICS bundle content. The source bundle should have the same file structure as it exists on the zOS UNIX file system and will be transferred to the host in binary mode.- Parameters:
cicsTerminal
- a ICicsTerminal object for CEDA and CEMT transactionstestClass
- a class in the same bundle containing the application archive file, usethis.getClass()
name
- the CICS BUNDLE RDO namegroup
- the CICS BUNDLE RDO group namebundlePath
- the path to the directory in the test class bundle containing the CICS bundleparameters
- substitution parameters to replace variables in theMETA-INF/cics.xml
. Can benull
- Returns:
- the CICS Bundle object
- Throws:
CicsBundleResourceException
-
newCicsBundle
ICicsBundle newCicsBundle(ICicsTerminal cicsTerminal, Class<?> testClass, String name, String group, String bundleDir) throws CicsBundleResourceException Create a CICS BUNDLE resource object without supplying the CICS bundle content, i.e. the bundle already exists on the zOS UNIX file system- Parameters:
cicsTerminal
- a ICicsTerminal object for CEDA and CEMT transactionstestClass
- a class in the same bundle containing the application archive file, usethis.getClass()
name
- the CICS BUNDLE RDO namegroup
- the CICS BUNDLE RDO group namebundleDir
- the CICS BUNDLE RDO BUNDLEDIR value, i.e. the location of the existing CICS bundle- Returns:
- the CICS Bundle object
- Throws:
CicsBundleResourceException
-
newJvmserver
IJvmserver newJvmserver(ICicsTerminal cicsTerminal, String name, String group, String jvmprofileName, IJvmserver.JvmserverType jvmserverType) throws CicsJvmserverResourceException Create a CICS JVMSERVER resource object using the CICS/Galasa default properties- Parameters:
cicsTerminal
- a ICicsTerminal object for CEDA and CEMT transactionsname
- the JVM server namegroup
- the JVM server RDO group namejvmprofileName
- the name of the JVM profilejvmserverType
- the JVM server type- Returns:
- the Galasa JVM server object
- Throws:
CicsJvmserverResourceException
-
newJvmserver
IJvmserver newJvmserver(ICicsTerminal cicsTerminal, String name, String group, IJvmprofile jvmprofile) throws CicsJvmserverResourceException Create a CICS JVMSERVER resource object using the supplied JVM profile- Parameters:
cicsTerminal
- a ICicsTerminal object for CEDA and CEMT transactionsname
- the JVM server namegroup
- the JVM server RDO group namejvmprofile
- the JVM server profile- Returns:
- the Galasa JVM server object
- Throws:
CicsJvmserverResourceException
-
newLibertyJvmserver
IJvmserver newLibertyJvmserver(ICicsTerminal cicsTerminal, String name, String group, IJvmprofile jvmprofile, IZosLibertyServer libertyServer) throws CicsJvmserverResourceException Create a CICS Liberty JVMSERVER resource object using the supplied JVM profile and Liberty server- Parameters:
cicsTerminal
- a ICicsTerminal object for CEDA and CEMT transactionsname
- the JVM server namegroup
- the JVM server RDO group namejvmprofile
- the JVM server profile- Returns:
- the Galasa JVM server object
- Throws:
CicsJvmserverResourceException
-
newJvmprofile
Create an empty JVM profile object for use by aIJvmserver
- Parameters:
jvmprofileName
- the name of the JVM profile- Returns:
- the JVM profile
-
newJvmprofile
Create an JVM profile object for use by aIJvmserver
using the suppliedMap
of options.See
IJvmprofile.setProfileValue(String, String)
for format of options- Parameters:
jvmprofileName
- the name of the JVM profilecontent
- the profile content as aMap
- Returns:
- the JVM profile
-
newJvmprofile
Create an JVM profile object for use by aIJvmserver
using the suppliedMap
of options.See
IJvmprofile.setProfileValue(String, String)
for format of options- Parameters:
jvmprofileName
- the name of the JVM profilecontent
- the profile content as aString
- Returns:
- the JVM profile
-