|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Evolving public interface ProcedureMemberRpcs
This is the notification interface for Procedures that encapsulates message passing from members to a coordinator. Each of these calls should send a message to the coordinator.
Method Summary | |
---|---|
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)
Notify the coordinator that the specified Subprocedure has completed the work that
needed to be done under the global barrier. |
void |
start(ProcedureMember member)
Initialize and start any threads or connections the member needs. |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
void start(ProcedureMember member)
String getMemberName()
void sendMemberAborted(Subprocedure sub, ForeignException cause) throws IOException
Subprocedure
sub
- the Subprocedure
we are abortingcause
- the reason why the member's subprocedure aborted
IOException
- 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 Subprocedure
IOException
- if we can't reach the coordinatorvoid sendMemberCompleted(Subprocedure sub) throws IOException
Subprocedure
has completed the work that
needed to be done under the global barrier.
sub
- the specified Subprocedure
IOException
- if we can't reach the coordinator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |