public class HOWLLog extends Object implements org.apache.geronimo.transaction.manager.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,
org.apache.geronimo.transaction.manager.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 org.apache.geronimo.transaction.manager.TransactionBranchInfo> branches) |
Collection<org.apache.geronimo.transaction.manager.Recovery.XidBranchesPair> |
recover(org.apache.geronimo.transaction.manager.XidFactory xidFactory) |
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, boolean flushPartialBuffers, org.apache.geronimo.transaction.manager.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 org.apache.geronimo.transaction.manager.LogException
begin in interface org.apache.geronimo.transaction.manager.TransactionLogorg.apache.geronimo.transaction.manager.LogExceptionpublic Object prepare(Xid xid, List<? extends org.apache.geronimo.transaction.manager.TransactionBranchInfo> branches) throws org.apache.geronimo.transaction.manager.LogException
prepare in interface org.apache.geronimo.transaction.manager.TransactionLogorg.apache.geronimo.transaction.manager.LogExceptionpublic void commit(Xid xid, Object logMark) throws org.apache.geronimo.transaction.manager.LogException
commit in interface org.apache.geronimo.transaction.manager.TransactionLogorg.apache.geronimo.transaction.manager.LogExceptionpublic void rollback(Xid xid, Object logMark) throws org.apache.geronimo.transaction.manager.LogException
rollback in interface org.apache.geronimo.transaction.manager.TransactionLogorg.apache.geronimo.transaction.manager.LogExceptionpublic Collection<org.apache.geronimo.transaction.manager.Recovery.XidBranchesPair> recover(org.apache.geronimo.transaction.manager.XidFactory xidFactory) throws org.apache.geronimo.transaction.manager.LogException
recover in interface org.apache.geronimo.transaction.manager.TransactionLogorg.apache.geronimo.transaction.manager.LogExceptionpublic String getXMLStats()
getXMLStats in interface org.apache.geronimo.transaction.manager.TransactionLogpublic int getAverageForceTime()
getAverageForceTime in interface org.apache.geronimo.transaction.manager.TransactionLogpublic int getAverageBytesPerForce()
getAverageBytesPerForce in interface org.apache.geronimo.transaction.manager.TransactionLogCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.