com.sleepycat.je.log
Class LogContext

java.lang.Object
  extended by com.sleepycat.je.log.LogContext
Direct Known Subclasses:
INLogContext

public class LogContext
extends java.lang.Object

Context parameters that apply to all logged items when multiple items are logged in one log operation. Passed to LogManager log methods and to beforeLog and afterLog methods.


Field Summary
 boolean backgroundIO
          Whether the write should be counted as background IO when throttling of background IO is configured.
 boolean flushRequired
          Whether the log buffer(s) must be written to the file system.
 boolean forceNewLogFile
          Whether a new log file must be created for containing the logged item(s).
 boolean fsyncRequired
          Whether an fsync must be performed after writing the item(s) to the log.
 DatabaseImpl nodeDb
          Database of the node(s), or null if entry is not a node.
 
Constructor Summary
LogContext()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeDb

public DatabaseImpl nodeDb
Database of the node(s), or null if entry is not a node. Used for per- database utilization tracking. Set by caller.


flushRequired

public boolean flushRequired
Whether the log buffer(s) must be written to the file system. Set by caller.


forceNewLogFile

public boolean forceNewLogFile
Whether a new log file must be created for containing the logged item(s). Set by caller.


fsyncRequired

public boolean fsyncRequired
Whether an fsync must be performed after writing the item(s) to the log. Set by caller.


backgroundIO

public boolean backgroundIO
Whether the write should be counted as background IO when throttling of background IO is configured. Set by caller.

Constructor Detail

LogContext

public LogContext()