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:
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:
Serialized Form

Constructor Summary
ForeignRecoveryContext()
          For recovery, for Externalizable
 
Method Summary
 EndpointReference getEndpointReference()
          Called by participant and contextworker in order to get parentreference of coordinator port
 String getTxLogLocation()
           
 Xid getXid()
           
 boolean isRecovered()
           
 void readExternal(ObjectInput in)
          Reads context from ObjectInput and adds to contextmanager
 void setEndpointReference(EndpointReference epr, Transactional.Version version)
          Sets the parent coordinator's epr as obtained from RegisterResponse
 void setRecovered()
           
 void setTxLogLocation(String logLocation)
           
 String toString()
           
 void writeExternal(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(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 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()


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