com.sleepycat.je.log
Class FSyncManager.FSyncGroup
java.lang.Object
com.sleepycat.je.log.FSyncManager.FSyncGroup
- Enclosing class:
- FSyncManager
static class FSyncManager.FSyncGroup
- extends Object
Method Summary |
(package private) boolean |
getLeader()
|
(package private) int |
waitForFsync()
Wait for either a turn to execute a fsync, or to find out that a
fsync was done on your behalf. |
(package private) void |
wakeupAll()
|
(package private) void |
wakeupOne()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DO_TIMEOUT_FSYNC
static int DO_TIMEOUT_FSYNC
DO_LEADER_FSYNC
static int DO_LEADER_FSYNC
NO_FSYNC_NEEDED
static int NO_FSYNC_NEEDED
FSyncManager.FSyncGroup
FSyncManager.FSyncGroup(long fsyncTimeout,
EnvironmentImpl envImpl)
getLeader
boolean getLeader()
waitForFsync
int waitForFsync()
throws RunRecoveryException
- Wait for either a turn to execute a fsync, or to find out that a
fsync was done on your behalf.
- Returns:
- true if the fsync wasn't done, and this thread needs to
execute a fsync when it wakes up. This may be true because it's the
leader of its group, or because the wait timed out.
- Throws:
RunRecoveryException
wakeupAll
void wakeupAll()
wakeupOne
void wakeupOne()
Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.