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 void
dump(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)
String
name()
boolean
run(LogManager manager, org.apache.commons.cli.CommandLine cmd)
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
-
dump
protected void dump(LogManager manager, Name name, int partition, Name group, int limit, String codec, Path output) throws InterruptedException
- Throws:
InterruptedException
-
-