com.atomikos.persistence.imp
Class AbstractLogStream

java.lang.Object
  extended by com.atomikos.persistence.imp.AbstractLogStream
Direct Known Subclasses:
FileLogStream, FileLogStream

public class AbstractLogStream
extends Object


Field Summary
protected  boolean corrupt_
           
protected  VersionedFile file_
           
protected static Logger LOGGER
           
protected  FileOutputStream output_
           
protected  boolean simulateCrash_
           
 
Constructor Summary
AbstractLogStream(String baseDir, String baseName)
           
 
Method Summary
 void close()
           
protected  void closeOutput()
           
 void finalize()
           
 long getSize()
           
 void setCrashMode()
          Makes write checkpoint crash before old file delete.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final Logger LOGGER

output_

protected FileOutputStream output_

simulateCrash_

protected boolean simulateCrash_

corrupt_

protected boolean corrupt_

file_

protected VersionedFile file_
Constructor Detail

AbstractLogStream

public AbstractLogStream(String baseDir,
                         String baseName)
Method Detail

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.