|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.transaction.xalog.AbstractXALogManager
com.caucho.transaction.xalog.XALogManager
public class XALogManager
Implements a single log stream. Each log stream has two associated files in order to switch at the end of the file.
| Constructor Summary | |
|---|---|
XALogManager()
Creates the log. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the log manager. |
void |
flush()
Returns a stream for a new transaction. |
XALogStream |
getStream()
Returns a stream for a new transaction. |
boolean |
hasCommittedXid(XidImpl xid)
True if the xid is an already-committed xid |
void |
init()
Initialize the log manager. |
void |
run()
Updates the waiting flush. |
void |
setMaxFileSize(Bytes size)
Sets the max file size. |
void |
setPath(Path path)
Adds a log path. |
void |
start()
Starts the log manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XALogManager()
| Method Detail |
|---|
public void setMaxFileSize(Bytes size)
public void setPath(Path path)
throws java.io.IOException
setPath in class AbstractXALogManagerjava.io.IOExceptionpublic void init()
init in class AbstractXALogManager
public void start()
throws java.io.IOException
start in class AbstractXALogManagerjava.io.IOExceptionpublic boolean hasCommittedXid(XidImpl xid)
hasCommittedXid in class AbstractXALogManagerpublic XALogStream getStream()
getStream in class AbstractXALogManagerpublic void flush()
flush in class AbstractXALogManagerpublic void run()
run in interface ThreadTaskrun in interface java.lang.Runnablepublic void close()
close in class AbstractXALogManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||