|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atomikos.icatch.msg.MessageRecoveryCoordinator
public class MessageRecoveryCoordinator
A recovery coordinator that takes the role of adaptor. Instances are responsible of the correct translation of local replay requests into corresponding message requests to the remote coordinator.
Constructor Summary | |
---|---|
MessageRecoveryCoordinator()
|
|
MessageRecoveryCoordinator(String cUri,
Object address,
Transport transport)
Creates a new instance. |
Method Summary | |
---|---|
Object |
getAddress()
Gets the address |
String |
getURI()
Gets the URI identifier for this coordinator. |
void |
readExternal(ObjectInput in)
|
Boolean |
replayCompletion(Participant localCoordinator)
Transforms a replay request on behalf of a local coordinator into a request that conforms to a message-based two-phase commit. |
void |
setAddress(Object address)
Sets the address (needed for WS-T). |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageRecoveryCoordinator()
public MessageRecoveryCoordinator(String cUri, Object address, Transport transport)
cUri
- The URI of the REMOTE coordinator to ask replay to.address
- The address where the REMOTE can be reached.transport
- The transport to use.Method Detail |
---|
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public Boolean replayCompletion(Participant localCoordinator) throws IllegalStateException
replayCompletion
in interface RecoveryCoordinator
localCoordinator
- The local coordinator making the request.
IllegalStateException
- If no prepare was done for the
participant asking the replay.public String getURI()
RecoveryCoordinator
getURI
in interface RecoveryCoordinator
RecoveryCoordinator
public Object getAddress()
public void setAddress(Object address)
address
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |