public class LogSwarmObjectImpl extends AbstrAsyncDockerCmd<LogSwarmObjectCmd,Frame> implements LogSwarmObjectCmd
LogSwarmObjectCmd.Exec
execution
Constructor and Description |
---|
LogSwarmObjectImpl(DockerCmdAsyncExec<LogSwarmObjectCmd,Frame> execution,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getDetails() |
java.lang.Boolean |
getFollow() |
java.lang.Boolean |
getFollowStream() |
java.lang.String |
getId() |
java.lang.Integer |
getSince() |
java.lang.Boolean |
getStderr() |
java.lang.Boolean |
getStdout() |
java.lang.Integer |
getTail() |
java.lang.Boolean |
getTailAll() |
java.lang.Boolean |
getTimestamps() |
LogSwarmObjectCmd |
withDetails(java.lang.Boolean details) |
LogSwarmObjectImpl |
withFollow(java.lang.Boolean follow) |
LogSwarmObjectImpl |
withFollowStream(java.lang.Boolean followStream) |
LogSwarmObjectImpl |
withId(java.lang.String id) |
LogSwarmObjectImpl |
withSince(java.lang.Integer since) |
LogSwarmObjectImpl |
withStderr(java.lang.Boolean stderr) |
LogSwarmObjectImpl |
withStdout(java.lang.Boolean stdout) |
LogSwarmObjectImpl |
withTail(java.lang.Integer tail) |
LogSwarmObjectImpl |
withTailAll(java.lang.Boolean tailAll) |
LogSwarmObjectImpl |
withTimestamps(java.lang.Boolean timestamps) |
close, exec
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exec
public LogSwarmObjectImpl(DockerCmdAsyncExec<LogSwarmObjectCmd,Frame> execution, java.lang.String id)
public LogSwarmObjectImpl withId(@Nonnull java.lang.String id)
withId
in interface LogSwarmObjectCmd
id
- ID or name of the servicepublic java.lang.String getId()
getId
in interface LogSwarmObjectCmd
public java.lang.Boolean getFollowStream()
public LogSwarmObjectImpl withFollowStream(java.lang.Boolean followStream)
public java.lang.Boolean getTimestamps()
getTimestamps
in interface LogSwarmObjectCmd
public LogSwarmObjectImpl withTimestamps(java.lang.Boolean timestamps)
withTimestamps
in interface LogSwarmObjectCmd
timestamps
- Add timestamps to every log linepublic java.lang.Boolean getStdout()
getStdout
in interface LogSwarmObjectCmd
public LogSwarmObjectImpl withStdout(java.lang.Boolean stdout)
withStdout
in interface LogSwarmObjectCmd
stdout
- Return logs from stdoutpublic java.lang.Boolean getStderr()
getStderr
in interface LogSwarmObjectCmd
public LogSwarmObjectImpl withStderr(java.lang.Boolean stderr)
withStderr
in interface LogSwarmObjectCmd
stderr
- Return logs from stderrpublic java.lang.Boolean getTailAll()
public LogSwarmObjectImpl withTailAll(java.lang.Boolean tailAll)
public java.lang.Integer getTail()
getTail
in interface LogSwarmObjectCmd
public LogSwarmObjectImpl withTail(java.lang.Integer tail)
withTail
in interface LogSwarmObjectCmd
tail
- only return this number of log lines from the end of the logs.public java.lang.Integer getSince()
getSince
in interface LogSwarmObjectCmd
public LogSwarmObjectImpl withSince(java.lang.Integer since)
withSince
in interface LogSwarmObjectCmd
since
- Only return logs since this time, as a UNIX timestamppublic java.lang.Boolean getFollow()
getFollow
in interface LogSwarmObjectCmd
public LogSwarmObjectImpl withFollow(java.lang.Boolean follow)
withFollow
in interface LogSwarmObjectCmd
follow
- Return the logs as a raw stream.public LogSwarmObjectCmd withDetails(java.lang.Boolean details)
withDetails
in interface LogSwarmObjectCmd
details
- Show service context and extra details provided to logs.public java.lang.Boolean getDetails()
getDetails
in interface LogSwarmObjectCmd
Copyright © 2019. All Rights Reserved.