com.fitbur.github.dockerjava.api.command.LogContainerCmd Maven / Gradle / Ivy
package com.fitbur.github.dockerjava.api.com.fitburmand;
import java.io.InputStream;
import com.fitbur.github.dockerjava.api.DockerClient;
import com.fitbur.github.dockerjava.api.model.Frame;
/**
* Get container logs
*
* @param followStream
* - true or false, return stream. Defaults to false.
* @param stdout
* - true or false, includes stdout log. Defaults to false.
* @param stderr
* - true or false, includes stderr log. Defaults to false.
* @param timestamps
* - true or false, if true, print timestamps for every log line. Defaults to false.
* @param tail
* - `all` or ``, Output specified number of lines at the end of logs
* @param since
* - UNIX timestamp (integer) to filter logs. Specifying a timestamp will only output log-entries since that
* timestamp. Default: 0 (unfiltered)
*/
public interface LogContainerCmd extends AsyncDockerCmd {
public String getContainerId();
public int getTail();
public boolean hasFollowStreamEnabled();
public boolean hasTimestampsEnabled();
public boolean hasStdoutEnabled();
public boolean hasStderrEnabled();
public int getSince();
public LogContainerCmd withContainerId(String containerId);
/**
* See {@link #withFollowStream(boolean)}
*/
public LogContainerCmd withFollowStream();
/**
* Following the stream means the resulting {@link InputStream} returned by {@link #exec()} reads infinitely. So a
* {@link InputStream#read()} MAY BLOCK FOREVER as long as no data is streamed from the docker host to
* {@link DockerClient}!
*/
public LogContainerCmd withFollowStream(boolean followStream);
public LogContainerCmd withTimestamps();
public LogContainerCmd withTimestamps(boolean timestamps);
public LogContainerCmd withStdOut();
public LogContainerCmd withStdOut(boolean stdout);
public LogContainerCmd withStdErr();
public LogContainerCmd withStdErr(boolean stderr);
public LogContainerCmd withTailAll();
public LogContainerCmd withTail(int tail);
public LogContainerCmd withSince(int since);
public static interface Exec extends DockerCmdAsyncExec {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy