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 voidfollow(LogManager manager, Name name, Name group, Renderer render, int timeout, String codec)Stringname()booleanrun(LogManager manager, org.apache.commons.cli.CommandLine cmd)protected voidtail(LogManager manager, Name name, Name group, int lines, Renderer render, String codec)voidupdateOptions(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:
updateOptionsin classCommand
-
run
public boolean run(LogManager manager, org.apache.commons.cli.CommandLine cmd) throws InterruptedException
- Specified by:
runin 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
-
-