Package dev.galasa.zosliberty
Interface IZosLibertyServerLog
public interface IZosLibertyServerLog
-
Method Summary
Modifier and TypeMethodDescriptionlong
Checkpoint thisIZosLibertyServerLog
void
delete()
Delete theIZosUNIXFile
if it existslong
Return the current checkpoint on thisIZosLibertyServerLog
getName()
Returns the name of the specified log fileReturns theIZosUNIXFile
associated with thisIZosLibertyServerLog
retrieve()
Returns the contents of a specified logReturns the contents of log since the last checkpointvoid
saveToResultsArchive
(String rasPath) Save the log to the Results Archive StoresearchForPattern
(Pattern searchPattern) Searches contents of log for specified search PatternsearchForPattern
(Pattern searchPattern, Pattern failPattern) Searches contents of log for specified search or fail PatternsearchForPatternSinceCheckpoint
(Pattern searchPattern) Searches contents of log for specified search Pattern since the last checkpointsearchForPatternSinceCheckpoint
(Pattern searchPattern, Pattern failPattern) Searches contents of log for specified search or fail Pattern since the last checkpointsearchForText
(String searchText) Searches contents of log for specified search textsearchForText
(String searchText, String failText) Searches contents of log for specified search or fail StringsearchForTextSinceCheckpoint
(String searchText) Searches contents of log for specified search text String since the last checkpointsearchForTextSinceCheckpoint
(String searchText, String failText) Searches contents of log for specified search or fail String since the last checkpointwaitForPattern
(Pattern searchPattern, long timeout) Wait for a search Pattern to appear in specified log.waitForPattern
(Pattern searchPattern, Pattern failPattern, long timeout) Wait for a search or fail Pattern or fail Pattern to appear in specified log.waitForPatternSinceCheckpoint
(Pattern searchPattern, long timeout) Wait for a search Pattern to appear in specified log since the last checkpoint.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.waitForText
(String searchText, long timeout) Wait for a search search String to appear in specified log.waitForText
(String searchText, String failText, long timeout) Wait for a search String or fail text to appear in specified log.waitForTextSinceCheckpoint
(String searchText, long timeout) Wait for a search String to appear in specified log since the last checkpoint.waitForTextSinceCheckpoint
(String searchText, String failText, long timeout) Wait for a search or fail String to appear in specified log since the last checkpoint.
-
Method Details
-
getName
Returns the name of the specified log file- Returns:
- the file name
- Throws:
ZosLibertyServerException
-
getZosUNIXFile
Returns theIZosUNIXFile
associated with thisIZosLibertyServerLog
- Returns:
- Liberty server log file
- Throws:
ZosLibertyServerException
-
retrieve
Returns the contents of a specified log- Returns:
- contents of log
- Throws:
ZosLibertyServerException
-
delete
Delete theIZosUNIXFile
if it exists- Throws:
ZosLibertyServerException
-
saveToResultsArchive
Save the log to the Results Archive Store- Parameters:
rasPath
-- Throws:
ZosLibertyServerException
-
checkpoint
Checkpoint thisIZosLibertyServerLog
- Returns:
- checkpoint
- Throws:
ZosLibertyServerException
-
getCheckpoint
long getCheckpoint()Return the current checkpoint on thisIZosLibertyServerLog
- Returns:
- checkpoint
-
retrieveSinceCheckpoint
Returns the contents of log since the last checkpoint- Returns:
- contents of log
- Throws:
ZosLibertyServerException
-
searchForText
Searches contents of log for specified search text- Parameters:
searchText
- the text to search- Returns:
- true if text found
- Throws:
ZosLibertyServerException
-
searchForText
Searches contents of log for specified search or fail String- Parameters:
searchText
- the text to search- Returns:
- true if text found
- Throws:
ZosLibertyServerException
-
searchForTextSinceCheckpoint
Searches contents of log for specified search text String since the last checkpoint- Parameters:
searchText
- the text to search- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
searchForTextSinceCheckpoint
String searchForTextSinceCheckpoint(String searchText, String failText) throws ZosLibertyServerException Searches contents of log for specified search or fail String since the last checkpoint- Parameters:
searchText
- the text to search- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
searchForPattern
Searches contents of log for specified search Pattern- Parameters:
searchPattern
- the Pattern to search- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
searchForPattern
String searchForPattern(Pattern searchPattern, Pattern failPattern) throws ZosLibertyServerException Searches contents of log for specified search or fail Pattern- Parameters:
searchPattern
- the Pattern to search- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
searchForPatternSinceCheckpoint
Searches contents of log for specified search Pattern since the last checkpoint- Parameters:
searchPattern
- the Pattern to search- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
searchForPatternSinceCheckpoint
String searchForPatternSinceCheckpoint(Pattern searchPattern, Pattern failPattern) throws ZosLibertyServerException Searches contents of log for specified search or fail Pattern since the last checkpoint- Parameters:
searchPattern
- the Pattern to search- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
waitForText
Wait for a search search String to appear in specified log. Will check every 3 seconds until one of:- the searchText is found;
- the failText is found;
- the specified timeout is reached.
- Parameters:
searchText
- the text to searchtimeout
- timeout value in seconds- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
waitForText
String waitForText(String searchText, String failText, long timeout) throws ZosLibertyServerException Wait for a search String or fail text to appear in specified log. Will check every 3 seconds until one of:- the searchText is found;
- the failText is found;
- the specified timeout is reached.
- Parameters:
searchText
- the text to searchfailText
- the failure text to searchtimeout
- timeout value in seconds- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
waitForTextSinceCheckpoint
Wait for a search String to appear in specified log since the last checkpoint. Will check every 3 seconds until one of:- the searchText is found;
- the failText is found;
- the specified timeout is reached.
- Parameters:
searchText
- the text to searchtimeout
- timeout value in seconds- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
waitForTextSinceCheckpoint
String waitForTextSinceCheckpoint(String searchText, String failText, long timeout) throws ZosLibertyServerException Wait for a search or fail String to appear in specified log since the last checkpoint. Will check every 3 seconds until one of:- the searchText is found;
- the failText is found;
- the specified timeout is reached.
- Parameters:
searchText
- the text to searchfailText
- the failure text to searchtimeout
- timeout value in seconds- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
waitForPattern
Wait for a search Pattern to appear in specified log. Will check every 3 seconds until one of:- the searchPattern is found;
- the failPattern is found;
- the specified timeout is reached.
- Parameters:
searchPattern
- the Pattern to searchtimeout
- timeout value in seconds- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
waitForPattern
String waitForPattern(Pattern searchPattern, Pattern failPattern, long timeout) throws ZosLibertyServerException Wait for a search or fail Pattern or fail Pattern to appear in specified log. Will check every 3 seconds until one of:- the searchPattern is found;
- the failPattern is found;
- the specified timeout is reached.
- Parameters:
searchPattern
- the Pattern to searchfailPattern
- the failure pattern to searchtimeout
- timeout value in seconds- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
waitForPatternSinceCheckpoint
String waitForPatternSinceCheckpoint(Pattern searchPattern, long timeout) throws ZosLibertyServerException Wait for a search Pattern to appear in specified log since the last checkpoint. Will check every 3 seconds until one of:- the searchPattern is found;
- the failPattern is found;
- the specified timeout is reached.
- Parameters:
searchPattern
- the Pattern to searchtimeout
- timeout value in seconds- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-
waitForPatternSinceCheckpoint
String waitForPatternSinceCheckpoint(Pattern searchPattern, Pattern failPattern, long timeout) throws ZosLibertyServerException Wait for a search or fail Pattern or fail Pattern to appear in specified log since the last checkpoint. Will check every 3 seconds until one of:- the searchPattern is found;
- the failPattern is found;
- the specified timeout is reached.
- Parameters:
searchPattern
- the Pattern to searchfailPattern
- the failure pattern to searchtimeout
- timeout value in seconds- Returns:
- the string found or null
- Throws:
ZosLibertyServerException
-