com.atomikos.persistence.imp
Class AbstractLogStream
java.lang.Object
com.atomikos.persistence.imp.AbstractLogStream
- Direct Known Subclasses:
- FileLogStream, FileLogStream
public class AbstractLogStream
- extends Object
LOGGER
protected static final Logger LOGGER
output_
protected FileOutputStream output_
simulateCrash_
protected boolean simulateCrash_
corrupt_
protected boolean corrupt_
file_
protected VersionedFile file_
AbstractLogStream
public AbstractLogStream(String baseDir,
String baseName)
closeOutput
protected void closeOutput()
throws LogException
- Throws:
LogException
setCrashMode
public void setCrashMode()
- Makes write checkpoint crash before old file delete.
For debugging only.
close
public void close()
throws LogException
- Throws:
LogException
finalize
public void finalize()
throws Throwable
- Overrides:
finalize in class Object
- Throws:
Throwable
getSize
public long getSize()
throws LogException
- Throws:
LogException
Copyright © 2014. All Rights Reserved.