public void stop() {
   if (setJoins != null) {
     setJoins.clear();
   }
   timeToStartJoin = 0;
   if (lsMembers != null) {
     lsMembers.clear();
   }
   dataMemberCount.reset();
   if (mapMembers != null) {
     mapMembers.clear();
   }
   if (mapCalls != null) {
     mapCalls.clear();
   }
   if (memberMasterConfirmationTimes != null) {
     memberMasterConfirmationTimes.clear();
   }
 }
 void joinReset() {
   joinInProgress = false;
   setJoins.clear();
   timeToStartJoin = Clock.currentTimeMillis() + WAIT_MILLIS_BEFORE_JOIN;
   firstJoinRequest = 0;
 }