com.atomikos.icatch.imp
Class CoordinatorLogImage

java.lang.Object
  extended by com.atomikos.icatch.imp.CoordinatorLogImage
All Implemented Interfaces:
DataSerializable, ObjectImage, Identifiable, Externalizable, Serializable

public class CoordinatorLogImage
extends Object
implements ObjectImage, DataSerializable

A log image for CoordinatorImp instances.

See Also:
Serialized Form

Constructor Summary
CoordinatorLogImage()
          Required by Externalizable interface.
CoordinatorLogImage(String root, TxState state, Vector<Participant> participants, RecoveryCoordinator coordinator, boolean commit_on_heuristic, long maxinquiries, com.atomikos.icatch.imp.CoordinatorStateHandler stateHandler, boolean single_threaded_2pc)
          Constructor for non-activities.
CoordinatorLogImage(String root, TxState state, Vector<Participant> participants, RecoveryCoordinator coordinator, boolean commit_on_heuristic, long maxinquiries, com.atomikos.icatch.imp.CoordinatorStateHandler stateHandler, int localSiblingCount, boolean checkSiblings, boolean single_threaded_2pc)
          Constructor for activities in active state.
 
Method Summary
 Object getId()
           
 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
 

Constructor Detail

CoordinatorLogImage

public CoordinatorLogImage()
Required by Externalizable interface.


CoordinatorLogImage

public CoordinatorLogImage(String root,
                           TxState state,
                           Vector<Participant> participants,
                           RecoveryCoordinator coordinator,
                           boolean commit_on_heuristic,
                           long maxinquiries,
                           com.atomikos.icatch.imp.CoordinatorStateHandler stateHandler,
                           boolean single_threaded_2pc)
Constructor for non-activities.

Parameters:
root -
state -
participants -
coordinator -
commit_on_heuristic -
maxinquiries -
stateHandler -
single_threaded_2pc -

CoordinatorLogImage

public CoordinatorLogImage(String root,
                           TxState state,
                           Vector<Participant> participants,
                           RecoveryCoordinator coordinator,
                           boolean commit_on_heuristic,
                           long maxinquiries,
                           com.atomikos.icatch.imp.CoordinatorStateHandler stateHandler,
                           int localSiblingCount,
                           boolean checkSiblings,
                           boolean single_threaded_2pc)
Constructor for activities in active state.

Parameters:
root -
state -
participants -
coordinator -
commit_on_heuristic -
maxinquiries -
stateHandler -
localSiblingCount -
checkSiblings -
single_threaded_2pc -
Method Detail

getId

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

writeExternal

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

readExternal

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

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.

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.