public class CommitResponse extends Object
| Constructor and Description |
|---|
CommitResponse(CommitRequest req,
ArrayList<Throwable> causes) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause(int i)
Return the root cause for the ith service -or-
null if the
COMMIT did not produce an exception for that service. |
int |
getNFail()
Number of COMMIT messages that were generated and failed.
|
int |
getNOk()
Number of COMMIT messages that were generated and succeeded.
|
boolean |
isLeaderOk() |
void |
throwCauses()
Throw out the exception(s).
|
public CommitResponse(CommitRequest req, ArrayList<Throwable> causes)
public boolean isLeaderOk()
public int getNOk()
public int getNFail()
public Throwable getCause(int i)
null if the
COMMIT did not produce an exception for that service.public void throwCauses()
throws Exception
Note: This method is guaranteed to not return normally!
Exception - if one or more services that voted YES failed the COMMIT.IllegalStateException - if all services that voted YES succeeded.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.