public class HOWLLog extends Object implements TransactionLog
| Constructor and Description |
|---|
HOWLLog(String bufferClassName,
int bufferSize,
boolean checksumEnabled,
boolean adler32Checksum,
int flushSleepTimeMilliseconds,
String logFileDir,
String logFileExt,
String logFileName,
int maxBlocksPerFile,
int maxBuffers,
int maxLogFiles,
int minBuffers,
int threadsWaitingForceThreshold,
boolean flushPartialBuffers,
XidFactory xidFactory,
File serverBaseDir) |
HOWLLog(String bufferClassName,
int bufferSize,
boolean checksumEnabled,
boolean adler32Checksum,
int flushSleepTimeMilliseconds,
String logFileDir,
String logFileExt,
String logFileName,
int maxBlocksPerFile,
int maxBuffers,
int maxLogFiles,
int minBuffers,
int threadsWaitingForceThreshold,
XidFactory xidFactory,
File serverBaseDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(Xid xid) |
void |
commit(Xid xid,
Object logMark) |
void |
doFail() |
void |
doStart() |
void |
doStop() |
int |
getAverageBytesPerForce() |
int |
getAverageForceTime() |
String |
getBufferClassName() |
int |
getBufferSizeKBytes() |
int |
getFlushSleepTimeMilliseconds() |
String |
getLogFileDir() |
String |
getLogFileExt() |
String |
getLogFileName() |
int |
getMaxBlocksPerFile() |
int |
getMaxBuffers() |
int |
getMaxLogFiles() |
int |
getMinBuffers() |
int |
getThreadsWaitingForceThreshold() |
String |
getXMLStats() |
boolean |
isAdler32ChecksumEnabled() |
boolean |
isChecksumEnabled() |
boolean |
isFlushPartialBuffers() |
Object |
prepare(Xid xid,
List<? extends TransactionBranchInfo> branches)
log prepare for the global xid xid and the list of TransactionBranchInfo branches
|
Collection<Recovery.XidBranchesPair> |
recover(XidFactory xidFactory)
Recovers the log, returning a map of (top level) xid to List of TransactionBranchInfo for the branches.
|
void |
rollback(Xid xid,
Object logMark) |
void |
setAdler32Checksum(boolean checksumOption) |
void |
setBufferClassName(String bufferClassName) |
void |
setBufferSizeKBytes(int bufferSize) |
void |
setChecksumEnabled(boolean checksumOption) |
void |
setFlushPartialBuffers(boolean flushPartialBuffers) |
void |
setFlushSleepTimeMilliseconds(int flushSleepTime) |
void |
setLogFileDir(String logDirName) |
void |
setLogFileExt(String logFileExt) |
void |
setLogFileName(String logFileName) |
void |
setMaxBlocksPerFile(int maxBlocksPerFile) |
void |
setMaxBuffers(int maxBuffers) |
void |
setMaxLogFiles(int maxLogFiles) |
void |
setMinBuffers(int minBuffers) |
void |
setThreadsWaitingForceThreshold(int threadsWaitingForceThreshold) |
public HOWLLog(String bufferClassName, int bufferSize, boolean checksumEnabled, boolean adler32Checksum, int flushSleepTimeMilliseconds, String logFileDir, String logFileExt, String logFileName, int maxBlocksPerFile, int maxBuffers, int maxLogFiles, int minBuffers, int threadsWaitingForceThreshold, XidFactory xidFactory, File serverBaseDir) throws IOException, org.objectweb.howl.log.LogConfigurationException
IOExceptionorg.objectweb.howl.log.LogConfigurationExceptionpublic HOWLLog(String bufferClassName, int bufferSize, boolean checksumEnabled, boolean adler32Checksum, int flushSleepTimeMilliseconds, String logFileDir, String logFileExt, String logFileName, int maxBlocksPerFile, int maxBuffers, int maxLogFiles, int minBuffers, int threadsWaitingForceThreshold, boolean flushPartialBuffers, XidFactory xidFactory, File serverBaseDir) throws IOException, org.objectweb.howl.log.LogConfigurationException
IOExceptionorg.objectweb.howl.log.LogConfigurationExceptionpublic String getLogFileDir()
public void setLogFileDir(String logDirName)
public String getLogFileExt()
public void setLogFileExt(String logFileExt)
public String getLogFileName()
public void setLogFileName(String logFileName)
public boolean isChecksumEnabled()
public void setChecksumEnabled(boolean checksumOption)
public boolean isAdler32ChecksumEnabled()
public void setAdler32Checksum(boolean checksumOption)
public int getBufferSizeKBytes()
public void setBufferSizeKBytes(int bufferSize)
throws org.objectweb.howl.log.LogConfigurationException
org.objectweb.howl.log.LogConfigurationExceptionpublic String getBufferClassName()
public void setBufferClassName(String bufferClassName)
public int getMaxBuffers()
public void setMaxBuffers(int maxBuffers)
throws org.objectweb.howl.log.LogConfigurationException
org.objectweb.howl.log.LogConfigurationExceptionpublic int getMinBuffers()
public void setMinBuffers(int minBuffers)
throws org.objectweb.howl.log.LogConfigurationException
org.objectweb.howl.log.LogConfigurationExceptionpublic int getFlushSleepTimeMilliseconds()
public void setFlushSleepTimeMilliseconds(int flushSleepTime)
public int getThreadsWaitingForceThreshold()
public void setThreadsWaitingForceThreshold(int threadsWaitingForceThreshold)
public int getMaxBlocksPerFile()
public void setMaxBlocksPerFile(int maxBlocksPerFile)
public int getMaxLogFiles()
public void setMaxLogFiles(int maxLogFiles)
public boolean isFlushPartialBuffers()
public void setFlushPartialBuffers(boolean flushPartialBuffers)
public void doFail()
public void begin(Xid xid) throws LogException
begin in interface TransactionLogLogExceptionpublic Object prepare(Xid xid, List<? extends TransactionBranchInfo> branches) throws LogException
TransactionLogprepare in interface TransactionLogxid - global xid for the transactionsbranches - List of TransactionBranchInfoLogException - on errorpublic void commit(Xid xid, Object logMark) throws LogException
commit in interface TransactionLogLogExceptionpublic void rollback(Xid xid, Object logMark) throws LogException
rollback in interface TransactionLogLogExceptionpublic Collection<Recovery.XidBranchesPair> recover(XidFactory xidFactory) throws LogException
TransactionLogrecover in interface TransactionLogxidFactory - Xid factoryLogException - on errorpublic String getXMLStats()
getXMLStats in interface TransactionLogpublic int getAverageForceTime()
getAverageForceTime in interface TransactionLogpublic int getAverageBytesPerForce()
getAverageBytesPerForce in interface TransactionLogCopyright © 2010 - 2020 Adobe. All Rights Reserved