@InterfaceAudience.Private public interface ProcedureMemberRpcs extends Closeable
| Modifier and Type | Method and Description |
|---|---|
String |
getMemberName()
Each subprocedure is being executed on a member.
|
void |
sendMemberAborted(Subprocedure sub,
ForeignException cause)
Notify the coordinator that we aborted the specified
Subprocedure |
void |
sendMemberAcquired(Subprocedure sub)
Notify the coordinator that the specified
Subprocedure has acquired the locally
required barrier condition. |
void |
sendMemberCompleted(Subprocedure sub,
byte[] data)
Notify the coordinator that the specified
Subprocedure has completed the work that
needed to be done under the global barrier. |
void |
start(String memberName,
ProcedureMember member)
Initialize and start any threads or connections the member needs.
|
void start(String memberName, ProcedureMember member)
String getMemberName()
void sendMemberAborted(Subprocedure sub, ForeignException cause) throws IOException
Subproceduresub - the Subprocedure we are abortingcause - the reason why the member's subprocedure abortedIOException - thrown when the rpcs can't reach the other members of the procedure (and
thus can't recover).void sendMemberAcquired(Subprocedure sub) throws IOException
Subprocedure has acquired the locally
required barrier condition.sub - the specified SubprocedureIOException - if we can't reach the coordinatorvoid sendMemberCompleted(Subprocedure sub, byte[] data) throws IOException
Subprocedure has completed the work that
needed to be done under the global barrier.sub - the specified Subproceduredata - the data the member returns to the coordinator along with the notificationIOException - if we can't reach the coordinatorCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.