| 限定符和类型 | 方法和说明 |
|---|---|
Status |
CliService.addLearners(String groupId,
Configuration conf,
List<PeerId> learners)
Add some new learners into the replicating group which consists of |conf|.
|
Status |
CliService.addPeer(String groupId,
Configuration conf,
PeerId peer)
Add a new peer into the replicating group which consists of |conf|.
|
Status |
CliService.changePeers(String groupId,
Configuration conf,
Configuration newPeers)
Gracefully change the peers of the replication group.
|
Status |
Status.copy() |
Status |
CliService.getLeader(String groupId,
Configuration conf,
PeerId leaderId)
Get the leader of the replication group.
|
Status |
CliService.learner2Follower(String groupId,
Configuration conf,
PeerId learner)
Converts the specified learner to follower of |conf|.
|
static Status |
Status.OK()
Creates a OK status instance.
|
Status |
CliService.rebalance(Set<String> balanceGroupIds,
Configuration conf,
Map<String,PeerId> balancedLeaderIds)
Balance the number of leaders.
|
Status |
RouteTable.refreshConfiguration(CliClientService cliClientService,
String groupId,
int timeoutMs) |
Status |
RouteTable.refreshLeader(CliClientService cliClientService,
String groupId,
int timeoutMs)
Blocking the thread until query_leader finishes.
|
Status |
CliService.removeLearners(String groupId,
Configuration conf,
List<PeerId> learners)
Remove some learners from the replicating group which consists of |conf|.
|
Status |
CliService.removePeer(String groupId,
Configuration conf,
PeerId peer)
Remove a peer from the replicating group which consists of |conf|.
|
Status |
CliService.resetLearners(String groupId,
Configuration conf,
List<PeerId> learners)
Update learners set in the replicating group which consists of |conf|.
|
Status |
CliService.resetPeer(String groupId,
PeerId peer,
Configuration newPeers)
Reset the peer set of the target peer.
|
Status |
Node.resetPeers(Configuration newPeers)
Reset the configuration of this node individually, without any replication
to other peers before this node becomes the leader.
|
Status |
CliService.snapshot(String groupId,
PeerId peer)
Ask the peer to dump a snapshot immediately.
|
Status |
CliService.transferLeader(String groupId,
Configuration conf,
PeerId peer)
Transfer the leader of the replication group to the target peer
|
Status |
Node.transferLeadershipTo(PeerId peer)
Try transferring leadership to |peer|.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
FSMCaller.onLeaderStop(Status status)
Called when the leader stops.
|
void |
StateMachine.onLeaderStop(Status status)
Invoked when this node steps down from the leader of the replication
group and |status| describes detailed information
|
void |
Closure.run(Status status)
Called when task is done.
|
void |
Iterator.setErrorAndRollback(long ntail,
Status st)
Invoked when some critical error occurred.
|
| 构造器和说明 |
|---|
Status(Status s) |
| 限定符和类型 | 方法和说明 |
|---|---|
Status |
SynchronizedClosure.await()
Wait for closure run
|
Status |
CatchUpClosure.getStatus() |
Status |
SynchronizedClosure.getStatus()
Get last ran status
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ReadIndexClosure.run(Status status) |
void |
SynchronizedClosure.run(Status status) |
void |
JoinableClosure.run(Status status) |
abstract void |
ReadIndexClosure.run(Status status,
long index,
byte[] reqCtx)
Called when ReadIndex can be executed.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Replicator.ReplicatorStateListener.onError(PeerId peer,
Status status)
Called when this replicator has some errors.
|
boolean |
FSMCallerImpl.onLeaderStop(Status status) |
void |
StateMachineAdapter.onLeaderStop(Status status) |
void |
FSMCallerImpl.OnErrorClosure.run(Status st) |
void |
IteratorImpl.setErrorAndRollback(long ntail,
Status st) |
void |
IteratorWrapper.setErrorAndRollback(long ntail,
Status st) |
| 限定符和类型 | 方法和说明 |
|---|---|
Status |
LeaderChangeContext.getStatus() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
LeaderChangeContext.setStatus(Status status) |
| 构造器和说明 |
|---|
LeaderChangeContext(PeerId leaderId,
long term,
Status status) |
| 限定符和类型 | 方法和说明 |
|---|---|
Status |
RaftException.getStatus() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RaftException.setStatus(Status status) |
| 构造器和说明 |
|---|
RaftException(EnumOutter.ErrorType type,
Status status) |
| 限定符和类型 | 方法和说明 |
|---|---|
default com.google.protobuf.Message |
RpcResponseFactory.newResponse(com.google.protobuf.Message parent,
Status st)
Creates a RPC response from status, return OK response
when status is null.
|
void |
RpcRequestClosure.run(Status status) |
static void |
RpcUtils.runClosureInExecutor(Executor executor,
Closure done,
Status status)
Run closure with status in specified executor
|
static Future<?> |
RpcUtils.runClosureInThread(Closure done,
Status status)
Run closure with status in thread pool.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Node |
BaseCliRequestProcessor.getNode(String groupId,
PeerId peerId,
Status st) |
| 限定符和类型 | 方法和说明 |
|---|---|
Status |
LogManager.checkConsistency()
Check log consistency, returns the status
|
| 限定符和类型 | 方法和说明 |
|---|---|
Status |
LogManagerImpl.checkConsistency() |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Snapshot
Represents a state machine snapshot.
|
class |
SnapshotCopier
Copy snapshot from the give resources.
|
class |
SnapshotReader
Snapshot reader.
|
class |
SnapshotWriter
Snapshot writer.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
LocalSnapshot
Describe the Snapshot on another machine.
|
class |
LocalSnapshotCopier
Copy another machine snapshot to local.
|
class |
LocalSnapshotReader
Snapshot reader on local file system.
|
class |
LocalSnapshotWriter
Snapshot writer to write snapshot into local file system.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Status |
Session.status()
Returns the copy job status.
|
Status |
CopySession.status() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Future<?> |
Utils.runClosureInThread(Closure done,
Status status)
Run closure with status in thread pool.
|
Copyright © 2021. All rights reserved.