Class TailCommand
java.lang.Object
org.nuxeo.lib.stream.tools.command.Command
org.nuxeo.lib.stream.tools.command.TailCommand
Output the last records on a Log.
- Since:
- 9.3
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
name()
boolean
run
(LogManager manager, org.apache.commons.cli.CommandLine cmd) protected void
void
updateOptions
(org.apache.commons.cli.Options options) Methods inherited from class org.nuxeo.lib.stream.tools.command.Command
getRecordCodec, getRecordRenderer
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
TailCommand
public TailCommand()
-
-
Method Details
-
name
-
updateOptions
public void updateOptions(org.apache.commons.cli.Options options) - Specified by:
updateOptions
in classCommand
-
run
public boolean run(LogManager manager, org.apache.commons.cli.CommandLine cmd) throws InterruptedException - Specified by:
run
in classCommand
- Throws:
InterruptedException
-
tail
protected void tail(LogManager manager, Name name, Name group, int lines, Renderer render, String codec) throws InterruptedException - Throws:
InterruptedException
-
follow
protected void follow(LogManager manager, Name name, Name group, Renderer render, int timeout, String codec) throws InterruptedException - Throws:
InterruptedException
-