Package io.fabric8.kubernetes.client.dsl
Interface Loggable
-
- All Known Subinterfaces:
BytesLimitTerminateTimeTailPrettyLoggable,ContainerResource,PodResource,PrettyLoggable,RollableScalableResource<T>,ScalableResource<T>,TailPrettyLoggable,TimestampBytesLimitTerminateTimeTailPrettyLoggable,TimeTailPrettyLoggable
public interface LoggableLoggable interface for all resources which produce logs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringgetLog()Get logs of a resourceStringgetLog(boolean isPretty)Get logs with pretty enabledInputStreamgetLogInputStream()Get a InputStream for reading logsReadergetLogReader()Get a Reader for reading logsLogWatchwatchLog()Watch logs of a resource.LogWatchwatchLog(OutputStream out)Watch logs of resource and put them inside OutputStream inside
Should not be called with aPipedOutputStream- usewatchLog()insteadLoggablewithLogWaitTimeout(Integer logWaitTimeout)Deprecated.LoggablewithReadyWaitTimeout(Integer timeout)While waiting for Pod logs, how long shall we wait until a Pod becomes ready or terminal and starts producing logs
-
-
-
Method Detail
-
getLog
String getLog()
Get logs of a resource- Returns:
- logs as string
-
getLog
String getLog(boolean isPretty)
Get logs with pretty enabled- Parameters:
isPretty- whether we need logs with pretty output or not- Returns:
- logs as string
-
getLogInputStream
InputStream getLogInputStream()
Get a InputStream for reading logs- Returns:
InputStreamlog input stream
-
watchLog
LogWatch watchLog()
Watch logs of a resource. UseLogWatch.getOutput()to obtain the stream- Returns:
- returns a Closeable interface for log watch
-
watchLog
LogWatch watchLog(OutputStream out)
Watch logs of resource and put them inside OutputStream inside
Should not be called with aPipedOutputStream- usewatchLog()instead- Parameters:
out-OutputStreamfor storing logs- Returns:
- returns a Closeable interface for log watch
-
withLogWaitTimeout
@Deprecated Loggable withLogWaitTimeout(Integer logWaitTimeout)
Deprecated.While waiting for Pod logs, how long shall we wait until a Pod becomes ready and starts producing logs- Parameters:
logWaitTimeout- timeout in milliseconds- Returns:
Loggablefor fetching logs
-
-