com.sun.xml.ws.tx.at.internal
Class ForeignRecoveryContext

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

public class ForeignRecoveryContext
extends java.lang.Object
implements java.io.Externalizable

Context that is persisted as part of tx log and used for bottom-up queries either during runtime or recovery.

See Also:
Serialized Form

Constructor Summary
ForeignRecoveryContext()
          For recovery, for Externalizable
 
Method Summary
 javax.xml.ws.EndpointReference getEndpointReference()
          Called by participant and contextworker in order to get parentreference of coordinator port
 java.lang.String getTxLogLocation()
           
 javax.transaction.xa.Xid getXid()
           
 boolean isRecovered()
           
 void readExternal(java.io.ObjectInput in)
          Reads context from ObjectInput and adds to contextmanager
 void setEndpointReference(javax.xml.ws.EndpointReference epr, Transactional.Version version)
          Sets the parent coordinator's epr as obtained from RegisterResponse
 void setRecovered()
           
 void setTxLogLocation(java.lang.String logLocation)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
          Writes context to ObjectInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForeignRecoveryContext

public ForeignRecoveryContext()
For recovery, for Externalizable

Method Detail

setEndpointReference

public void setEndpointReference(javax.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 javax.transaction.xa.Xid getXid()

getEndpointReference

public javax.xml.ws.EndpointReference getEndpointReference()
Called by participant and contextworker in order to get parentreference of coordinator port

Returns:
EndpointReference

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.lang.ClassNotFoundException,
                         java.io.IOException
Reads context from ObjectInput and adds to contextmanager

Specified by:
readExternal in interface java.io.Externalizable
Parameters:
in - ObjectInput
Throws:
java.lang.ClassNotFoundException - classNotFoundException from in.readObject()
java.io.IOException - ioException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Writes context to ObjectInput

Specified by:
writeExternal in interface java.io.Externalizable
Parameters:
out - ObjectInput
Throws:
java.io.IOException - ioException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setTxLogLocation

public void setTxLogLocation(java.lang.String logLocation)

getTxLogLocation

public java.lang.String getTxLogLocation()

setRecovered

public void setRecovered()

isRecovered

public boolean isRecovered()


Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.