com.atomikos.icatch.imp
Class ReadOnlyParticipant

java.lang.Object
  extended by com.atomikos.icatch.imp.ReadOnlyParticipant
All Implemented Interfaces:
DataSerializable, Participant, Serializable

public class ReadOnlyParticipant
extends Object
implements Participant, DataSerializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.atomikos.icatch.Participant
READ_ONLY
 
Constructor Summary
ReadOnlyParticipant()
           
ReadOnlyParticipant(CoordinatorImp coordinator)
           
 
Method Summary
 HeuristicMessage[] commit(boolean onePhase)
           
 boolean equals(Object o)
           
 void forget()
           
 HeuristicMessage[] getHeuristicMessages()
           
 String getURI()
           
 int hashCode()
           
 int prepare()
           
 void readData(DataInput in)
           
 boolean recover()
           
 HeuristicMessage[] rollback()
           
 void setCascadeList(Dictionary allParticipants)
           
 void setGlobalSiblingCount(int count)
           
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadOnlyParticipant

public ReadOnlyParticipant()

ReadOnlyParticipant

public ReadOnlyParticipant(CoordinatorImp coordinator)
Method Detail

recover

public boolean recover()
                throws SysException
Specified by:
recover in interface Participant
Throws:
SysException

getURI

public String getURI()
Specified by:
getURI in interface Participant

setCascadeList

public void setCascadeList(Dictionary allParticipants)
                    throws SysException
Specified by:
setCascadeList in interface Participant
Throws:
SysException

setGlobalSiblingCount

public void setGlobalSiblingCount(int count)
Specified by:
setGlobalSiblingCount in interface Participant

prepare

public int prepare()
            throws RollbackException,
                   HeurHazardException,
                   HeurMixedException,
                   SysException
Specified by:
prepare in interface Participant
Throws:
RollbackException
HeurHazardException
HeurMixedException
SysException

commit

public HeuristicMessage[] commit(boolean onePhase)
                          throws HeurRollbackException,
                                 HeurHazardException,
                                 HeurMixedException,
                                 RollbackException,
                                 SysException
Specified by:
commit in interface Participant
Throws:
HeurRollbackException
HeurHazardException
HeurMixedException
RollbackException
SysException

rollback

public HeuristicMessage[] rollback()
                            throws HeurCommitException,
                                   HeurMixedException,
                                   HeurHazardException,
                                   SysException
Specified by:
rollback in interface Participant
Throws:
HeurCommitException
HeurMixedException
HeurHazardException
SysException

forget

public void forget()
Specified by:
forget in interface Participant

getHeuristicMessages

public HeuristicMessage[] getHeuristicMessages()
Specified by:
getHeuristicMessages in interface Participant

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

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.