Package | Description |
---|---|
com.sleepycat.je |
Foundation for creating environments, databases and transactions; provides
cursor based data access.
|
com.sleepycat.je.rep |
Berkeley DB Java Edition High Availability (JE HA) enables replication of JE
environments.
|
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.util |
BDB JE High Availability command line utilities and helper classes.
|
Modifier and Type | Class and Description |
---|---|
class |
EnvironmentLockedException
Thrown by the
Environment constructor when an environment cannot be
opened for write access because another process has the same environment
open for write access. |
class |
EnvironmentNotFoundException
Thrown by the
Environment constructor when EnvironmentConfig
AllowCreate property is false (environment creation is not permitted), but
there are no log files in the environment directory. |
class |
LogWriteException
Thrown when an
IOException or other failure occurs when writing to
the JE log. |
class |
ThreadInterruptedException
Thrown when
java.lang.InterruptedException (a thread interrupt) or
java.nio.channels.ClosedChannelException (which also results from a
thread interrupt) occurs in any JE method. |
class |
VersionMismatchException
Thrown by the Environment constructor when an environment cannot be
opened because the version of the existing log is not compatible with the
version of JE that is running.
|
Modifier and Type | Method and Description |
---|---|
static EnvironmentFailureException |
EnvironmentFailureException.makeJavaErrorWrapper()
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.promote(com.sleepycat.je.dbi.EnvironmentImpl envImpl,
com.sleepycat.je.dbi.EnvironmentFailureReason reason,
String message,
Throwable cause)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedException(com.sleepycat.je.dbi.EnvironmentImpl envImpl,
Exception cause)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedException(com.sleepycat.je.dbi.EnvironmentImpl envImpl,
String message,
Exception cause)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedException(Exception cause)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedException(String message,
Exception cause)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedState()
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedState(com.sleepycat.je.dbi.EnvironmentImpl envImpl)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedState(com.sleepycat.je.dbi.EnvironmentImpl envImpl,
String message)
For internal use only.
|
static EnvironmentFailureException |
EnvironmentFailureException.unexpectedState(String message)
For internal use only.
|
EnvironmentFailureException |
EnvironmentFailureException.wrapSelf(String msg)
For internal use only.
|
EnvironmentFailureException |
ThreadInterruptedException.wrapSelf(String msg)
For internal use only.
|
EnvironmentFailureException |
EnvironmentNotFoundException.wrapSelf(String msg)
For internal use only.
|
EnvironmentFailureException |
LogWriteException.wrapSelf(String msg)
For internal use only.
|
EnvironmentFailureException |
VersionMismatchException.wrapSelf(String msg)
For internal use only.
|
EnvironmentFailureException |
EnvironmentLockedException.wrapSelf(String msg)
For internal use only.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Environment.checkEnv()
For internal use only.
|
long |
Transaction.getLockTimeout(TimeUnit unit)
Returns the lock request timeout value for the transaction.
|
long |
Transaction.getTxnTimeout(TimeUnit unit)
Returns the timeout value for the transaction lifetime.
|
Constructor and Description |
---|
EnvironmentFailureException(String message,
EnvironmentFailureException cause)
For internal use only.
|
Modifier and Type | Class and Description |
---|---|
class |
GroupShutdownException
Thrown when an attempt is made to access an environment that was
shutdown by the Master as a result of a call to
ReplicatedEnvironment.shutdownGroup(long, TimeUnit) . |
class |
InsufficientLogException
This exception indicates that the log files constituting the Environment are
insufficient and cannot be used as the basis for continuing with the
replication stream provided by the current master.
|
class |
MasterReplicaTransitionException
Deprecated.
as of JE 5.0.88 because the environment no longer needs to
restart when transitioning from master to replica.
|
class |
RestartRequiredException
RestartRequiredException serves as the base class for all exceptions which
makes it impossible for HA to proceed without some form of corrective action
on the part of the user, followed by a restart of the application.
|
class |
RollbackException
This asynchronous exception indicates that a new master has been selected,
this
Replica 's log is ahead of the current Master ,
and in this case, the Replica was unable to rollback without a
recovery. |
class |
RollbackProhibitedException
This exception may be thrown by a Replica during the
replication stream sync-up phase of startup.
|
Modifier and Type | Method and Description |
---|---|
EnvironmentFailureException |
InsufficientLogException.wrapSelf(String msg)
For internal use only.
|
EnvironmentFailureException |
MasterReplicaTransitionException.wrapSelf(String msg)
Deprecated.
|
abstract EnvironmentFailureException |
RestartRequiredException.wrapSelf(String msg)
For internal use only.
|
Modifier and Type | Method and Description |
---|---|
void |
NetworkRestore.execute(InsufficientLogException logException,
NetworkRestoreConfig config)
Restores the log files from one of the members of the replication group.
|
Modifier and Type | Method and Description |
---|---|
ReplicationNode |
Monitor.register()
Registers the monitor with the group so that it can be kept informed
of the outcome of elections and group membership changes.
|
Modifier and Type | Method and Description |
---|---|
void |
ReplicationGroupAdmin.deleteMember(String nodeName) |
ReplicationNode |
ReplicationGroupAdmin.ensureMonitor(com.sleepycat.je.rep.impl.RepNodeImpl monitor) |
ReplicationGroup |
ReplicationGroupAdmin.getGroup()
Returns the current composition of the group from the Master.
|
String |
ReplicationGroupAdmin.getMasterNodeName()
Returns the node name associated with the master
|
void |
ReplicationGroupAdmin.removeMember(String nodeName)
Removes this node from the group, so that it is no longer a member of
the group.
|
void |
ReplicationGroupAdmin.updateAddress(String nodeName,
String newHostName,
int newPort)
Update the network address for a specified member of the replication
group.
|
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.