|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.tx.coordinator.Registrant
com.sun.xml.ws.tx.at.ATParticipant
public class ATParticipant
This class encapsulates a WS-AT participant.
A participant represents one of the three ws-at protocols: completion, volatile 2PC or durable 2PC.
Participant lifecycle consist of generating a endpoint reference
Transaction timeout from Participants perspective. Coordination Context expires specifies the period, measured from the point in time at which the context was first created or received, after which a transaction MAY be terminated solely due to its length of operation. A 2PC participant MAY elect to abort its work in the transaction so long as it has not already decided to prepare.
Nested Class Summary | |
---|---|
static class |
ATParticipant.STATE
|
Field Summary | |
---|---|
static java.net.URI |
LOCAL_PPS_URI
|
protected ATParticipant.STATE |
state
|
protected javax.transaction.xa.Xid |
xid
|
Fields inherited from class com.sun.xml.ws.tx.coordinator.Registrant |
---|
outstandingRegistrants |
Constructor Summary | |
---|---|
ATParticipant(Coordinator parent,
Participant participant)
Register will figure out if participant will register with local or remote Coordination Protocol Service. |
|
ATParticipant(Coordinator parent,
RegisterType registerRequest)
Remote ATParticipant with a local Coordinator. |
Method Summary | |
---|---|
void |
abort()
|
void |
commit()
|
void |
forget()
A participant is forgotten after it has sent committed or aborted to coordinator. |
ATCoordinator |
getATCoordinator()
|
static CoordinatorPortType |
getATCoordinatorWS(javax.xml.ws.EndpointReference toCPS,
javax.xml.ws.EndpointReference replyToPPS,
boolean nonterminalNotify)
|
static ParticipantPortType |
getATParticipantWS(javax.xml.ws.EndpointReference toPPS,
javax.xml.ws.EndpointReference replyToCPS,
boolean nonterminalNotification)
|
javax.xml.ws.EndpointReference |
getLocalParticipantProtocolService()
No need to export an external stateful web service for this usage case. |
static javax.xml.ws.EndpointReference |
getLocalParticipantProtocolServiceEPR()
|
ParticipantPortType |
getParticipantPort(javax.xml.ws.EndpointReference epr)
|
ATParticipant.STATE |
getState()
Return participant's state for Atomic Transaction 2PC Protocol. |
protected javax.transaction.xa.Xid |
getXid()
|
boolean |
isDurable()
|
boolean |
isVolatile()
|
void |
prepare()
Returns participant state. |
void |
setCoordinatorProtocolService(javax.xml.ws.EndpointReference cps)
Set the coordinator protocol service received by coor:registerResponse. |
Methods inherited from class com.sun.xml.ws.tx.coordinator.Registrant |
---|
getCoordinator, getCoordinatorProtocolService, getId, getIdValue, getOutstandingRegistrant, getParticipantProtocolService, getProtocol, getRegisterRequest, isRegistrationCompleted, isRemoteCPS, register, removeOutstandingRegistrant, setParticpantProtocolService, setRegistrationCompleted, setRemoteCPS, waitForRegistrationResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.net.URI LOCAL_PPS_URI
protected ATParticipant.STATE state
protected javax.transaction.xa.Xid xid
Constructor Detail |
---|
public ATParticipant(Coordinator parent, Participant participant)
public ATParticipant(Coordinator parent, RegisterType registerRequest)
Method Detail |
---|
public ParticipantPortType getParticipantPort(javax.xml.ws.EndpointReference epr)
public boolean isVolatile()
public boolean isDurable()
public void forget()
forget
in class Registrant
public static CoordinatorPortType getATCoordinatorWS(javax.xml.ws.EndpointReference toCPS, javax.xml.ws.EndpointReference replyToPPS, boolean nonterminalNotify)
public static ParticipantPortType getATParticipantWS(javax.xml.ws.EndpointReference toPPS, javax.xml.ws.EndpointReference replyToCPS, boolean nonterminalNotification)
public ATCoordinator getATCoordinator()
public ATParticipant.STATE getState()
protected javax.transaction.xa.Xid getXid()
public void prepare() throws TXException
TXException
public void commit() throws TXException
TXException
public void abort()
public void setCoordinatorProtocolService(javax.xml.ws.EndpointReference cps)
Registrant
setCoordinatorProtocolService
in class Registrant
cps
- cps eprpublic javax.xml.ws.EndpointReference getLocalParticipantProtocolService()
getLocalParticipantProtocolService
in class Registrant
public static javax.xml.ws.EndpointReference getLocalParticipantProtocolServiceEPR()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |