|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jbossts.star.service.Coordinator
public class Coordinator
| Field Summary | |
|---|---|
protected static org.jboss.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
Coordinator()
|
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
beginTransaction(javax.ws.rs.core.UriInfo info,
javax.ws.rs.core.HttpHeaders headers,
String content)
Performing a POST on Transaction Manager URL @see TxSupport.TX_SEGMENT with no content as shown below will start a new transaction with a default timeout. |
javax.ws.rs.core.Response |
deleteParticipant(String enlistmentId)
|
javax.ws.rs.core.Response |
deleteTransaction(String id)
Performing a DELETE on the transaction-coordinator URL will return a 403. |
javax.ws.rs.core.Response |
enlistParticipant(String linkHeader,
javax.ws.rs.core.UriInfo info,
String txId,
String content)
Register a participant in a tx |
javax.ws.rs.core.Response |
enlistVolatileParticipant(String linkHeader,
javax.ws.rs.core.UriInfo info,
String txId)
|
javax.ws.rs.core.Response |
getAllTransactions(javax.ws.rs.core.UriInfo info)
Performing a GET on the transaction-manager returns a list of all transaction URIs known to the coordinator (active and in recovery) separated by the @see TxSupport.URI_SEPARATOR character |
javax.ws.rs.core.Response |
getTransactionExtStatus(javax.ws.rs.core.UriInfo info,
String id)
|
org.jboss.jbossts.star.util.media.txstatusext.TransactionManagerElement |
getTransactionManagerInfo(javax.ws.rs.core.UriInfo info)
|
org.jboss.jbossts.star.util.media.txstatusext.TransactionStatisticsElement |
getTransactionStatistics()
|
javax.ws.rs.core.Response |
getTransactionStatus(javax.ws.rs.core.UriInfo info,
String id)
Performing a GET on the transaction url returns its status |
javax.ws.rs.core.Response |
getTransactionURIs(javax.ws.rs.core.UriInfo info,
String id)
Obtain the transaction terminator and participant enlistment URIs for the specified transaction id. |
javax.ws.rs.core.Response |
lookupParticipant(String txId,
String enlistmentId)
Get the participant url (registered during enlistParticipant) corresponding to a resource reference if the coordinator crashes - the participant list will be empty but this is ok if commit hasn't been called since the TM uses presumed abort semantics. |
javax.ws.rs.core.Response |
postParticipant(String enlistmentId)
|
void |
removeTxState(int status,
Transaction tx,
Collection<String> enlistmentIds)
|
javax.ws.rs.core.Response |
replaceParticipant(String linkHeader,
String txId,
String enlistmentId)
PUT /recovery-coordinator/ |
javax.ws.rs.core.Response |
terminateTransaction(String txId,
String fault,
String content)
The client can control the outcome of the transaction by by PUTing to the terminator URL returned as a response to the original transaction create request. |
javax.ws.rs.core.Response |
tt1(String txId)
|
javax.ws.rs.core.Response |
tt2(String txId)
|
javax.ws.rs.core.Response |
tt3(String txId)
|
javax.ws.rs.core.Response |
tt4(String txId)
|
javax.ws.rs.core.Response |
tt5(String txId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.jboss.logging.Logger log
| Constructor Detail |
|---|
public Coordinator()
| Method Detail |
|---|
public javax.ws.rs.core.Response getAllTransactions(@Context
javax.ws.rs.core.UriInfo info)
info - http context of the request
public org.jboss.jbossts.star.util.media.txstatusext.TransactionManagerElement getTransactionManagerInfo(@Context
javax.ws.rs.core.UriInfo info)
public org.jboss.jbossts.star.util.media.txstatusext.TransactionStatisticsElement getTransactionStatistics()
public javax.ws.rs.core.Response getTransactionURIs(@Context
javax.ws.rs.core.UriInfo info,
String id)
info - request contextid - URL template parameter for the transaction id
public javax.ws.rs.core.Response getTransactionStatus(@Context
javax.ws.rs.core.UriInfo info,
String id)
info - request contextid - URL template parameter for the id of the transaction
etc for the format of the returned content
public javax.ws.rs.core.Response getTransactionExtStatus(@Context
javax.ws.rs.core.UriInfo info,
String id)
public javax.ws.rs.core.Response deleteTransaction(String id)
id - transaction id
public javax.ws.rs.core.Response tt1(String txId)
public javax.ws.rs.core.Response tt2(String txId)
public javax.ws.rs.core.Response tt3(String txId)
public javax.ws.rs.core.Response tt4(String txId)
public javax.ws.rs.core.Response tt5(String txId)
public javax.ws.rs.core.Response beginTransaction(@Context
javax.ws.rs.core.UriInfo info,
@Context
javax.ws.rs.core.HttpHeaders headers,
String content)
info - uri contextheaders - http headerscontent - empty if no transaction timeout is required otherwise the number of milliseconds
after which the transaction is eligible for being timed out. The content should have the format
and @see TxLinkNames#PARTICIPANT
public javax.ws.rs.core.Response terminateTransaction(String txId,
String fault,
String content)
txId - URL template component containing the transaction identifierfault - mechanism for injecting faults TODO use byteman insteadcontent - body of the request indicating a commit or abort request
etc
public void removeTxState(int status,
Transaction tx,
Collection<String> enlistmentIds)
public javax.ws.rs.core.Response enlistParticipant(@HeaderParam(value="Link")
String linkHeader,
@Context
javax.ws.rs.core.UriInfo info,
String txId,
String content)
linkHeader - link headerinfo - URI infotxId - id of transactioncontent - body of request containing URI for driving the participant through completion
(the URI should be unique within the scope of txId)
public javax.ws.rs.core.Response enlistVolatileParticipant(@HeaderParam(value="Link")
String linkHeader,
@Context
javax.ws.rs.core.UriInfo info,
String txId)
public javax.ws.rs.core.Response lookupParticipant(String txId,
String enlistmentId)
txId - transaction id that this recovery url belongs toenlistmentId - the resource reference
public javax.ws.rs.core.Response replaceParticipant(@HeaderParam(value="Link")
String linkHeader,
String txId,
String enlistmentId)
linkHeader - link header containing participant linkstxId - transaction id that this recovery url belongs toenlistmentId - id by the participant is known
public javax.ws.rs.core.Response postParticipant(String enlistmentId)
public javax.ws.rs.core.Response deleteParticipant(String enlistmentId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||