Examples of Operation


Examples of org.apache.axis2.rmi.metadata.Operation

    public void invokeBusinessLogic(MessageContext inputMessageContext,
                                    MessageContext outputMessageContext) throws AxisFault {

        String operationName = inputMessageContext.getOperationContext().getAxisOperation().getName().getLocalPart();
        Operation operation = service.getOperation(operationName);
        XMLStreamReader reader = inputMessageContext.getEnvelope().getBody().getFirstElement().getXMLStreamReaderWithoutCaching();
        SOAPFactory soapFactory = getSOAPFactory(inputMessageContext);
        if (operation != null) {
            // invoke the method
            try {
                Object serviceObject = service.getJavaClass().newInstance();
                Method javaOperation = operation.getJavaMethod();
                Object returnObject = javaOperation.invoke(serviceObject,
                        this.xmlStreamParser.getInputParameters(reader, operation));
                OMElement returnOMElement = getOutputOMElement(returnObject, operation, this.javaObjectSerializer, soapFactory);
                SOAPEnvelope soapEnvelope = soapFactory.getDefaultEnvelope();
                soapEnvelope.getBody().addChild(returnOMElement);
View Full Code Here

Examples of org.apache.bookkeeper.client.QuorumEngine.Operation

        LOG.debug("Adding entry " + data);
        RetCounter counter = new RetCounter();
        counter.inc();
       
        if(lh != null){
          Operation r = new AddOp(lh, data, this, counter);
          engines.get(lh.getId()).sendOp(r);
          //qeMap.get(lh.getId()).put(r);
       
          counter.block(0);
       
View Full Code Here

Examples of org.apache.cassandra.cql3.operations.Operation

                            else
                            {
                                builder.add(column.name.key);
                                List<Term> args = Collections.singletonList(keySelected);

                                Operation op;
                                switch (validator.kind)
                                {
                                    case LIST:
                                        op = ListOperation.DiscardKey(args);
                                        break;
                                    case SET:
                                        op = SetOperation.Discard(args);
                                        break;
                                    case MAP:
                                        op = MapOperation.DiscardKey(keySelected);
                                        break;
                                    default:
                                        throw new InvalidRequestException("Unknown collection type: " + validator.kind);
                                }

                                op.execute(cf, builder, validator, params, group == null ? null : group.getCollection(column.name.key));
                            }
                        }
                        else
                        {
                            ColumnNameBuilder b = iter.hasNext() ? builder.copy() : builder;
View Full Code Here

Examples of org.apache.hive.service.cli.operation.Operation

   * @see org.apache.hive.service.cli.ICLIService#getOperationStatus(org.apache.hive.service.cli.OperationHandle)
   */
  @Override
  public OperationStatus getOperationStatus(OperationHandle opHandle)
      throws HiveSQLException {
    Operation operation = sessionManager.getOperationManager().getOperation(opHandle);
    /**
     * If this is a background operation run asynchronously,
     * we block for a configured duration, before we return
     * (duration: HIVE_SERVER2_LONG_POLLING_TIMEOUT).
     * However, if the background operation is complete, we return immediately.
     */
    if (operation.shouldRunAsync()) {
      HiveConf conf = operation.getParentSession().getHiveConf();
      long timeout = HiveConf.getTimeVar(conf,
          HiveConf.ConfVars.HIVE_SERVER2_LONG_POLLING_TIMEOUT, TimeUnit.MILLISECONDS);
      try {
        operation.getBackgroundHandle().get(timeout, TimeUnit.MILLISECONDS);
      } catch (TimeoutException e) {
        // No Op, return to the caller since long polling timeout has expired
        LOG.trace(opHandle + ": Long polling timed out");
      } catch (CancellationException e) {
        // The background operation thread was cancelled
        LOG.trace(opHandle + ": The background operation was cancelled", e);
      } catch (ExecutionException e) {
        // The background operation thread was aborted
        LOG.warn(opHandle + ": The background operation was aborted", e);
      } catch (InterruptedException e) {
        // No op, this thread was interrupted
        // In this case, the call might return sooner than long polling timeout
      }
    }
    OperationStatus opStatus = operation.getStatus();
    LOG.debug(opHandle + ": getOperationStatus()");
    return opStatus;
  }
View Full Code Here

Examples of org.apache.jackrabbit.core.integration.random.operation.Operation

            // save nodes
            f.save(test.getPath()).execute();

            NodeIterator nodes = f.getRandomNodes(f.traverseNodes(test.getPath()));
            while (end > System.currentTimeMillis()) {
                Operation op = f.runInSequence(new Operation[]{
                    getRandomOperations(f, nodes),
                    f.save("/")
                });
                if (isUseXA()) {
                    op = f.runInTransaction(op);
                }
                op.execute();
            }
            test.remove();
            session.save();
        } catch (Exception e) {
            throw new RepositoryException(e);
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.operation.Operation

    public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException {
        checkSupportedOption(Repository.LEVEL_2_SUPPORTED);
        checkStatus();

        // validation checks are performed within remove operation
        Operation rm = Remove.create(getItemState());
        session.getSessionItemStateManager().execute(rm);
    }
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.UpdateOp.Operation

    }

    private static boolean checkConditions(Map<String, Object> target,
                                           UpdateOp update) {
        for (Map.Entry<String, Operation> change : update.changes.entrySet()) {
            Operation op = change.getValue();
            if (op.type == Operation.Type.CONTAINS_MAP_ENTRY) {
                String k = change.getKey();
                String[] kv = k.split("\\.");
                Object value = target.get(kv[0]);
                if (value == null) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.UpdateOp.Operation

            T target = collection.newDocument(this);
            UpdateUtils.applyChanges(target, update, comparator);
            docs.add(target);
            for (Entry<Key, Operation> entry : update.getChanges().entrySet()) {
                Key k = entry.getKey();
                Operation op = entry.getValue();
                switch (op.type) {
                    case SET:
                    case INCREMENT: {
                        inserts[i].put(k.toString(), op.value);
                        break;
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.mongomk.UpdateOp.Operation

            T target = collection.newDocument(this);
            UpdateUtils.applyChanges(target, update, comparator);
            docs.add(target);
            for (Entry<Key, Operation> entry : update.getChanges().entrySet()) {
                Key k = entry.getKey();
                Operation op = entry.getValue();
                switch (op.type) {
                    case SET:
                    case INCREMENT: {
                        inserts[i].put(k.toString(), op.value);
                        break;
View Full Code Here

Examples of org.apache.openejb.core.Operation

            final InstanceContext context = beanContext.newInstance();

            if (context.getBean() instanceof SessionBean){

                final Operation originalOperation = callContext.getCurrentOperation();
                try {
                    callContext.setCurrentOperation(Operation.CREATE);
                    final Method create = beanContext.getCreateMethod();
                    final InterceptorStack ejbCreate = new InterceptorStack(context.getBean(), create, Operation.CREATE, new ArrayList<InterceptorData>(), new HashMap());
                    ejbCreate.invoke();
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.