Examples of CheckResult


Examples of org.apache.zookeeper.OpResult.CheckResult

                .check("/t1/child", 0)
                .check("/t2", 0)
                .commit();
        assertEquals(3, results.size());
        for (OpResult r : results) {
            CheckResult c = (CheckResult)r;
            assertNotNull(c.toString());
        }
       
        try {
            results = zk.transaction()
                    .check("/t1", 0)
View Full Code Here

Examples of org.apache.zookeeper.OpResult.CheckResult

    public void testOpResultEquals() {
        opEquals(new CreateResult("/foo"),
                new CreateResult("/foo"),
                new CreateResult("nope"));

        opEquals(new CheckResult(),
                new CheckResult(),
                null);
       
        opEquals(new SetDataResult(new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)),
                new SetDataResult(new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)),
                new SetDataResult(new Stat(11, 12, 13, 14, 15, 16, 17, 18, 19, 110, 111)));
View Full Code Here

Examples of org.eclipse.egit.core.internal.FileChecker.CheckResult

      if (dc != null)
        dc.unlock();
    }

    boolean mergeToolAvailable = true;
    final CheckResult checkResult;
    if (!conflictListFailure) {
      checkResult = FileChecker.checkFiles(repo, conflictPaths);
      mergeToolAvailable = checkResult.isOk();
    }
    else {
      checkResult = null;
      mergeToolAvailable = false;
    }

    if (conflictListFailure) {
      Label failureLabel = new Label(main, SWT.NONE);
      failureLabel
          .setText(UIText.RebaseResultDialog_ConflictListFailureMessage);
    } else {
      if (checkResult != null && !checkResult.isOk()) {
        Label failureLabel = new Label(main, SWT.NONE);
        failureLabel
          .setText(getProblemDescription(checkResult));
      }
      Label conflictListLabel = new Label(main, SWT.NONE);
      conflictListLabel
      .setText(UIText.RebaseResultDialog_DiffDetailsLabel);
      TableViewer conflictList = new TableViewer(main, SWT.BORDER);
      GridDataFactory.fillDefaults().span(2, 1).grab(true, true).applyTo(
          conflictList.getTable());
      conflictList.setContentProvider(ArrayContentProvider.getInstance());
      conflictList.setInput(conflictPaths);
      conflictList.setLabelProvider(new LabelProvider() {
        @Override
        public String getText(Object element) {
          String path = (String) element;
          if (checkResult != null && !checkResult.isOk()) {
            CheckResultEntry entry = checkResult.getEntry(path);
            if (entry != null) {
              if (!entry.inWorkspace)
                return UIText.RebaseResultDialog_notInWorkspace + SPACE + path;
              if (!entry.shared)
                return UIText.RebaseResultDialog_notShared + SPACE + path;
View Full Code Here

Examples of org.pentaho.di.core.CheckResult

      target.setStepMeta(StepMeta.findStep(steps, target.getStepName()));
    }
  } 

  public void check(List<CheckResultInterface> remarks, TransMeta transmeta, StepMeta stepMeta, RowMetaInterface prev, String input[], String output[], RowMetaInterface info) {
    CheckResult cr;

    // TODO: check if all updated fields are there
    // TODO: check if any field is updated even though the incoming fields are cleared
   
    // See if we have input streams leading to this step!
    if (input.length > 0) {
      cr = new CheckResult(CheckResult.TYPE_RESULT_OK, "Step is receiving info from other steps.", stepMeta);
      remarks.add(cr);
    } else {
      cr = new CheckResult(CheckResult.TYPE_RESULT_ERROR, "No input received from other steps!", stepMeta);
      remarks.add(cr);
    }

  }
View Full Code Here

Examples of org.pentaho.di.core.CheckResult

     * @param repository
     * @param metaStore
     */
  public void check(List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev, String input[], String output[], RowMetaInterface info, VariableSpace space, Repository repository, IMetaStore metaStore)  {
   
    CheckResult cr;

    // See if there are input streams leading to this step!
    if (input.length > 0) {
      cr = new CheckResult(CheckResult.TYPE_RESULT_OK, BaseMessages.getString(PKG, "Demo.CheckResult.ReceivingRows.OK"), stepMeta);
      remarks.add(cr);
    } else {
      cr = new CheckResult(CheckResult.TYPE_RESULT_ERROR, BaseMessages.getString(PKG, "Demo.CheckResult.ReceivingRows.ERROR"), stepMeta);
      remarks.add(cr);
   
     
  }
View Full Code Here

Examples of org.pentaho.di.core.CheckResult

   *   @param info    fields coming in from info steps
   *   @param metaStore  metaStore to optionally read from
   */
  public void check(List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev, String input[], String output[], RowMetaInterface info, VariableSpace space, Repository repository, IMetaStore metaStore)  {
   
    CheckResult cr;

    // See if there are input streams leading to this step!
    if (input.length > 0) {
      cr = new CheckResult(CheckResult.TYPE_RESULT_OK, BaseMessages.getString(PKG, "Demo.CheckResult.ReceivingRows.OK"), stepMeta);
      remarks.add(cr);
    } else {
      cr = new CheckResult(CheckResult.TYPE_RESULT_ERROR, BaseMessages.getString(PKG, "Demo.CheckResult.ReceivingRows.ERROR"), stepMeta);
      remarks.add(cr);
   
     
  }
View Full Code Here

Examples of org.pentaho.di.core.CheckResult

   *   @param info    fields coming in from info steps
   *   @param metaStore  metaStore to optionally read from
   */
  public void check(List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev, String input[], String output[], RowMetaInterface info, VariableSpace space, Repository repository, IMetaStore metaStore)  {
   
    CheckResult cr;

    // See if there are input streams leading to this step!
    if (input.length > 0) {
      cr = new CheckResult(CheckResult.TYPE_RESULT_OK, BaseMessages.getString(PKG, "Demo.CheckResult.ReceivingRows.OK"), stepMeta);
      remarks.add(cr);
    } else {
      cr = new CheckResult(CheckResult.TYPE_RESULT_ERROR, BaseMessages.getString(PKG, "Demo.CheckResult.ReceivingRows.ERROR"), stepMeta);
      remarks.add(cr);
   
     
  }
View Full Code Here

Examples of org.pentaho.di.core.CheckResult

   *   @param info    fields coming in from info steps
   *   @param metaStore  metaStore to optionally read from
   */
  public void check(List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev, String input[], String output[], RowMetaInterface info, VariableSpace space, Repository repository, IMetaStore metaStore)  {
   
    CheckResult cr;

    // See if there are input streams leading to this step!
    if (input.length > 0) {
      cr = new CheckResult(CheckResult.TYPE_RESULT_OK, BaseMessages.getString(PKG, "Demo.CheckResult.ReceivingRows.OK"), stepMeta);
      remarks.add(cr);
    } else {
      cr = new CheckResult(CheckResult.TYPE_RESULT_ERROR, BaseMessages.getString(PKG, "Demo.CheckResult.ReceivingRows.ERROR"), stepMeta);
      remarks.add(cr);
   
     
  }
View Full Code Here

Examples of scap.check.CheckResult

  private void handleCheckResults(CheckResults results,
      CPEDictionary dictionary) {
    for (CPE cpe : dictionary.getCPEs()) {
      CPEName cpeName = cpe.getCpeName();
      for (Check check : cpe.getChecks()) {
        CheckResult checkResult = results.getCheckResult(check);

        Status status;
        if (checkResult == null) {
          status = Status.UNKNOWN;
        } else {
          switch (checkResult.getCheckResult()) {
          case CHECKED:
            status = getCheckStatus(checkResult
                .getResultInstances());
            break;
          case ERROR:
            status = Status.ERROR;
            break;
View Full Code Here

Examples of scap.check.CheckResult

   * @throws CPELanguageEvaluationException
   */
  public Result evaluate(CheckFactReference ref) throws CPELanguageEvaluationException {
    Check check = ref.getCheck();

    CheckResult checkResult = checkResults.getCheckResult(check);
    CheckedItem.Result checkingResult = checkResult.getResult();
    return normalizeResults(checkingResult);
  }
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.