Uses of Class
dev.galasa.zosliberty.ZosLibertyServerException
Packages that use ZosLibertyServerException
-
Uses of ZosLibertyServerException in dev.galasa.zosliberty
Methods in dev.galasa.zosliberty that throw ZosLibertyServerExceptionModifier and TypeMethodDescriptionvoid
IZosLibertyServerXml.addCommentsBefore
(Element element, String... comments) Add one or more XML comment before the supplied XML elementIZosLibertyServerXml.addCompoundElement
(String elementName, Map<String, String> elementAttributes, IZosLibertyServerXmlElementList subElements) Add a compound XML element to the Liberty server.xml Document objectIZosLibertyServerXml.addCompoundElementToParent
(Element parent, String elementName, Map<String, String> elementAttributes, IZosLibertyServerXmlElementList subElements) Add a compound XML element as a child to supplied XML element in the Liberty server.xml Document objectIZosLibertyServerXml.addElement
(String elementName, Map<String, String> elementAttributes) Add a simple XML element to the Liberty server.xml Document objectIZosLibertyServerXml.addElementToParent
(Element parent, String elementName, Map<String, String> elementAttributes) Add a simple XML element as a child to supplied XML element in the Liberty server.xml Document objectvoid
IZosLibertyServer.addFeature
(String feature) Convenience method to add a feature to the Liberty serverserver.xml
IZosLibertyServerXml.addTextContextElement
(Element parent, String elementName, String elementText) Add a text context XML element as a child to supplied XML element in the Liberty server.xml Document objectvoid
IZosLibertyServer.build()
Builds the the Liberty server on the zOS UNIX file system from any objects that have been created such as the server.xmllong
IZosLibertyServerLog.checkpoint()
Checkpoint thisIZosLibertyServerLog
void
IZosLibertyServerLogs.checkpoint()
Checkpoint the current know log filesvoid
IZosLibertyServer.checkpointLogs()
Convenience method to checkpoint the known Liberty server logs, i.e.void
IZosLibertyServer.clearLogs()
Clear the contents of the Liberty servers logs directoryint
IZosLibertyServer.create()
Create a Liberty server using theserver create
commandvoid
IZosLibertyServer.delete()
Delete the Liberty server files and directoriesvoid
IZosLibertyServerLog.delete()
Delete theIZosUNIXFile
if it existsvoid
IZosLibertyServerLogs.delete()
Delete the contents of the logs directoryvoid
IZosLibertyServer.deployApplication
(Class<?> testClass, String path, String targetLocation, IZosLibertyServer.ApplicationType type, String name, String contextRoot) Deploy an application to the Liberty server.void
IZosLibertyServer.deployApplicationToDropins
(Class<?> testClass, String path) Deploy an application to the Liberty server dropins directory.IZosLibertyServerXml.getAsDocument()
Get the Liberty server.xml object as aDocument
IZosLibertyServerXml.getAsString()
Get the Liberty server.xml object as aString
IZosLibertyServerXml.getAsZosUNIXFile()
Get the Liberty server.xml as aIZosUNIXFile
IZosLibertyServer.getDropinsDir()
Get the Liberty server dropins directoryIZosLibertyServerXml.getElements
(String elementName) Get an list of XML elements from the Liberty server.xml Document object.
N.B.IZosLibertyServerXml.getElementsById
(String elementName, String id) Get an list of XML elements from the Liberty server.xml Document object.
N.B.IZosLibertyServer.getJavaHome()
Get the JAVA_HOME value for this Liberty serverIZosLibertyServer.getKeystoreFile()
Returns the keystore file for this Liberty serverIZosLibertyServer.getLogs()
Get the contents of the Liberty servers logs directoryIZosLibertyServer.getLogsDirectory()
Get the Liberty server logs directoryIZosLibertyServerLog.getName()
Returns the name of the specified log fileIZosLibertyServer.getServerConfigDir()
Returns the Liberty Server Configuration Directory${server.config.app.dir}
as aIZosUNIXFile
objectIZosLibertyServer.getServerOutputDir()
Returns the Liberty Server Output Directory${server.output.dir}
as aIZosUNIXFile
objectIZosLibertyServer.getServerXml()
Get the server.xml object for this Liberty serverIZosLibertyServer.getSharedAppDir()
Returns the Liberty Shared Application Directory${shared.app.dir}
as aIZosUNIXFile
objectIZosLibertyServer.getSharedConfigDir()
Returns the Liberty Shared Configuration Directory${shared.config.dir}
as aIZosUNIXFile
objectIZosLibertyServer.getSharedResourcesDir()
Returns the Liberty Shared Resources Directory${shared.resources.dir}
as aIZosUNIXFile
objectIZosLibertyServer.getVersion()
Returns the Liberty versionIZosLibertyServer.getWlpInstallDir()
Returns the Liberty Install Directory${WLP_INSTALL_DIR}
as aIZosUNIXFile
objectIZosLibertyServer.getWlpOutputDir()
Returns the Liberty Output Directory${WLP_OUTPUT_DIR}
as aIZosUNIXFile
objectIZosLibertyServer.getWlpUserDir()
Returns the Liberty User Directory${WLP_USER_DIR}
as aIZosUNIXFile
objectIZosLibertyServerLog.getZosUNIXFile()
Returns theIZosUNIXFile
associated with thisIZosLibertyServerLog
IZosLibertyServer.listFeatures()
Convenience method to list the current features listed in thefeatureManager
element in the Liberty serverserver.xml
void
IZosLibertyServerXml.loadFromFileSystem()
Update the content of theIZosLibertyServerXml
with the content of the server.xml file from the zOS UNIX file systemIZosLibertyServer.loadServerXmlFromFileSystem()
Load the content of the Liberty server.xml from the file system into the internalIZosLibertyServerXml
objectIZosLiberty.newZosLibertyServer
(IZosImage zosImage) Create a zOS Liberty server object using the Liberty/Galasa default propertiesIZosLiberty.newZosLibertyServer
(IZosImage zosImage, String wlpInstallDir, String wlpUserDir, String wlpOutputDir) Create a zOS Liberty server object using the Liberty/Galasa default propertiesvoid
IZosLibertyServerLogs.refresh()
Refresh the list of log filesvoid
IZosLibertyServer.removeApplication
(String name) Remove an application from the Liberty server.void
IZosLibertyServer.removeApplicationFromDropins
(String fileName) Remove an application from the Liberty server dropins directory.void
IZosLibertyServerXml.removeElements
(String elementName) Remove all XML elements with specified name from the Liberty server.xml Document objectvoid
IZosLibertyServerXml.removeElementsById
(String elementName, String id) Remove all XML elements with specified name and id from the Liberty server.xml Document objectvoid
IZosLibertyServer.removeFeature
(String feature) Convenience method remove a feature from the Liberty serverserver.xml
IZosLibertyServerLog.retrieve()
Returns the contents of a specified logIZosLibertyServer.retrieveMessagesLog()
Get the current contents of the Liberty servermessages.log
as aString
IZosLibertyServer.retrieveMessagesLogSinceCheckpoint()
Get the current contents of the Liberty servermessages.log
as aString
since the last checkpointIZosLibertyServerLog.retrieveSinceCheckpoint()
Returns the contents of log since the last checkpointIZosLibertyServer.retrieveTraceLog()
Get the current contents of the Liberty servertrace.log
as aString
IZosLibertyServer.retrieveTraceLogSinceCheckpoint()
Get the current contents of the Liberty servertrace.log
as aString
since the last checkpointint
IZosLibertyServer.run()
Run the Liberty server as a zOS batch jobvoid
IZosLibertyServer.saveToResultsArchive()
Store the content of the Liberty server logs and configuration to the default location in the Results Archive Storevoid
IZosLibertyServer.saveToResultsArchive
(String rasPath) Store the content of the Liberty server logs and configuration to the Results Archive Storevoid
IZosLibertyServerLog.saveToResultsArchive
(String rasPath) Save the log to the Results Archive Storevoid
IZosLibertyServerLogs.saveToResultsArchive
(String rasPath) Store the content of the Liberty server logs to the Results Archive Storevoid
IZosLibertyServerXml.saveToResultsArchive
(String rasPath) Store the content of the Liberty server.xml to the Results Archive StoreIZosLibertyServerLog.searchForPattern
(Pattern searchPattern) Searches contents of log for specified search PatternIZosLibertyServerLog.searchForPattern
(Pattern searchPattern, Pattern failPattern) Searches contents of log for specified search or fail PatternIZosLibertyServerLog.searchForPatternSinceCheckpoint
(Pattern searchPattern) Searches contents of log for specified search Pattern since the last checkpointIZosLibertyServerLog.searchForPatternSinceCheckpoint
(Pattern searchPattern, Pattern failPattern) Searches contents of log for specified search or fail Pattern since the last checkpointIZosLibertyServerLog.searchForText
(String searchText) Searches contents of log for specified search textIZosLibertyServerLog.searchForText
(String searchText, String failText) Searches contents of log for specified search or fail StringIZosLibertyServerLog.searchForTextSinceCheckpoint
(String searchText) Searches contents of log for specified search text String since the last checkpointIZosLibertyServerLog.searchForTextSinceCheckpoint
(String searchText, String failText) Searches contents of log for specified search or fail String since the last checkpointIZosLibertyServer.securityUtilityEncode
(String password) Use the Liberty securityUtility command to encode a passwordIZosLibertyServer.securityUtilityGenerateKeystore
(String password) Use the Liberty securityUtility to create a new keyStorevoid
IZosLibertyServer.setDefaultHttpEndpoint
(String host, int httpPort, int httpsPort) Convenience method to create or replace thedefaultHttpEndpoint
element in the Liberty serverserver.xml
void
IZosLibertyServerXml.setFromDocument
(Document serverXml) Replace the Liberty server.xml object fromDocument
contentvoid
IZosLibertyServerXml.setFromString
(String serverXml) Replace the Liberty server.xml object fromString
contentvoid
IZosLibertyServerXml.setFromZosUNIXFile
(IZosUNIXFile serverXml) Replace the Liberty server.xml object fromIZosUNIXFile
contentvoid
IZosLibertyServer.setJavaHome
(String javaHome) Set the value of JAVA_HOME for this Liberty servervoid
IZosLibertyServer.setServerXml
(IZosLibertyServerXml serverXml) Set the server.xml object for this Liberty servervoid
IZosLibertyServer.setWlpInstallDir
(String wlpInstallDir) Provides the location of the Liberty Install Directory${WLP_INSTALL_DIR}
void
IZosLibertyServer.setWlpOutputDir
(String wlpOutputDir) Provides the location of the Liberty Output Directory${WLP_OUTPUT_DIR}
void
IZosLibertyServer.setWlpUserDir
(String wlpUserDir) Provides the location of the Liberty User Directory${WLP_USER_DIR}
int
IZosLibertyServer.start()
Start the Liberty server using theserver start
commandint
IZosLibertyServer.status()
Get the Liberty sever status using theserver status
commandint
IZosLibertyServer.stop()
Stop the Liberty servervoid
IZosLibertyServerXml.store()
Create or replace the server.xml file on the zOS UNIX file systemboolean
IZosLibertyServer.waitForApplicationStart
(String name) Wait for an application to start using the default timeout by looking forCWWKZ0001I
message in messages.log.boolean
IZosLibertyServer.waitForApplicationStart
(String name, int timeout) Wait for an application to start using the supplied timeout by looking forCWWKZ0001I
message in messages.log.boolean
IZosLibertyServer.waitForApplicationStop
(String name) Wait for an application to stop using the default timeout by looking forCWWKZ0009I
message in messages.log.boolean
IZosLibertyServer.waitForApplicationStop
(String name, int timeout) If themessages.log
has not been check-pointed, the whole file will be searched.IZosLibertyServerLog.waitForPattern
(Pattern searchPattern, long timeout) Wait for a search Pattern to appear in specified log.IZosLibertyServerLog.waitForPattern
(Pattern searchPattern, Pattern failPattern, long timeout) Wait for a search or fail Pattern or fail Pattern to appear in specified log.IZosLibertyServerLog.waitForPatternSinceCheckpoint
(Pattern searchPattern, long timeout) Wait for a search Pattern to appear in specified log since the last checkpoint.IZosLibertyServerLog.waitForPatternSinceCheckpoint
(Pattern searchPattern, Pattern failPattern, long timeout) Wait for a search or fail Pattern or fail Pattern to appear in specified log since the last checkpoint.int
IZosLibertyServer.waitForStart()
Wait for the Liberty server to start using the default timeoutint
IZosLibertyServer.waitForStart
(int timeout) Wait for the Liberty server to start using the supplied timeoutboolean
IZosLibertyServer.waitForStartMessage()
Wait for the Liberty server to issue theCWWKF0011I
message to themessages.log
using the default timeoutboolean
IZosLibertyServer.waitForStartMessage
(int timeout) Wait for the Liberty server to issue theCWWKF0011I
message to themessages.log
using the supplied timeoutint
IZosLibertyServer.waitForStop()
Wait for the Liberty server to stop using the default timeoutint
IZosLibertyServer.waitForStop
(int timeout) Wait for the Liberty server to stop using the supplied timeoutboolean
IZosLibertyServer.waitForStopMessage()
Wait for the Liberty server to issue theCWWKE0036I
message to themessages.log
using the default timeoutboolean
IZosLibertyServer.waitForStopMessage
(int timeout) Wait for the Liberty server to issue theCWWKE0036I
message to themessages.log
using the supplied timeoutIZosLibertyServerLog.waitForText
(String searchText, long timeout) Wait for a search search String to appear in specified log.IZosLibertyServerLog.waitForText
(String searchText, String failText, long timeout) Wait for a search String or fail text to appear in specified log.IZosLibertyServerLog.waitForTextSinceCheckpoint
(String searchText, long timeout) Wait for a search String to appear in specified log since the last checkpoint.IZosLibertyServerLog.waitForTextSinceCheckpoint
(String searchText, String failText, long timeout) Wait for a search or fail String to appear in specified log since the last checkpoint.