Package dev.galasa.cicsts.cicsresource
Interface IJvmprofile
public interface IJvmprofile
Represents a CICS JVM server JVM profile
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendProfileValue
(String key, String value) Append a value to a JVM server option or JVM system property in the JVM profile of the formatkey=value
in the JVM profile.void
build()
Build the JVM profile on the zOS UNIX file systemboolean
containsOption
(String option) Returns true it the current JVM profile object contains the given optionvoid
delete()
Delete the JVM profile on the zOS UNIX file systemReturns the location for the JVM profile DirectoryReturns the JVM profile as aIZosUNIXFile
objectReturns aMap
of the JVM server options and JVM system property in the JVM profileReturns the JVM profile name in the JVM server resource definitionReturns aString
of the JVM server options and JVM system property in the JVM profilegetProfileValue
(String key) Returns the value of a JVM server option or JVM system property in the JVM profileReturns the value of the-Dcom.ibm.cics.jvmserver.wlp.autoconfigure
JVM system property in the JVM profileReturns the value of theWLP_INSTALL_DIR
environment variable in the JVM profileReturns the value of theWLP_OUTPUT_DIR
environment variable in the JVM profileReturns the value of the-Dcom.ibm.cics.jvmserver.wlp.server.host
JVM system property in the JVM profileReturns the value of the-Dcom.ibm.cics.jvmserver.wlp.server.http.port
JVM system property in the JVM profileReturns the value of the-Dcom.ibm.cics.jvmserver.wlp.server.https.port
JVM system property in the JVM profileReturns the value of the-Dcom.ibm.cics.jvmserver.wlp.server.name
JVM system property in the JVM profileboolean
Returns the value of the-Dcom.ibm.cics.jvmserver.wlp.wab
JVM system property in the JVM profileReturns the value of theWLP_USER_DIR
environment variable in the JVM profilevoid
Print the content of the JVM profilevoid
removeProfileValue
(String key) Removes the JVM server option or JVM system property from the JVM profilevoid
saveToResultsArchive
(String rasPath) Store the content JVM profile on the zOS UNIX system to the Results Archive Storevoid
setJvmProfileDir
(String jvmProfileDir) Set the location for the JVM profile on the zOS UNIX file system.
WARNING: This should must equal to the CICS region JVMPROFILEDIR SIT parametervoid
setProfileName
(String name) Set the JVM profile name in the JVM server resource definitionvoid
setProfileValue
(String key, String value) Sets JVM server option or JVM system property in the JVM profile of the formatkey=value
.
If the key exists, it will be replaced.void
setWlpAutoconfigure
(boolean autoconfigure) Set the value of the-Dcom.ibm.cics.jvmserver.wlp.autoconfigure
JVM system property in the JVM profilevoid
setWlpInstallDir
(String wlpInstallDir) Set the value of theWLP_INSTALL_DIR
environment variable in the JVM profile Galasa sets the default value ofUSSHOME/wlp
void
setWlpOutputDir
(String wlpOutputDir) Set the value of theWLP_OUTPUT_DIR
environment variable in the JVM profilevoid
setWlpServerHost
(String hostname) Set the value of the-Dcom.ibm.cics.jvmserver.wlp.server.host
JVM system property in the JVM profilevoid
setWlpServerHttpPort
(int httpPort) Set the value of the-Dcom.ibm.cics.jvmserver.wlp.server.http.port
JVM system property in the JVM profilevoid
setWlpServerHttpsPort
(int httpsPort) Set the value of the-Dcom.ibm.cics.jvmserver.wlp.server.https.port
JVM system property in the JVM profilevoid
setWlpServerName
(String serverName) Set the value of the-Dcom.ibm.cics.jvmserver.wlp.server.name
JVM system property in the JVM profile.void
setWlpServerWabEnabled
(boolean wabEnabled) Set the value of the-Dcom.ibm.cics.jvmserver.wlp.wab
JVM system property in the JVM profilevoid
setWlpUserDir
(String wlpUserDir) Set the value of theWLP_USER_DIR
environment variable in the JVM profilevoid
Set the value of theZCEE_INSTALL_DIR
environment variable in the JVM profile using the value supplied in the Galasa Configuration Property Servicevoid
setZosConnectInstallDir
(String zOSConnectInstallDir) Set the value of theZCEE_INSTALL_DIR
environment variable in the JVM profile
-
Method Details
-
setProfileName
Set the JVM profile name in the JVM server resource definition- Parameters:
name
- the profile name- Throws:
CicsJvmserverResourceException
-
setJvmProfileDir
Set the location for the JVM profile on the zOS UNIX file system.
WARNING: This should must equal to the CICS region JVMPROFILEDIR SIT parameter- Parameters:
jvmProfileDir
-- Throws:
CicsJvmserverResourceException
-
getProfile
IZosUNIXFile getProfile()Returns the JVM profile as aIZosUNIXFile
object- Returns:
- the JVM profile
-
getProfileName
String getProfileName()Returns the JVM profile name in the JVM server resource definition- Returns:
-
setProfileValue
Sets JVM server option or JVM system property in the JVM profile of the formatkey=value
.
If the key exists, it will be replaced. To append a value to an existing option or property, useappendProfileValue(String, String)
. Adding the + character before key results in the value being appended to the existing option, rather than creating a new option entryExamples:
Option key value PRINT_JVM_OPTIONS=TRUE
PRINT_JVM_OPTIONS
TRUE
-Dcom.ibm.cics.jvmserver.trace.format=FULL
-Dcom.ibm.cics.jvmserver.trace.format
FULL
-Xms256M
-Xms
256M
-Xshareclasses:printStats
-Xshareclasses:
printStats
-Xnocompressedrefs
-Xnocompressedrefs
null
- Parameters:
key
- the JVM server option or JVM system property keyvalue
- the JVM server option or JVM system property value
-
appendProfileValue
Append a value to a JVM server option or JVM system property in the JVM profile of the formatkey=value
in the JVM profile. For example, given an existing JVM profile option of:
OSGI_BUNDLES=/tmp/bundle1.jar
the method callappendProfileValue("OSGI_BUNDLES", "/tmp/bundle2.jar")
would set the option to:
OSGI_BUNDLES=/tmp/bundle1.jar,\\\n/tmp/bundle2.jar
If the key does not exist, then this method performs the same function as
setProfileValue(String, String)
*- Parameters:
key
- the JVM server option or JVM system property keyvalue
- the JVM server option or JVM system property value
-
getProfileValue
Returns the value of a JVM server option or JVM system property in the JVM profile- Parameters:
key
- the JVM server option or JVM system property key- Returns:
- the JVM server option or JVM system property value
-
removeProfileValue
Removes the JVM server option or JVM system property from the JVM profile- Parameters:
key
-
-
containsOption
Returns true it the current JVM profile object contains the given option- Parameters:
option
- the JVM profile option- Returns:
- true or false
-
getProfileMap
Returns aMap
of the JVM server options and JVM system property in the JVM profile- Returns:
- content of the JVM Profile
-
getProfileString
String getProfileString()Returns aString
of the JVM server options and JVM system property in the JVM profile- Returns:
- content of the JVM Profile
-
getJvmProfileDir
String getJvmProfileDir()Returns the location for the JVM profile Directory- Returns:
- the value of the JVM Profile Directory
-
printProfile
void printProfile()Print the content of the JVM profile -
build
Build the JVM profile on the zOS UNIX file system- Throws:
CicsJvmserverResourceException
-
delete
Delete the JVM profile on the zOS UNIX file system- Throws:
CicsJvmserverResourceException
-
saveToResultsArchive
Store the content JVM profile on the zOS UNIX system to the Results Archive Store- Parameters:
rasPath
- path in Results Archive Store- Throws:
CicsJvmserverResourceException
-
setWlpInstallDir
Set the value of theWLP_INSTALL_DIR
environment variable in the JVM profile Galasa sets the default value ofUSSHOME/wlp
- Parameters:
wlpInstallDir
- the value ofWLP_INSTALL_DIR
- Throws:
CicsJvmserverResourceException
-
setWlpUserDir
Set the value of theWLP_USER_DIR
environment variable in the JVM profile- Parameters:
wlpUserDir
- the value ofWLP_USER_DIR
- Throws:
CicsJvmserverResourceException
-
setWlpOutputDir
Set the value of theWLP_OUTPUT_DIR
environment variable in the JVM profile- Parameters:
wlpOutputDir
- the value forWLP_OUTPUT_DIR
- Throws:
CicsJvmserverResourceException
-
setZosConnectInstallDir
Set the value of theZCEE_INSTALL_DIR
environment variable in the JVM profile using the value supplied in the Galasa Configuration Property Service- Throws:
CicsJvmserverResourceException
-
setZosConnectInstallDir
Set the value of theZCEE_INSTALL_DIR
environment variable in the JVM profile- Parameters:
zOSConnectInstallDir
- the value ofZCEE_INSTALL_DIR
- Throws:
CicsJvmserverResourceException
-
setWlpServerName
Set the value of the-Dcom.ibm.cics.jvmserver.wlp.server.name
JVM system property in the JVM profile. Liberty defaults this to defaultServer.- Parameters:
serverName
- the value for-Dcom.ibm.cics.jvmserver.wlp.server.name
- Throws:
CicsJvmserverResourceException
-
setWlpAutoconfigure
Set the value of the-Dcom.ibm.cics.jvmserver.wlp.autoconfigure
JVM system property in the JVM profile- Parameters:
autoconfigure
- the value for-Dcom.ibm.cics.jvmserver.wlp.autoconfigure
- Throws:
CicsJvmserverResourceException
-
setWlpServerHost
Set the value of the-Dcom.ibm.cics.jvmserver.wlp.server.host
JVM system property in the JVM profile- Parameters:
hostname
- the value of-Dcom.ibm.cics.jvmserver.wlp.server.host
- Throws:
CicsJvmserverResourceException
-
setWlpServerHttpPort
Set the value of the-Dcom.ibm.cics.jvmserver.wlp.server.http.port
JVM system property in the JVM profile- Parameters:
httpPort
- the value of-Dcom.ibm.cics.jvmserver.wlp.server.http.port
- Throws:
CicsJvmserverResourceException
-
setWlpServerHttpsPort
Set the value of the-Dcom.ibm.cics.jvmserver.wlp.server.https.port
JVM system property in the JVM profile- Parameters:
httpsPort
- the value of-Dcom.ibm.cics.jvmserver.wlp.server.https.port
- Throws:
CicsJvmserverResourceException
-
setWlpServerWabEnabled
Set the value of the-Dcom.ibm.cics.jvmserver.wlp.wab
JVM system property in the JVM profile- Parameters:
wabEnabled
- the value of-Dcom.ibm.cics.jvmserver.wlp.wab
- Throws:
CicsJvmserverResourceException
-
getWlpInstallDir
Returns the value of theWLP_INSTALL_DIR
environment variable in the JVM profile- Returns:
- the value of
WLP_INSTALL_DIR
- Throws:
CicsJvmserverResourceException
-
getWlpUserDir
String getWlpUserDir()Returns the value of theWLP_USER_DIR
environment variable in the JVM profile- Returns:
- the value of
WLP_USER_DIR
-
getWlpOutputDir
String getWlpOutputDir()Returns the value of theWLP_OUTPUT_DIR
environment variable in the JVM profile- Returns:
- the value of
WLP_OUTPUT_DIR
-
getWlpServerName
String getWlpServerName()Returns the value of the-Dcom.ibm.cics.jvmserver.wlp.server.name
JVM system property in the JVM profile- Returns:
- the value of
-Dcom.ibm.cics.jvmserver.wlp.server.name
-
getWlpAutoconfigure
String getWlpAutoconfigure()Returns the value of the-Dcom.ibm.cics.jvmserver.wlp.autoconfigure
JVM system property in the JVM profile- Returns:
- the value of
-Dcom.ibm.cics.jvmserver.wlp.autoconfigure
-
getWlpServerHost
String getWlpServerHost()Returns the value of the-Dcom.ibm.cics.jvmserver.wlp.server.host
JVM system property in the JVM profile- Returns:
- the value of
-Dcom.ibm.cics.jvmserver.wlp.server.host
-
getWlpServerHttpPort
String getWlpServerHttpPort()Returns the value of the-Dcom.ibm.cics.jvmserver.wlp.server.http.port
JVM system property in the JVM profile- Returns:
- the value of
-Dcom.ibm.cics.jvmserver.wlp.server.http.port
-
getWlpServerHttpsPort
String getWlpServerHttpsPort()Returns the value of the-Dcom.ibm.cics.jvmserver.wlp.server.https.port
JVM system property in the JVM profile- Returns:
- the value of
-Dcom.ibm.cics.jvmserver.wlp.server.https.port
-
getWlpServerWabEnabled
boolean getWlpServerWabEnabled()Returns the value of the-Dcom.ibm.cics.jvmserver.wlp.wab
JVM system property in the JVM profile- Returns:
- the value of
-Dcom.ibm.cics.jvmserver.wlp.wab
-