Package dev.galasa.zosliberty
Interface IZosLibertyServerLogs
public interface IZosLibertyServerLogs
An IZosLibertyServerLogs contain an array of Liberty server logs
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checkpoint the current know log filesvoid
delete()
Delete the contents of the logs directoryThe the name of the current log fileGet a log file by nameGet the Liberty messages.loggetNext()
Get the next log fileGet the next FFDC log fileGet the Liberty trace.logboolean
hasFfdcs()
Does this Liberty server have any FFDC logsint
The number of Liberty log filesvoid
refresh()
Refresh the list of log filesvoid
saveToResultsArchive
(String rasPath) Store the content of the Liberty server logs to the Results Archive Store
-
Method Details
-
hasFfdcs
boolean hasFfdcs()Does this Liberty server have any FFDC logs- Returns:
- true or false
-
numberOfFiles
int numberOfFiles()The number of Liberty log files- Returns:
- the number
-
getLog
Get a log file by name- Parameters:
fileName
- the log file name- Returns:
- the log file
-
getNext
IZosLibertyServerLog getNext()Get the next log file- Returns:
- the next log file
-
getMessagesLog
IZosLibertyServerLog getMessagesLog()Get the Liberty messages.log- Returns:
- the log file or null if it doesn't exist
-
getTraceLog
IZosLibertyServerLog getTraceLog()Get the Liberty trace.log- Returns:
- the log file or null if it doesn't exist
-
getNextFfdc
IZosLibertyServerLog getNextFfdc()Get the next FFDC log file- Returns:
- the next FFDC log
-
getCurrentLogName
String getCurrentLogName()The the name of the current log file- Returns:
- the log file name
-
refresh
Refresh the list of log files- Throws:
ZosLibertyServerException
-
saveToResultsArchive
Store the content of the Liberty server logs to the Results Archive Store- Parameters:
rasPath
- path in Results Archive- Throws:
ZosLibertyServerException
-
checkpoint
Checkpoint the current know log files- Throws:
ZosLibertyServerException
-
delete
Delete the contents of the logs directory- Throws:
ZosLibertyServerException
-