类 AbstractReplicator
- java.lang.Object
-
- com.moilioncircle.redis.replicator.AbstractReplicatorListener
-
- com.moilioncircle.redis.replicator.AbstractReplicator
-
- 所有已实现的接口:
Replicator,ReplicatorListener,ReplicatorRegister,Closeable,AutoCloseable
public abstract class AbstractReplicator extends AbstractReplicatorListener implements Replicator
- 从以下版本开始:
- 2.1.0
- 版本:
- 2.1.1
- 作者:
- Leon Chen
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Map<CommandName,CommandParser<? extends Command>>commandsprotected Configurationconfigurationprotected AtomicReference<Status>connectedprotected RedisInputStreaminputStreamprotected AtomicBooleanmanualprotected Map<ModuleKey,ModuleParser<? extends Module>>modulesprotected RdbVisitorrdbVisitor-
从类继承的字段 com.moilioncircle.redis.replicator.AbstractReplicatorListener
closeListeners, eventListeners, exceptionListeners, rawByteListeners, statusListeners
-
-
构造器概要
构造器 构造器 说明 AbstractReplicator()
-
方法概要
-
从类继承的方法 com.moilioncircle.redis.replicator.AbstractReplicatorListener
addCloseListener, addEventListener, addExceptionListener, addRawByteListener, addStatusListener, doCloseListener, doEventListener, doExceptionListener, doStatusListener, removeCloseListener, removeEventListener, removeExceptionListener, removeRawByteListener, removeStatusListener
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.moilioncircle.redis.replicator.ReplicatorListener
addCloseListener, addEventListener, addExceptionListener, addRawByteListener, addStatusListener, removeCloseListener, removeEventListener, removeExceptionListener, removeRawByteListener, removeStatusListener
-
-
-
-
字段详细资料
-
configuration
protected Configuration configuration
-
inputStream
protected RedisInputStream inputStream
-
rdbVisitor
protected RdbVisitor rdbVisitor
-
manual
protected final AtomicBoolean manual
-
connected
protected final AtomicReference<Status> connected
-
modules
protected final Map<ModuleKey,ModuleParser<? extends Module>> modules
-
commands
protected final Map<CommandName,CommandParser<? extends Command>> commands
-
-
方法详细资料
-
getCommandParser
public CommandParser<? extends Command> getCommandParser(CommandName command)
- 指定者:
getCommandParser在接口中ReplicatorRegister
-
addCommandParser
public <T extends Command> void addCommandParser(CommandName command, CommandParser<T> parser)
- 指定者:
addCommandParser在接口中ReplicatorRegister
-
removeCommandParser
public CommandParser<? extends Command> removeCommandParser(CommandName command)
- 指定者:
removeCommandParser在接口中ReplicatorRegister
-
getModuleParser
public ModuleParser<? extends Module> getModuleParser(String moduleName, int moduleVersion)
- 指定者:
getModuleParser在接口中ReplicatorRegister
-
addModuleParser
public <T extends Module> void addModuleParser(String moduleName, int moduleVersion, ModuleParser<T> parser)
- 指定者:
addModuleParser在接口中ReplicatorRegister
-
removeModuleParser
public ModuleParser<? extends Module> removeModuleParser(String moduleName, int moduleVersion)
- 指定者:
removeModuleParser在接口中ReplicatorRegister
-
submitEvent
public void submitEvent(Event event)
-
setStatus
protected void setStatus(Status next)
-
verbose
public boolean verbose()
- 指定者:
verbose在接口中ReplicatorRegister
-
getStatus
public Status getStatus()
- 指定者:
getStatus在接口中ReplicatorRegister
-
getConfiguration
public Configuration getConfiguration()
- 指定者:
getConfiguration在接口中ReplicatorRegister
-
setRdbVisitor
public void setRdbVisitor(RdbVisitor rdbVisitor)
- 指定者:
setRdbVisitor在接口中ReplicatorRegister
-
getRdbVisitor
public RdbVisitor getRdbVisitor()
- 指定者:
getRdbVisitor在接口中ReplicatorRegister
-
builtInCommandParserRegister
public void builtInCommandParserRegister()
-
open
public void open() throws IOException- 指定者:
open在接口中Replicator- 抛出:
IOException
-
close
public void close() throws IOException- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 指定者:
close在接口中Replicator- 抛出:
IOException
-
isClosed
protected boolean isClosed()
-
doClose
protected void doClose() throws IOException- 抛出:
IOException
-
-