Examples of OperationStatus


Examples of com.sleepycat.je.OperationStatus

        DatabaseEntry keyEntry = new DatabaseEntry();
        DatabaseEntry dataEntry = new DatabaseEntry();
        keyBinding.objectToEntry(key, keyEntry);

        OperationStatus status = db.get(txn, keyEntry, dataEntry, lockMode);

        if (status == OperationStatus.SUCCESS) {
            if (entityBinding instanceof PersistEntityBinding) {
                return (E)((PersistEntityBinding) entityBinding).
                           entryToObjectWithPriKey(key, dataEntry);
View Full Code Here

Examples of net.spy.memcached.ops.OperationStatus

  }

  protected void finishedPayload(byte[] pl) throws IOException {
    if(errorCode != 0) {
      OperationStatus status=getStatusForErrorCode(errorCode, pl);
      if(status == null) {
        handleError(OperationErrorType.SERVER, new String(pl));
      } else {
        getCallback().receivedStatus(status);
        transitionState(OperationState.COMPLETE);
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.OperationStatus

      LOG.info("Wrote " + ops.get() + " times in region " + regionName);
    }

    for (int i = 0; i < miniBatchOp.size(); i++) {
      miniBatchOp.setOperationStatus(i,
          new OperationStatus(HConstants.OperationStatusCode.SUCCESS));
    }
    c.bypass();
  }
View Full Code Here

Examples of org.apache.hive.service.cli.OperationStatus

  }

  @Override
  protected QueryStatus fetchStatus(OperationHandle operationHandle)
    throws HiveSQLException, ExploreException, HandleNotFoundException {
    OperationStatus operationStatus = getCliService().getOperationStatus(operationHandle);
    return new QueryStatus(QueryStatus.OpStatus.valueOf(operationStatus.getState().toString()),
                           operationHandle.hasResultSet());
  }
View Full Code Here

Examples of org.eclipse.core.commands.operations.OperationStatus

        {
            page.openEditor(input, SearchEditor.ID);
        }
        catch (Exception x)
        {
            final IStatus status = new OperationStatus(IStatus.ERROR,
                WorkbenchCorePlugin.PLUGIN_ID, -2, "Editor could not be opened.", x);
            Utils.showError(status);
        }
    }
View Full Code Here

Examples of org.socialmusicdiscovery.server.api.OperationStatus

     * @param module The import module to use
     */
    private void startImport(String module) {
        if (importTask == null) {
            importAborted = false;
            OperationStatus operationStatus = Client.create(config).resource(HOSTURL + "/mediaimportmodules/" + module).post(OperationStatus.class);
            Boolean status = operationStatus.getSuccess();
            if (status != null && status) {
                startImportProgressBar();
            }
        }
    }
View Full Code Here

Examples of org.socialmusicdiscovery.server.api.OperationStatus

        Map<String,String> parametersMap = new HashMap<String,String>();
        for (Map.Entry<String, JsonElement> entry : parameters.entrySet()) {
            parametersMap.put(entry.getKey(), entry.getValue().getAsString());
        }
        if (mediaImportManager.startImport(module, parametersMap)) {
            return new OperationStatus(true);
        } else {
            return new OperationStatus(false);
        }
    }
View Full Code Here

Examples of org.socialmusicdiscovery.server.api.OperationStatus

    @DELETE
    @Produces(MediaType.APPLICATION_JSON)
    @Path("/{module}")
    public OperationStatus abortImport(@PathParam("module") String module) throws JSONException {
        if (mediaImportManager.abortImport(module)) {
            return new OperationStatus(true);
        } else {
            return new OperationStatus(false);
        }
    }
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.