Class TailCommand
- java.lang.Object
-
- org.nuxeo.lib.stream.tools.command.Command
-
- org.nuxeo.lib.stream.tools.command.TailCommand
-
public class TailCommand extends Command
Output the last records on a Log.- Since:
- 9.3
-
-
Constructor Summary
Constructors Constructor Description TailCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
follow(LogManager manager, Name name, Name group, Renderer render, int timeout, String codec)
String
name()
boolean
run(LogManager manager, org.apache.commons.cli.CommandLine cmd)
protected void
tail(LogManager manager, Name name, Name group, int lines, Renderer render, String codec)
void
updateOptions(org.apache.commons.cli.Options options)
-
Methods inherited from class org.nuxeo.lib.stream.tools.command.Command
getRecordCodec, getRecordRenderer
-
-
-
-
Field Detail
-
NAME
protected static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-