public class RedisRdbReplicator extends AbstractReplicator
commands, configuration, inputStream, modules, rdbVisitor
auxFieldListeners, closeListeners, commandListeners, exceptionListeners, rawByteListeners, rdbListeners
Constructor and Description |
---|
RedisRdbReplicator(File file,
Configuration configuration) |
RedisRdbReplicator(InputStream in,
Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
boolean |
addCommandListener(CommandListener listener) |
<T extends Command> |
addCommandParser(CommandName command,
CommandParser<T> parser) |
void |
builtInCommandParserRegister() |
void |
close() |
protected void |
doOpen() |
CommandParser<? extends Command> |
getCommandParser(CommandName command) |
void |
open() |
boolean |
removeCommandListener(CommandListener listener) |
CommandParser<? extends Command> |
removeCommandParser(CommandName command) |
addModuleParser, doClose, getConfiguration, getModuleParser, getRdbVisitor, removeModuleParser, setRdbVisitor, submitEvent, verbose
addAuxFieldListener, addCloseListener, addExceptionListener, addRawByteListener, addRdbListener, doAuxFieldListener, doCloseListener, doCommandListener, doExceptionListener, doPostFullSync, doPreFullSync, doRawByteListener, doRdbListener, handle, removeAuxFieldListener, removeCloseListener, removeExceptionListener, removeRawByteListener, removeRdbListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAuxFieldListener, addCloseListener, addExceptionListener, addRawByteListener, addRdbListener, removeAuxFieldListener, removeCloseListener, removeExceptionListener, removeRawByteListener, removeRdbListener
public RedisRdbReplicator(File file, Configuration configuration) throws FileNotFoundException
FileNotFoundException
public RedisRdbReplicator(InputStream in, Configuration configuration)
public void open() throws IOException
IOException
protected void doOpen() throws IOException
IOException
public void close() throws IOException
IOException
public boolean addCommandListener(CommandListener listener)
addCommandListener
in interface ReplicatorListener
addCommandListener
in class AbstractReplicatorListener
public boolean removeCommandListener(CommandListener listener)
removeCommandListener
in interface ReplicatorListener
removeCommandListener
in class AbstractReplicatorListener
public CommandParser<? extends Command> getCommandParser(CommandName command)
getCommandParser
in interface Replicator
getCommandParser
in class AbstractReplicator
public <T extends Command> void addCommandParser(CommandName command, CommandParser<T> parser)
addCommandParser
in interface Replicator
addCommandParser
in class AbstractReplicator
public CommandParser<? extends Command> removeCommandParser(CommandName command)
removeCommandParser
in interface Replicator
removeCommandParser
in class AbstractReplicator
public void builtInCommandParserRegister()
builtInCommandParserRegister
in interface Replicator
builtInCommandParserRegister
in class AbstractReplicator
Copyright © 2017. All rights reserved.