Changed the documentation of some files to document things that have changed since last commit.
parent
c767d8af58
commit
8140dcd516
|
@ -27,22 +27,22 @@ public interface VoterRegistry {
|
|||
|
||||
/**
|
||||
* Adds new voter to the bulletin-board
|
||||
* Passes true to callBack.handleResult if the actions succeeded else
|
||||
* Passes true to callback.OnSuccess if the actions succeeded else
|
||||
* call the onFailure method of the callback with the arisen error
|
||||
*
|
||||
* @param voterInfo protobuff object that represents voter information
|
||||
* @param callBack when the adding voter done callBack.handleResult will be called
|
||||
* @param callBack when the adding voter done callback.OnSuccess will be called
|
||||
* @throws SignatureException
|
||||
*/
|
||||
void addVoter(VoterInfo voterInfo, FutureCallback<Boolean> callBack) throws SignatureException;
|
||||
|
||||
/**
|
||||
* Adding given voter to given group
|
||||
* Passes the group to callBack.handleResult if the actions succeeded else
|
||||
* Passes the group to callback.OnSuccess if the actions succeeded else
|
||||
* call the onFailure method of the callback with the arisen error
|
||||
*
|
||||
* @param voterRegistryMessage protobuff object that is coupling of voterId to groupId
|
||||
* @param callBack when the adding voter done callBack.handleResult will be called
|
||||
* @param callBack when the adding voter done callback.OnSuccess will be called
|
||||
* @throws SignatureException
|
||||
* @throws IOException
|
||||
*/
|
||||
|
@ -50,11 +50,11 @@ public interface VoterRegistry {
|
|||
|
||||
/**
|
||||
* Sets that the voter have voted
|
||||
* Passes true to callBack.handleResult if the actions succeeded else
|
||||
* Passes true to callback.OnSuccess if the actions succeeded else
|
||||
* call the onFailure method of the callback with the arisen error
|
||||
*
|
||||
* @param voterId protobuff object that represent the voter that have voted
|
||||
* @param callBack when the adding voter done callBack.handleResult will be called
|
||||
* @param callBack when the adding voter done callback.OnSuccess will be called
|
||||
* @throws SignatureException
|
||||
*/
|
||||
void setVoted(VoterID voterId, FutureCallback<Boolean> callBack) throws SignatureException;
|
||||
|
@ -65,7 +65,7 @@ public interface VoterRegistry {
|
|||
* call the onFailure method of the callback with the arisen error
|
||||
*
|
||||
* @param voterID protobuff object that represent the voter
|
||||
* @param callBack when the adding voter done callBack.handleResult will be called
|
||||
* @param callBack when the adding voter done callback.OnSuccess will be called
|
||||
*/
|
||||
void getGroups(VoterID voterID, FutureCallback<List<meerkat.protobuf.VoterRegistry.GroupID>> callBack);
|
||||
|
||||
|
@ -75,7 +75,7 @@ public interface VoterRegistry {
|
|||
* call the onFailure method of the callback with the arisen error
|
||||
*
|
||||
* @param voterID protobuff object that represent the voter
|
||||
* @param callBack when the adding voter done callBack.handleResult will be called
|
||||
* @param callBack when the adding voter done callback.OnSuccess will be called
|
||||
*/
|
||||
void getVoter(VoterID voterID, FutureCallback<VoterInfo> callBack);
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ import static meerkat.util.BulletinBoardUtils.getLatestMessage;
|
|||
* NOTE: for most of this tests to pass there should run BulletinBoardServer
|
||||
* that should be reachable on BULLETIN_BOARD_SERVER_ADDRESS
|
||||
*/
|
||||
public class SimpleRegistryTest /**extends TestCase**/ {
|
||||
public class SimpleRegistryTest {
|
||||
|
||||
private Collection<DigitalSignature> signers;
|
||||
private AsyncBulletinBoardClient bulletinBoardClient;
|
||||
|
|
Loading…
Reference in New Issue