Class ForeignRecoveryContext

java.lang.Object
com.sun.xml.ws.tx.at.internal.ForeignRecoveryContext
All Implemented Interfaces:
Externalizable, Serializable

public class ForeignRecoveryContext extends Object implements Externalizable
Context that is persisted as part of tx log and used for bottom-up queries either during runtime or recovery.
See Also:
  • Constructor Details

    • ForeignRecoveryContext

      public ForeignRecoveryContext()
      For recovery, for Externalizable
  • Method Details

    • setEndpointReference

      public void setEndpointReference(jakarta.xml.ws.EndpointReference epr, Transactional.Version version)
      Sets the parent coordinator's epr as obtained from RegisterResponse
      Parameters:
      epr - EndpointReference Transactional.Version
      version - Transactional.Version
    • getXid

      public Xid getXid()
    • getEndpointReference

      public jakarta.xml.ws.EndpointReference getEndpointReference()
      Called by participant and contextworker in order to get parentreference of coordinator port
      Returns:
      EndpointReference
    • readExternal

      public void readExternal(ObjectInput in) throws ClassNotFoundException, IOException
      Reads context from ObjectInput and adds to contextmanager
      Specified by:
      readExternal in interface Externalizable
      Parameters:
      in - ObjectInput
      Throws:
      ClassNotFoundException - classNotFoundException from in.readObject()
      IOException - ioException
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Writes context to ObjectInput
      Specified by:
      writeExternal in interface Externalizable
      Parameters:
      out - ObjectInput
      Throws:
      IOException - ioException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setTxLogLocation

      public void setTxLogLocation(String logLocation)
    • getTxLogLocation

      public String getTxLogLocation()
    • setRecovered

      public void setRecovered()
    • isRecovered

      public boolean isRecovered()