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
Context that is persisted as part of tx log and used for bottom-up queries either during runtime or recovery.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.xml.ws.EndpointReferenceCalled by participant and contextworker in order to get parentreference of coordinator portgetXid()booleanvoidReads context from ObjectInput and adds to contextmanagervoidsetEndpointReference(javax.xml.ws.EndpointReference epr, Transactional.Version version) Sets the parent coordinator's epr as obtained from RegisterResponsevoidvoidsetTxLogLocation(String logLocation) toString()voidWrites context to ObjectInput
-
Constructor Details
-
ForeignRecoveryContext
public ForeignRecoveryContext()For recovery, for Externalizable
-
-
Method Details
-
setEndpointReference
Sets the parent coordinator's epr as obtained from RegisterResponse- Parameters:
epr- EndpointReference Transactional.Versionversion- Transactional.Version
-
getXid
-
getEndpointReference
public javax.xml.ws.EndpointReference getEndpointReference()Called by participant and contextworker in order to get parentreference of coordinator port- Returns:
- EndpointReference
-
readExternal
Reads context from ObjectInput and adds to contextmanager- Specified by:
readExternalin interfaceExternalizable- Parameters:
in- ObjectInput- Throws:
ClassNotFoundException- classNotFoundException from in.readObject()IOException- ioException
-
writeExternal
Writes context to ObjectInput- Specified by:
writeExternalin interfaceExternalizable- Parameters:
out- ObjectInput- Throws:
IOException- ioException
-
toString
-
setTxLogLocation
-
getTxLogLocation
-
setRecovered
public void setRecovered() -
isRecovered
public boolean isRecovered()
-