Examples of succeed()


Examples of net.kuujo.copycat.internal.util.Quorum.succeed()

                  .localNode(), node.member());
                quorum.fail();
              } else {
                LOGGER.info("{} - Received successful vote from {}", context.clusterManager()
                  .localNode(), node.member());
                quorum.succeed();
              }
            }
          });
        }
      });
View Full Code Here

Examples of net.kuujo.copycat.internal.util.Quorum.succeed()

    // Iterate through replicas and commit all entries up to the given index.
    for (NodeReplicator replica : replicaMap.values()) {
      replica.replicate(index).whenComplete((resultIndex, error) -> {
        // Once the commit succeeds, check the commit index of all replicas.
        if (error == null) {
          quorum.succeed();
          checkCommits();
        } else {
          quorum.fail();
        }
      });
View Full Code Here

Examples of net.kuujo.copycat.internal.util.Quorum.succeed()

    // Iterate through replicas and ping each replica. Internally, this
    // should cause the replica to send any remaining entries if necessary.
    for (NodeReplicator replica : replicaMap.values()) {
      replica.ping(index).whenComplete((resultIndex, error) -> {
        if (error == null) {
          quorum.succeed();
        } else {
          quorum.fail();
        }
      });
    }
View Full Code Here

Examples of org.apache.ctakes.jdl.data.xml.Validation.succeed()

   * Execute the loader of the data into the database.
   */
  public void execute() {
    Validation validation = new Validation(SchemaUtil.urlToSchema(XSD),
        srcConn);
    if (validation.succeed()) {
      validation.setDocument(srcLoad);
      if (validation.succeed()) {
        JdlConnection jdlConnection = null;
        try {
          JdbcType jdbc = ObjectFactoryUtil
View Full Code Here

Examples of org.apache.ctakes.jdl.data.xml.Validation.succeed()

  public void execute() {
    Validation validation = new Validation(SchemaUtil.urlToSchema(XSD),
        srcConn);
    if (validation.succeed()) {
      validation.setDocument(srcLoad);
      if (validation.succeed()) {
        JdlConnection jdlConnection = null;
        try {
          JdbcType jdbc = ObjectFactoryUtil
              .getJdbcTypeBySrcXml(srcConn);
          LoadType load = ObjectFactoryUtil
View Full Code Here

Examples of org.eclipse.core.internal.localstore.SafeChunkyOutputStream.succeed()

        else
          dataOut.writeUTF(URI_PREFIX + projectLocation.toString());
        dataOut.writeInt(numRefs);
        for (int i = 0; i < numRefs; i++)
          dataOut.writeUTF(references[i].getName());
        output.succeed();
      } finally {
        dataOut.close();
      }
    } catch (IOException e) {
      String message = NLS.bind(Messages.resources_exSaveProjectLocation, target.getName());
View Full Code Here

Examples of org.sonar.core.computation.db.AnalysisReportDto.succeed()

  public void user_rights_is_not_enough_throw_ForbiddenException() throws Exception {
    insertPermissionsForProject(DEFAULT_PROJECT_KEY);
    queue.add(DEFAULT_PROJECT_KEY, 123L);

    AnalysisReportDto report = queue.all().get(0);
    report.succeed();
    queue.remove(report);
    userSession.setGlobalPermissions(GlobalPermissions.SCAN_EXECUTION);

    WsTester.TestRequest sut = wsTester.newGetRequest(AnalysisReportWebService.API_ENDPOINT, AnalysisReportHistorySearchAction.SEARCH_ACTION);
    sut.execute();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.