public abstract class ReconfigurationBase extends Object implements Reconfigurable
Reconfigurable interface.
Subclasses must override
(1) Reconfigurable.getReconfigurableProperties() to return all properties that can be reconfigurable at runtime,
(2) getNewProperties() to return the new RaftProperties to be reconfigured to, and
(3) Reconfigurable.reconfigureProperty(String, String) to change individual properties.| 限定符 | 构造器和说明 |
|---|---|
protected |
ReconfigurationBase(String name,
RaftProperties properties)
Construct a ReconfigurableBase with the
RaftProperties |
| 限定符和类型 | 方法和说明 |
|---|---|
static Collection<ReconfigurationStatus.PropertyChange> |
getChangedProperties(RaftProperties newProperties,
RaftProperties oldProperties) |
protected abstract RaftProperties |
getNewProperties() |
RaftProperties |
getProperties() |
ReconfigurationStatus |
getReconfigurationStatus() |
void |
shutdown() |
void |
startReconfiguration()
Start a reconfiguration task to reload raft property in background.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReconfigurableProperties, isPropertyReconfigurable, reconfigurePropertyprotected ReconfigurationBase(String name, RaftProperties properties)
RaftPropertiesproperties - raft properties.public static Collection<ReconfigurationStatus.PropertyChange> getChangedProperties(RaftProperties newProperties, RaftProperties oldProperties)
public RaftProperties getProperties()
getProperties 在接口中 ReconfigurableRaftProperties to be reconfigured.protected abstract RaftProperties getNewProperties()
RaftProperties to be reconfigured to.public void startReconfiguration()
throws IOException
IOException - raised on errors performing I/O.public ReconfigurationStatus getReconfigurationStatus()
public void shutdown()
throws InterruptedException
Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.