com.atomikos.persistence.imp
Class StateObjectImage

java.lang.Object
  extended by 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

Field Summary
protected  ObjectImage img_
           
 
Constructor Summary
StateObjectImage()
           
StateObjectImage(ObjectImage image)
           
 
Method Summary
 Object getId()
           
 ObjectImage getObjectImage()
          Get an object image for this instance.
 void readData(DataInput in)
           
 void readExternal(ObjectInput in)
           
 Recoverable restore()
          Restore an equivalent replica of the original instance.
 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

img_

protected ObjectImage img_
Constructor Detail

StateObjectImage

public StateObjectImage()

StateObjectImage

public StateObjectImage(ObjectImage image)
Method Detail

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.