com.atomikos.persistence.imp
Class SystemLogImage
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
recoverable_
protected Recoverable recoverable_
forgettable_
protected boolean forgettable_
SystemLogImage
public SystemLogImage()
SystemLogImage
public SystemLogImage(Recoverable recoverable,
boolean forgettable)
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.