com.atomikos.persistence.imp
Class SystemLogImage

java.lang.Object
  extended by com.atomikos.persistence.imp.SystemLogImage
All Implemented Interfaces:
DataSerializable, Recoverable, Identifiable, Externalizable, Serializable

public class SystemLogImage
extends Object
implements Recoverable, Externalizable, DataSerializable

See Also:
Serialized Form

Field Summary
protected  boolean forgettable_
           
protected  Recoverable recoverable_
           
 
Constructor Summary
SystemLogImage()
           
SystemLogImage(Recoverable recoverable, boolean forgettable)
           
 
Method Summary
 Object getId()
           
 ObjectImage getObjectImage()
          Get the recoverable.
 Recoverable getRecoverable()
           
 boolean isForgettable()
          Test if an image is forgettable.
 void readData(DataInput in)
           
 void readExternal(ObjectInput in)
           
 void writeData(DataOutput out)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recoverable_

protected Recoverable recoverable_

forgettable_

protected boolean forgettable_
Constructor Detail

SystemLogImage

public SystemLogImage()

SystemLogImage

public SystemLogImage(Recoverable recoverable,
                      boolean forgettable)
Method Detail

getId

public Object getId()
Specified by:
getId in interface Identifiable

isForgettable

public boolean isForgettable()
Test if an image is forgettable. Needed in case of sequential logs, to write a termination image long after an image was flushed.


getObjectImage

public ObjectImage getObjectImage()
Get the recoverable. Needed to return the right implementation class to the client!

Specified by:
getObjectImage in interface Recoverable
Returns:
Recoverable The wrapped recoverable.

getRecoverable

public Recoverable getRecoverable()

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

writeData

public void writeData(DataOutput out)
               throws IOException
Specified by:
writeData in interface DataSerializable
Throws:
IOException

readData

public void readData(DataInput in)
              throws IOException
Specified by:
readData in interface DataSerializable
Throws:
IOException


Copyright © 2014. All Rights Reserved.