@Path(value="/atomikos") @Consumes(value="application/vnd.atomikos+json") public class AtomikosRestPort extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
REST_URL_PROPERTY_NAME |
| Constructor and Description |
|---|
AtomikosRestPort() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildParticipantUrl(com.atomikos.icatch.CompositeTransaction ct) |
static String |
buildRecoveryCoordinatorUrl(com.atomikos.icatch.CompositeTransaction ct) |
javax.ws.rs.core.Response |
commit(String rootId,
String coordinatorId,
boolean onePhase) |
String |
getOutcome(String coordinatorId) |
static String |
getUrl() |
static void |
init(String url) |
String |
ping() |
javax.ws.rs.core.Response |
prepare(String rootId,
String coordinatorId,
Map<String,Integer> cascadeList) |
javax.ws.rs.core.Response |
rollback(String rootId,
String coordinatorId) |
static void |
setUrl(String url)
Sets the URL for this port - either from jta.properties or as detected on first invocation of our interceptor.
|
public static final String REST_URL_PROPERTY_NAME
public static void setUrl(String url)
url - Can be null in which case this method does nothing. If the URL was already set then a second invocation will not have any effect.public static String getUrl()
public static String buildParticipantUrl(com.atomikos.icatch.CompositeTransaction ct) throws com.atomikos.icatch.SysException
com.atomikos.icatch.SysExceptionpublic static String buildRecoveryCoordinatorUrl(com.atomikos.icatch.CompositeTransaction ct)
public static void init(String url)
@GET public String ping()
@GET
@Path(value="{coordinatorId}")
public String getOutcome(@PathParam(value="coordinatorId")
String coordinatorId)
@POST
@Path(value="{rootId}/{coordinatorId}")
public javax.ws.rs.core.Response prepare(@PathParam(value="rootId")
String rootId,
@PathParam(value="coordinatorId")
String coordinatorId,
Map<String,Integer> cascadeList)
@PUT
@Path(value="{rootId}/{coordinatorId}/{onePhase}")
public javax.ws.rs.core.Response commit(@PathParam(value="rootId")
String rootId,
@PathParam(value="coordinatorId")
String coordinatorId,
@PathParam(value="onePhase")
boolean onePhase)
Copyright © 2026. All rights reserved.