com.atomikos.persistence.imp
Class StateObjectImage
java.lang.Object
com.atomikos.persistence.imp.StateObjectImage
- All Implemented Interfaces:
- DataSerializable, ObjectImage, Recoverable, Identifiable, Externalizable, Serializable
public class StateObjectImage
- extends Object
- implements Recoverable, ObjectImage, DataSerializable
An object image for reconstruction of staterecoverables through a state
recovery mgr.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
img_
protected ObjectImage img_
StateObjectImage
public StateObjectImage()
StateObjectImage
public StateObjectImage(ObjectImage image)
getId
public Object getId()
- Specified by:
getId in interface Identifiable
getObjectImage
public ObjectImage getObjectImage()
- Description copied from interface:
Recoverable
- Get an object image for this instance. Allows later reconstruction of the
instance.
- Specified by:
getObjectImage in interface Recoverable
restore
public Recoverable restore()
- Description copied from interface:
ObjectImage
- Restore an equivalent replica of the original instance. Called by
ObjectLog on recovering the object.
- Specified by:
restore in interface ObjectImage
- Returns:
- Recoverable An equivalent replica of the original.
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.