Interface Loggable

    • 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
      • getLogReader

        Reader getLogReader()
        Get a Reader for reading logs
        Returns:
        Reader log reader
      • getLogInputStream

        InputStream getLogInputStream()
        Get a InputStream for reading logs
        Returns:
        InputStream log input stream
      • watchLog

        LogWatch watchLog()
        Watch logs of a resource. Use LogWatch.getOutput() to obtain the stream
        Returns:
        returns a Closeable interface for log watch
      • withLogWaitTimeout

        @Deprecated
        Loggable withLogWaitTimeout​(Integer logWaitTimeout)
        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:
        Loggable for fetching logs
      • withReadyWaitTimeout

        Loggable withReadyWaitTimeout​(Integer timeout)
        While waiting for Pod logs, how long shall we wait until a Pod becomes ready or terminal and starts producing logs
        Parameters:
        timeout - in milliseconds
        Returns:
        Loggable for fetching logs