Package dev.galasa.cicsts.cicsresource
Interface IJvmserverLog
public interface IJvmserverLog
-
Method Summary
Modifier and TypeMethodDescriptionlong
Checkpoint thisIJvmserverLog
void
delete()
Delete theIZosUNIXFile
if it exists.long
Return the current checkpoint on thisIJvmserverLog
getName()
Returns the name of the specified log file or DDNAMEReturns theIZosBatchJobOutputSpoolFile
associated with thisIJvmserverLog
Returns theIZosUNIXFile
associated with thisIJvmserverLog
boolean
Is this JVM server log aIZosBatchJobOutputSpoolFile
boolean
Is this JVM server log aIZosUNIXFile
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 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 or DDNAME- Returns:
- the file or DDNAME name
- Throws:
CicsJvmserverResourceException
-
isZosUNIXFile
boolean isZosUNIXFile()Is this JVM server log aIZosUNIXFile
- Returns:
-
isZosBatchJobSpoolFile
boolean isZosBatchJobSpoolFile()Is this JVM server log aIZosBatchJobOutputSpoolFile
- Returns:
-
getZosUNIXFile
Returns theIZosUNIXFile
associated with thisIJvmserverLog
- Returns:
- JVM server log file
- Throws:
CicsJvmserverResourceException
-
getZosBatchJobOutputSpoolFile
Returns theIZosBatchJobOutputSpoolFile
associated with thisIJvmserverLog
- Returns:
- JVM server log spool file
- Throws:
CicsJvmserverResourceException
-
retrieve
Returns the contents of a specified log- Returns:
- contents of log
- Throws:
CicsJvmserverResourceException
-
delete
Delete theIZosUNIXFile
if it exists.- Throws:
CicsJvmserverResourceException
- the log is aIZosBatchJobOutputSpoolFile
-
saveToResultsArchive
Save the log to the Results Archive Store- Parameters:
rasPath
-- Throws:
CicsJvmserverResourceException
-
checkpoint
Checkpoint thisIJvmserverLog
- Returns:
- checkpoint
- Throws:
CicsJvmserverResourceException
-
getCheckpoint
long getCheckpoint()Return the current checkpoint on thisIJvmserverLog
- Returns:
- checkpoint
-
retrieveSinceCheckpoint
Returns the contents of log since the last checkpoint- Returns:
- contents of log
- Throws:
CicsJvmserverResourceException
-
searchForText
Searches contents of log for specified search text- Parameters:
searchText
- the text to search- Returns:
- true if text found
- Throws:
CicsJvmserverResourceException
-
searchForText
Searches contents of log for specified search or fail String- Parameters:
searchText
- the text to search- Returns:
- true if text found
- Throws:
CicsJvmserverResourceException
-
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:
CicsJvmserverResourceException
-
searchForTextSinceCheckpoint
String searchForTextSinceCheckpoint(String searchText, String failText) throws CicsJvmserverResourceException 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:
CicsJvmserverResourceException
-
searchForPattern
Searches contents of log for specified search Pattern- Parameters:
searchPattern
- the Pattern to search- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-
searchForPattern
String searchForPattern(Pattern searchPattern, Pattern failPattern) throws CicsJvmserverResourceException Searches contents of log for specified search or fail Pattern- Parameters:
searchPattern
- the Pattern to search- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-
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:
CicsJvmserverResourceException
-
searchForPatternSinceCheckpoint
String searchForPatternSinceCheckpoint(Pattern searchPattern, Pattern failPattern) throws CicsJvmserverResourceException Searches contents of log for specified search or fail Pattern since the last checkpoint- Parameters:
searchPattern
- the Pattern to searchfailPattern
- the failure pattern to search- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-
waitForText
Wait for a 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 in seconds- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-
waitForText
String waitForText(String searchText, String failText, long timeout) throws CicsJvmserverResourceException 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 in seconds- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-
waitForTextSinceCheckpoint
String waitForTextSinceCheckpoint(String searchText, long timeout) throws CicsJvmserverResourceException 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 in seconds- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-
waitForTextSinceCheckpoint
String waitForTextSinceCheckpoint(String searchText, String failText, long timeout) throws CicsJvmserverResourceException 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 in seconds- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-
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 in seconds- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-
waitForPattern
String waitForPattern(Pattern searchPattern, Pattern failPattern, long timeout) throws CicsJvmserverResourceException 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 in seconds- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-
waitForPatternSinceCheckpoint
String waitForPatternSinceCheckpoint(Pattern searchPattern, long timeout) throws CicsJvmserverResourceException 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 in seconds- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-
waitForPatternSinceCheckpoint
String waitForPatternSinceCheckpoint(Pattern searchPattern, Pattern failPattern, long timeout) throws CicsJvmserverResourceException 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 in seconds- Returns:
- the string found or null
- Throws:
CicsJvmserverResourceException
-