|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.ByteArrayOutputStream
fr.dyade.aaa.util.NTransaction.LogFile
static final class NTransaction.LogFile
Field Summary | |
---|---|
(package private) int |
commitCount
Number of commit operation since starting up. |
(package private) int |
current
Current file pointer in log |
private static byte[] |
emptyUTFString
|
(package private) int |
garbageCount
Number of garbage operation since starting up. |
(package private) long |
garbageTime
Cumulated time of garbage operations since starting up. |
(package private) long |
garbageTimeOut
Maximum delay between 2 garbages. |
(package private) long |
lastGarbageTime
Date of last garbage. |
private java.io.File |
lockFile
Coherence lock file |
private static java.lang.String |
LockPathname
Coherence lock filename |
(package private) java.util.Hashtable |
log
Log of all operations already committed but not reported on disk. |
(package private) java.io.RandomAccessFile |
logFile
log file |
(package private) int |
logMemorySize
|
private Repository |
repository
|
Fields inherited from class java.io.ByteArrayOutputStream |
---|
buf, count |
Constructor Summary | |
---|---|
NTransaction.LogFile(java.io.File dir,
Repository repository)
|
Method Summary | |
---|---|
(package private) void |
commit(java.util.Hashtable ctxlog)
Reports all buffered operations in logs. |
private void |
garbage()
Reports all logged operations on disk. |
(package private) int |
getLogFileSize()
Returns the size of disk log in bytes. |
(package private) void |
stop()
|
(package private) void |
writeInt(int v)
|
(package private) void |
writeUTF(java.lang.String str)
|
Methods inherited from class java.io.ByteArrayOutputStream |
---|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo |
Methods inherited from class java.io.OutputStream |
---|
flush, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.util.Hashtable log
java.io.RandomAccessFile logFile
int current
int commitCount
int garbageCount
long garbageTime
long lastGarbageTime
long garbageTimeOut
private static final java.lang.String LockPathname
private java.io.File lockFile
private Repository repository
private static final byte[] emptyUTFString
int logMemorySize
Constructor Detail |
---|
NTransaction.LogFile(java.io.File dir, Repository repository) throws java.io.IOException
java.io.IOException
Method Detail |
---|
int getLogFileSize()
void writeUTF(java.lang.String str)
void writeInt(int v)
void commit(java.util.Hashtable ctxlog) throws java.io.IOException
java.io.IOException
private final void garbage() throws java.io.IOException
java.io.IOException
void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |