Package dev.galasa.framework.spi
Interface IRunResult
public interface IRunResult
-
Method Summary
Modifier and TypeMethodDescriptionvoiddiscard()getLog()default longGet the size of the run log in bytes without loading it into memory.getRunId()voidloadArtifact(String artifactPath) voidvoidstreamLog(OutputStream outputStream) Stream the run log content directly to an OutputStream.
-
Method Details
-
getRunId
String getRunId() -
getTestStructure
- Throws:
ResultArchiveStoreException
-
getArtifactsRoot
- Throws:
ResultArchiveStoreException
-
getLog
- Throws:
ResultArchiveStoreException
-
streamLog
Stream the run log content directly to an OutputStream. This method is preferred for large logs to avoid memory issues.- Parameters:
outputStream- The stream to write log content to- Throws:
ResultArchiveStoreException- if there's an error accessing the log
-
getLogSize
Get the size of the run log in bytes without loading it into memory. This is useful for setting Content-Length headers without reading the entire log.- Returns:
- The log size in bytes, or -1 if size is unknown or cannot be determined efficiently
- Throws:
ResultArchiveStoreException- if there's an error accessing the log metadata
-
discard
- Throws:
ResultArchiveStoreException
-
loadArtifacts
- Throws:
ResultArchiveStoreException
-
loadArtifact
- Throws:
ResultArchiveStoreException
-