Class DumpCommand
- java.lang.Object
-
- org.nuxeo.lib.stream.tools.command.Command
-
- org.nuxeo.lib.stream.tools.command.DumpCommand
-
public class DumpCommand extends Command
Dump records from a Log into an Avro file.- Since:
- 10.2
-
-
Constructor Summary
Constructors Constructor Description DumpCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddump(LogManager manager, Name name, int partition, Name group, int limit, String codec, Path output)protected LogTailer<Record>getTailer(LogManager manager, Name name, int partition, Name group, String codec)Stringname()booleanrun(LogManager manager, org.apache.commons.cli.CommandLine cmd)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
-
-
Constructor Detail
-
DumpCommand
public DumpCommand()
-
-
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
-
dump
protected void dump(LogManager manager, Name name, int partition, Name group, int limit, String codec, Path output) throws InterruptedException
- Throws:
InterruptedException
-
-