Class RedisAofReplicator
- java.lang.Object
-
- com.moilioncircle.redis.replicator.AbstractReplicatorListener
-
- com.moilioncircle.redis.replicator.AbstractReplicator
-
- com.moilioncircle.redis.replicator.RedisAofReplicator
-
- All Implemented Interfaces:
Replicator,ReplicatorListener,ReplicatorRegister,Closeable,AutoCloseable
public class RedisAofReplicator extends AbstractReplicator
- Since:
- 2.1.0
- Author:
- Leon Chen
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerloggerprotected ReplyParserreplyParser-
Fields inherited from class com.moilioncircle.redis.replicator.AbstractReplicator
commands, configuration, connected, inputStream, modules, rdbVisitor
-
Fields inherited from class com.moilioncircle.redis.replicator.AbstractReplicatorListener
closeListeners, eventListeners, exceptionListeners, rawByteListeners, statusListeners
-
-
Constructor Summary
Constructors Constructor Description RedisAofReplicator(File file, Configuration configuration)RedisAofReplicator(InputStream in, Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoClose()protected voiddoOpen()-
Methods inherited from class com.moilioncircle.redis.replicator.AbstractReplicator
addCommandParser, addModuleParser, builtInCommandParserRegister, close, compareAndSet, dress, getCommandParser, getConfiguration, getModuleParser, getRdbVisitor, getStatus, open, removeCommandParser, removeModuleParser, setRdbVisitor, setStatus, submitEvent, submitEvent, verbose
-
Methods inherited from class com.moilioncircle.redis.replicator.AbstractReplicatorListener
addCloseListener, addEventListener, addExceptionListener, addRawByteListener, addStatusListener, doCloseListener, doEventListener, doExceptionListener, doStatusListener, removeCloseListener, removeEventListener, removeExceptionListener, removeRawByteListener, removeStatusListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.moilioncircle.redis.replicator.ReplicatorListener
addCloseListener, addEventListener, addExceptionListener, addRawByteListener, addStatusListener, removeCloseListener, removeEventListener, removeExceptionListener, removeRawByteListener, removeStatusListener
-
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
replyParser
protected final ReplyParser replyParser
-
-
Constructor Detail
-
RedisAofReplicator
public RedisAofReplicator(File file, Configuration configuration) throws FileNotFoundException
- Throws:
FileNotFoundException
-
RedisAofReplicator
public RedisAofReplicator(InputStream in, Configuration configuration)
-
-
Method Detail
-
doOpen
protected void doOpen() throws IOException- Overrides:
doOpenin classAbstractReplicator- Throws:
IOException
-
doClose
protected void doClose() throws IOException- Overrides:
doClosein classAbstractReplicator- Throws:
IOException
-
-