Package com.sun.xml.ws.tx.at.internal
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ForeignRecoveryContext()For recovery, for Externalizable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.ws.EndpointReferencegetEndpointReference()Called by participant and contextworker in order to get parentreference of coordinator portStringgetTxLogLocation()XidgetXid()booleanisRecovered()voidreadExternal(ObjectInput in)Reads context from ObjectInput and adds to contextmanagervoidsetEndpointReference(javax.xml.ws.EndpointReference epr, Transactional.Version version)Sets the parent coordinator's epr as obtained from RegisterResponsevoidsetRecovered()voidsetTxLogLocation(String logLocation)StringtoString()voidwriteExternal(ObjectOutput out)Writes context to ObjectInput
-
-
-
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.Versionversion- Transactional.Version
-
getXid
public 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(ObjectInput in) throws ClassNotFoundException, IOException
Reads context from ObjectInput and adds to contextmanager- Specified by:
readExternalin interfaceExternalizable- 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:
writeExternalin interfaceExternalizable- Parameters:
out- ObjectInput- Throws:
IOException- ioException
-
setTxLogLocation
public void setTxLogLocation(String logLocation)
-
getTxLogLocation
public String getTxLogLocation()
-
setRecovered
public void setRecovered()
-
isRecovered
public boolean isRecovered()
-
-