org.apache.aries.transaction
Class HOWLLog
java.lang.Object
org.apache.aries.transaction.HOWLLog
- All Implemented Interfaces:
- org.apache.geronimo.transaction.manager.TransactionLog
public class HOWLLog
- extends Object
- implements org.apache.geronimo.transaction.manager.TransactionLog
- Version:
- $Rev: 912058 $ $Date: 2010-02-20 09:34:14 +0800 (Sat, 20 Feb 2010) $
Constructor Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HOWLLog
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
- Throws:
IOException
org.objectweb.howl.log.LogConfigurationException
getLogFileDir
public String getLogFileDir()
setLogFileDir
public void setLogFileDir(String logDirName)
getLogFileExt
public String getLogFileExt()
setLogFileExt
public void setLogFileExt(String logFileExt)
getLogFileName
public String getLogFileName()
setLogFileName
public void setLogFileName(String logFileName)
isChecksumEnabled
public boolean isChecksumEnabled()
setChecksumEnabled
public void setChecksumEnabled(boolean checksumOption)
isAdler32ChecksumEnabled
public boolean isAdler32ChecksumEnabled()
setAdler32Checksum
public void setAdler32Checksum(boolean checksumOption)
getBufferSizeKBytes
public int getBufferSizeKBytes()
setBufferSizeKBytes
public void setBufferSizeKBytes(int bufferSize)
throws org.objectweb.howl.log.LogConfigurationException
- Throws:
org.objectweb.howl.log.LogConfigurationException
getBufferClassName
public String getBufferClassName()
setBufferClassName
public void setBufferClassName(String bufferClassName)
getMaxBuffers
public int getMaxBuffers()
setMaxBuffers
public void setMaxBuffers(int maxBuffers)
throws org.objectweb.howl.log.LogConfigurationException
- Throws:
org.objectweb.howl.log.LogConfigurationException
getMinBuffers
public int getMinBuffers()
setMinBuffers
public void setMinBuffers(int minBuffers)
throws org.objectweb.howl.log.LogConfigurationException
- Throws:
org.objectweb.howl.log.LogConfigurationException
getFlushSleepTimeMilliseconds
public int getFlushSleepTimeMilliseconds()
setFlushSleepTimeMilliseconds
public void setFlushSleepTimeMilliseconds(int flushSleepTime)
getThreadsWaitingForceThreshold
public int getThreadsWaitingForceThreshold()
setThreadsWaitingForceThreshold
public void setThreadsWaitingForceThreshold(int threadsWaitingForceThreshold)
getMaxBlocksPerFile
public int getMaxBlocksPerFile()
setMaxBlocksPerFile
public void setMaxBlocksPerFile(int maxBlocksPerFile)
getMaxLogFiles
public int getMaxLogFiles()
setMaxLogFiles
public void setMaxLogFiles(int maxLogFiles)
isFlushPartialBuffers
public boolean isFlushPartialBuffers()
setFlushPartialBuffers
public void setFlushPartialBuffers(boolean flushPartialBuffers)
doStart
public void doStart()
throws Exception
- Throws:
Exception
doStop
public void doStop()
throws Exception
- Throws:
Exception
doFail
public void doFail()
begin
public void begin(Xid xid)
throws org.apache.geronimo.transaction.manager.LogException
- Specified by:
begin
in interface org.apache.geronimo.transaction.manager.TransactionLog
- Throws:
org.apache.geronimo.transaction.manager.LogException
prepare
public Object prepare(Xid xid,
List<? extends org.apache.geronimo.transaction.manager.TransactionBranchInfo> branches)
throws org.apache.geronimo.transaction.manager.LogException
- Specified by:
prepare
in interface org.apache.geronimo.transaction.manager.TransactionLog
- Throws:
org.apache.geronimo.transaction.manager.LogException
commit
public void commit(Xid xid,
Object logMark)
throws org.apache.geronimo.transaction.manager.LogException
- Specified by:
commit
in interface org.apache.geronimo.transaction.manager.TransactionLog
- Throws:
org.apache.geronimo.transaction.manager.LogException
rollback
public void rollback(Xid xid,
Object logMark)
throws org.apache.geronimo.transaction.manager.LogException
- Specified by:
rollback
in interface org.apache.geronimo.transaction.manager.TransactionLog
- Throws:
org.apache.geronimo.transaction.manager.LogException
recover
public Collection<org.apache.geronimo.transaction.manager.Recovery.XidBranchesPair> recover(org.apache.geronimo.transaction.manager.XidFactory xidFactory)
throws org.apache.geronimo.transaction.manager.LogException
- Specified by:
recover
in interface org.apache.geronimo.transaction.manager.TransactionLog
- Throws:
org.apache.geronimo.transaction.manager.LogException
getXMLStats
public String getXMLStats()
- Specified by:
getXMLStats
in interface org.apache.geronimo.transaction.manager.TransactionLog
getAverageForceTime
public int getAverageForceTime()
- Specified by:
getAverageForceTime
in interface org.apache.geronimo.transaction.manager.TransactionLog
getAverageBytesPerForce
public int getAverageBytesPerForce()
- Specified by:
getAverageBytesPerForce
in interface org.apache.geronimo.transaction.manager.TransactionLog
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.