|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParticipantServer
A participant server maps 2PC calls to the proper
Participant instance.
NOTE: implementations should also implement the
equals
and hashCode
methods correctly!
Method Summary | |
---|---|
HeuristicMessage[] |
commit(String root)
Commit the participant of the given root, after prepare was sent. |
HeuristicMessage[] |
commitOnePhase(String root,
int siblings,
Dictionary cascadeList)
Perform one-phase commit for the given root. |
void |
forget(String root)
Forget all about a given root. |
int |
prepare(String root,
int siblings,
Dictionary cascadelist)
Prepare the participant of the given root. |
HeuristicMessage[] |
rollback(String root)
Rollback the participant for the given root. |
Method Detail |
---|
int prepare(String root, int siblings, Dictionary cascadelist) throws RollbackException, HeurHazardException, HeurMixedException, SysException, RemoteException
root
- The root String of the participant.cascadelist
- The list of participants to cascade to, if any.siblings
- The count of siblings for the given participant.
RollbackException
HeurHazardException
HeurMixedException
SysException
RemoteException
For more information on the exceptions and return value.
HeuristicMessage[] commit(String root) throws HeurRollbackException, HeurHazardException, HeurMixedException, RollbackException, SysException, RemoteException
root
- The String of the given root.
HeurRollbackException
HeurHazardException
HeurMixedException
RollbackException
SysException
RemoteException
For more info on the exceptions and return value.
HeuristicMessage[] commitOnePhase(String root, int siblings, Dictionary cascadeList) throws HeurRollbackException, HeurHazardException, HeurMixedException, RollbackException, SysException, RemoteException
root
- The root id.siblings
- The count of siblings for the given participant.cascadeList
- The info needed for orphan detection.
HeurRollbackException
HeurHazardException
HeurMixedException
RollbackException
SysException
RemoteException
HeuristicMessage[] rollback(String root) throws HeurCommitException, HeurMixedException, HeurHazardException, SysException, RemoteException
root
- The given root.
HeurCommitException
HeurMixedException
HeurHazardException
SysException
RemoteException
for more exception info.
void forget(String root) throws SysException, RemoteException
root
- The root to forget about.
SysException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |