|
Berkeley DB version 4.5.20 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.db.EventType
public final class EventType
Event types.
Field Summary | |
---|---|
static EventType |
PANIC
The event is a Database panic. |
static EventType |
REP_CLIENT
The event is a replication client message, meaning that the current site is now a client in the replication group. |
static EventType |
REP_MASTER
The event is a replication master message, meaning that the current site is now the master in the replication group. |
static EventType |
REP_NEW_MASTER
The event is a replication new master message. |
Method Summary | |
---|---|
static EventType |
fromInt(int type)
Internal: this is public only so it can be called from an internal package. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EventType PANIC
Errors can occur in the Berkeley DB library where the only solution is to shut down the application and run recovery (for example, if Berkeley DB is unable to allocate heap memory). In such cases, the Berkeley DB methods will return DB_RUNRECOVERY. It is often easier to simply exit the application when such errors occur rather than gracefully return up the stack.
When event is set to DB_EVENT_PANIC, the database environment has failed. All threads of control in the database environment should exit the environment, and recovery should be run.
public static final EventType REP_CLIENT
public static final EventType REP_MASTER
public static final EventType REP_NEW_MASTER
The replication group of which this site is a member has just established a new master; the local site is not the new master.
The DB_EVENT_REP_NEWMASTER event is provided only to applications using the replication manager support.
Method Detail |
---|
public String toString()
toString
in class Object
public static EventType fromInt(int type)
type
- the internal flag value to be wrapped in an EventType object
|
Berkeley DB version 4.5.20 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |