| Package | Description |
|---|---|
| com.sleepycat.je.rep |
Berkeley DB Java Edition High Availability (JE HA) enables replication of JE
environments.
|
| com.sleepycat.je.rep.arbiter.impl |
INTERNAL: Implementation classes for the arbiter node.
|
| com.sleepycat.je.rep.arbitration |
INTERNAL: Manages the designated primary of a two-node group -- this is
NOT the
arbiter node. |
| com.sleepycat.je.rep.elections |
INTERNAL: Elections of the master node among the nodes in a group.
|
| com.sleepycat.je.rep.impl |
INTERNAL: Top level HA implementation classes.
|
| com.sleepycat.je.rep.impl.networkRestore |
INTERNAL: Protocol for
network restore. |
| com.sleepycat.je.rep.impl.node |
INTERNAL: Feeder and Replica node implementations.
|
| com.sleepycat.je.rep.monitor |
BDB JE HA support for applications that need to track the composition of a
replication group, in order to do tasks such as load balancing and
request routing.
|
| com.sleepycat.je.rep.stream |
INTERNAL: Feeding and syncup (init) of rep stream from master node to
other node types (replicas, etc).
|
| com.sleepycat.je.rep.txn |
INTERNAL: HA Txn/Locker subclasses for enforcing consistency and durability
constraints.
|
| com.sleepycat.je.rep.util.ldiff |
INTERNAL: LDiff debugging utility for comparing databases on different
nodes in a group.
|
| com.sleepycat.je.rep.utilint |
INTERNAL: Command line and programmatic utilities.
|
| Modifier and Type | Method and Description |
|---|---|
static RepImpl |
RepInternal.getNonNullRepImpl(ReplicatedEnvironment rep)
Proxy to ReplicatedEnvironment.getNonNullEnvImpl
This method is called to access the underlying RepImpl when an env is
expected to be open, to guard against NPE when the env has been closed.
|
RepImpl |
InsufficientLogException.getRepImpl()
For internal use only.
|
static RepImpl |
RepInternal.getRepImpl(ReplicatedEnvironment rep)
Proxy to ReplicatedEnvironment.getMaybeNullRepImpl.
|
| Modifier and Type | Method and Description |
|---|---|
static ReplicatedEnvironmentStats |
RepInternal.makeReplicatedEnvironmentStats(RepImpl repImpl,
StatsConfig config) |
| Constructor and Description |
|---|
GroupShutdownException(Logger logger,
RepImpl repImpl,
String masterNodeName,
VLSN shutdownVLSN,
long shutdownTimeMs)
For internal use only.
|
InsufficientLogException(RepImpl repImpl,
VLSN refreshVLSN) |
ReplicatedEnvironment(File envHome,
ReplicationConfig repConfig,
EnvironmentConfig envConfig,
ReplicaConsistencyPolicy consistencyPolicy,
QuorumPolicy initialElectionPolicy,
boolean joinGroup,
RepImpl envImplParam)
For internal use only.
|
RepStatManager(RepImpl env) |
RollbackException(RepImpl repImpl,
VLSN matchpointVLSN,
MatchpointSearchResults searchResults)
For internal use only.
|
RollbackProhibitedException(RepImpl repImpl,
int rollbackTxnLimit,
boolean rollbackDisabled,
VLSN matchpointVLSN,
MatchpointSearchResults searchResults)
For internal use only.
|
| Constructor and Description |
|---|
ArbiterImpl(File arbiterHome,
RepImpl repImpl)
The Arbiter implementation.
|
ArbiterOutputThread(RepImpl repImpl,
BlockingQueue<Long> outputQueue,
Protocol protocol,
DataChannel replicaFeederChannel,
com.sleepycat.je.rep.arbiter.impl.ArbiterVLSNTracker vlsnTracker) |
| Constructor and Description |
|---|
Arbiter(RepImpl repImpl)
Examine environment configuration and rep group membership to figure out
which arbitration options are in operation for this HA group.
|
| Modifier and Type | Method and Description |
|---|---|
RepImpl |
Elections.getRepImpl() |
RepImpl |
ElectionsConfig.getRepImpl()
Gets the RepImpl.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Utils.checkFutures(Utils.FutureTrackingCompService<TextProtocol.MessageExchange> compService,
long futureTimeout,
TimeUnit unit,
Logger logger,
RepImpl envImpl,
Formatter formatter)
Utility to wait for completion of futures in unit tests
|
static MasterValue |
Learner.findMaster(Protocol protocol,
Set<InetSocketAddress> learnerSockets,
Logger logger,
RepImpl repImpl,
Formatter formatter)
Returns the socket address for the current master, or null if one
could not be determined from the available set of learners.
|
static void |
Learner.informLearners(Set<InetSocketAddress> learners,
Proposer.WinningProposal winningProposal,
Protocol protocol,
ExecutorService threadPool,
Logger logger,
RepImpl repImpl,
Formatter formatter)
A utility method used to broadcast the results of an election to
Listeners.
|
| Constructor and Description |
|---|
Learner(RepImpl repImpl,
Protocol protocol,
ServiceDispatcher serviceDispatcher) |
Protocol(Proposer.ProposalParser proposalParser,
Protocol.ValueParser valueParser,
String groupName,
NameIdPair nameIdPair,
RepImpl repImpl,
DataChannelFactory channelFactory)
Creates an instance of the Protocol.
|
WithFutureExceptionHandler(Utils.FutureTrackingCompService<T> compService,
long completionTimeout,
TimeUnit unit,
Logger logger,
RepImpl envImpl,
Formatter formatter)
Generate a handler for processing future results.
|
| Modifier and Type | Field and Description |
|---|---|
protected RepImpl |
TextProtocol.repImpl
The rep impl using this protocol.
|
| Modifier and Type | Method and Description |
|---|---|
static RepGroupImpl |
RepGroupDB.getGroup(RepImpl rImpl,
String groupName)
Returns all the members that are currently part of the replication
group, using NO_CONSISTENCY.
|
protected void |
TextProtocol.setTimeouts(RepImpl repImpl,
DurationConfigParam openTimeoutConfig,
DurationConfigParam readTimeoutConfig)
Set the network timeouts associated with uses of this protocol instance.
|
| Constructor and Description |
|---|
BinaryNodeStateProtocol(NameIdPair nameIdPair,
RepImpl repImpl) |
NodeStateProtocol(String groupName,
NameIdPair nameIdPair,
RepImpl repImpl,
DataChannelFactory channelFactory) |
RepGroupDB(RepImpl repImpl)
Create an instance.
|
RepGroupProtocol(String groupName,
NameIdPair nameIdPair,
RepImpl repImpl,
DataChannelFactory channelFactory)
Creates an instance of this class using the current protocol version.
|
TextProtocol(String version,
String groupName,
NameIdPair nameIdPair,
RepImpl repImpl,
DataChannelFactory channelFactory)
Creates an instance of the Protocol.
|
| Constructor and Description |
|---|
NetworkBackup(InetSocketAddress serverSocket,
int receiveBufferSize,
File envDir,
NameIdPair clientNameId,
boolean retainLogfiles,
int serverLoadThreshold,
VLSN minVLSN,
RepImpl repImpl,
FileManager fileManager,
LogManager logManager,
DataChannelFactory channelFactory,
Properties exceptionProperties)
Creates a configured backup instance which when executed will backup the
files to the environment directory.
|
| Modifier and Type | Field and Description |
|---|---|
protected RepImpl |
ReplicaOutputThreadBase.repImpl |
| Modifier and Type | Method and Description |
|---|---|
RepImpl |
RepNode.getRepImpl() |
| Constructor and Description |
|---|
DurabilityQuorum(RepImpl repImpl) |
ElectionQuorum(RepImpl repImpl) |
NodeState(NameIdPair nameIdPair,
RepImpl repImpl) |
Replay(RepImpl repImpl,
NameIdPair nameIdPair) |
ReplicaOutputThreadBase(RepImpl repImpl,
BlockingQueue<Long> outputQueue,
Protocol protocol,
DataChannel replicaFeederChannel) |
RepNode(RepImpl repImpl,
Replay replay,
NodeState nodeState) |
| Constructor and Description |
|---|
Protocol(String groupName,
NameIdPair nameIdPair,
RepImpl repImpl,
DataChannelFactory channelFactory)
Creates an instance of this class using the current protocol version.
|
| Modifier and Type | Field and Description |
|---|---|
protected RepImpl |
BaseProtocol.repImpl |
| Modifier and Type | Method and Description |
|---|---|
RepImpl |
ReplicaFeederHandshakeConfig.getRepImpl()
Gets the RepImpl.
|
| Modifier and Type | Method and Description |
|---|---|
OutputWireRecord |
FeederFilter.execute(OutputWireRecord record,
RepImpl repImpl)
The execute method that invoked before a record is sent to the replica.
|
static Protocol |
Protocol.get(RepImpl repImpl,
NameIdPair nameIdPair,
RepUtils.Clock clock,
int protocolVersion,
int maxProtocolVersion,
int groupFormatVersion) |
static Protocol |
Protocol.get(RepImpl repImpl,
NameIdPair nameIdPair,
RepUtils.Clock clock,
int protocolVersion,
int maxProtocolVersion,
int streamLogVersion,
int groupFormatVersion) |
static DatabaseId |
FeederReplicaSyncup.getDBId(RepImpl repImpl,
String dbName)
Returns db id for given database
|
| Constructor and Description |
|---|
BaseProtocol(RepImpl repImpl,
NameIdPair nameIdPair,
int protocolVersion,
int maxProtocolVersion,
int streamLogVersion,
BinaryProtocol.MessageOp[] protocolOps)
Returns a BaseProtocol object configured that implements the specified
(supported) protocol version, with enforced message operation
code validity check.
|
FeederReader(RepImpl envImpl,
VLSNIndex vlsnIndex,
long startLsn,
int readBufferSize) |
FeederTxns(RepImpl repImpl) |
MasterFeederSource(RepImpl envImpl,
VLSNIndex vlsnIndex,
NameIdPair replicaNameIdPair,
VLSN startVLSN) |
SubscriberFeederSyncup(NamedChannel namedChannel,
Protocol protocol,
FeederFilter filter,
RepImpl repImpl,
BaseProtocol.EntryRequestType type,
String partGenDBName,
Logger logger) |
| Constructor and Description |
|---|
MasterThreadLocker(RepImpl repImpl) |
ReplicaThreadLocker(RepImpl repImpl) |
| Constructor and Description |
|---|
LDiffService(ServiceDispatcher dispatcher,
RepImpl repImpl) |
| Constructor and Description |
|---|
NamedChannelWithTimeout(RepImpl repImpl,
Logger logger,
ChannelTimeoutTask channelTimeoutTask,
DataChannel channel,
int timeoutMs) |
ServiceDispatcher(InetSocketAddress socketAddress,
RepImpl repImpl,
DataChannelFactory channelFactory)
Create a ServiceDispatcher listening on a specific socket for service
requests.
|
Copyright © 2024. All rights reserved.