Examples of Operation


Examples of org.geoserver.w3ds.utilities.Operation

      throw new IllegalArgumentException(
          "Mandatory parameter REQUEST is missing: "
              + rawKvp.toString());
    }
    // TODO: Test request validity.
    Operation requestStr = Operation.GETILE;
    aux = (String) rawKvp.get("FORMAT");
    if (aux == null) {
      throw new IllegalArgumentException(
          "Mandatory parameter FORMAT is missing: "
              + rawKvp.toString());
View Full Code Here

Examples of org.glassfish.grizzly.filterchain.FilterChainContext.Operation

     */
    @SuppressWarnings("unchecked")
    private void checkStoredMessage(final FilterChainContext ctx,
            final FiltersState filtersState, final int filterIdx) {

        final Operation operation = ctx.getOperation();
        final FilterStateElement filterState;

        // Check if there is any data stored for the current Filter
        if (filtersState != null && (filterState = filtersState.get(operation, filterIdx)) != null &&
                filterState.isValid) {
View Full Code Here

Examples of org.h2.expression.Operation

    private Expression readConcat() {
        Expression r = readSum();
        while (true) {
            if (readIf("||")) {
                r = new Operation(Operation.CONCAT, r, readSum());
            } else if (readIf("~")) {
                if (readIf("*")) {
                    Function function = Function.getFunction(database, "CAST");
                    function.setDataType(new Column("X", Value.STRING_IGNORECASE));
                    function.setParameter(0, r);
View Full Code Here

Examples of org.hibernate.ogm.dialect.batch.Operation

  }

  @Override
  public void executeBatch(OperationsQueue queue) {
    if ( !queue.isClosed() ) {
      Operation operation = queue.poll();
      Map<DBCollection, BatchInsertionTask> inserts = new HashMap<DBCollection, BatchInsertionTask>();
      while ( operation != null ) {
        if ( operation instanceof UpdateTupleOperation ) {
          UpdateTupleOperation update = (UpdateTupleOperation) operation;
          executeBatchUpdate( inserts, update );
        }
        else if ( operation instanceof RemoveTupleOperation ) {
          RemoveTupleOperation tupleOp = (RemoveTupleOperation) operation;
          executeBatchRemove( inserts, tupleOp );
        }
        else if ( operation instanceof UpdateAssociationOperation ) {
          UpdateAssociationOperation update = (UpdateAssociationOperation) operation;
          updateAssociation( update.getAssociation(), update.getAssociationKey(), update.getContext() );
        }
        else if ( operation instanceof RemoveAssociationOperation ) {
          RemoveAssociationOperation remove = (RemoveAssociationOperation) operation;
          removeAssociation( remove.getAssociationKey(), remove.getContext() );
        }
        else {
          throw new UnsupportedOperationException( "Operation not supported on MongoDB: " + operation.getClass().getName() );
        }
        operation = queue.poll();
      }
      flushInserts( inserts );
      queue.close();
View Full Code Here

Examples of org.hibernate.ogm.dialect.batch.spi.Operation

  public void executeBatch(OperationsQueue queue) {
    OperationsQueue newQueue = new OperationsQueue();
    StringBuilder sb = new StringBuilder();

    if ( !queue.isClosed() ) {
      Operation operation = queue.poll();
      while ( operation != null ) {
        newQueue.add( operation );

        if ( operation instanceof InsertOrUpdateTupleOperation ) {
          sb.append( "InsertOrUpdateTuple(" ).append( ( (InsertOrUpdateTupleOperation) operation ).getEntityKey() ).append( " )" );
View Full Code Here

Examples of org.infinispan.query.backend.TransactionHelper.Operation

   }

   private void updateSearchFactory(final Class<?>... classes) {
      mutating.lock();
      try {
         transactionHelper.runSuspendingTx(new Operation() {
            @Override
            public void execute() {
               // we need to preserve the state of this flag manually because addClasses will cause reconfiguration and the flag is lost
               boolean isStatisticsEnabled = searchFactory.getStatistics().isStatisticsEnabled();
               searchFactory.addClasses(classes);
View Full Code Here

Examples of org.iosgi.engine.Operation

  }

  void optimize(List<Operation> ops) {
    Set<Operation> subsumed = new HashSet<Operation>();
    for (int i = 0; i < ops.size(); i++) {
      Operation op = ops.get(i);
      for (int j = 0; j < i; j++) {
        Operation c = ops.get(j);
        if (!subsumed.contains(c) && op.subsumes(c))
          subsumed.add(c);
      }
    }
    int sc = 0;
    for (Iterator<Operation> it = ops.iterator(); it.hasNext();) {
      Operation op = it.next();
      if (subsumed.contains(op)) {
        it.remove();
        sc++;
      }
    }
View Full Code Here

Examples of org.jboss.aesh.edit.actions.Operation

                //if we have a command hooked in the input goes there
                if(command != null)
                    command.processOperation(new CommandOperation(input));
                //the input is parsed by æsh
                else {
                    Operation operation = editMode.parseInput(inc, buffer.getLine());
                    if(inc != Key.UNKNOWN)
                        operation.setInput(inc.getKeyValues());
                    else
                        operation.setInput(new int[]{input[position]});
                    String result = parseOperation(operation, buffer.getPrompt().getMask());
                    if(result != null)
                        processOperationResult(result);
                }
            }
View Full Code Here

Examples of org.jboss.as.controller.client.Operation

            resolveOperation.get(GlobalOperationHandlers.ResolveAddressOperationHandler.ORIGINAL_OPERATION).set(operation.getOperation().require(ModelDescriptionConstants.OP));
            // Aggregate the result as collection using a hacked resolve operation and resultHandler
            final Collection<ModelNode> resolved = new ArrayList<ModelNode>();
            final AtomicInteger status = new AtomicInteger();
            final ModelNode failureResult = new ModelNode();
            final Operation resolveContext = OperationBuilder.Factory.create(resolveOperation).build();
            final ResultHandler resolveHandler = new ResultHandler() {
                @Override
                public void handleResultFragment(String[] location, ModelNode result) {
                    synchronized(failureResult) {
                        if (status.get() == 0) {
View Full Code Here

Examples of org.jboss.as.integration.hornetq.jopr.util.Operation

      return config;
   }

   public OperationResult invokeOperation(String s, Configuration configuration) throws InterruptedException, Exception
   {
      Operation oper = Operation.getOperation(s);
      Collection<PropertySimple> props = configuration.getSimpleProperties().values();
      SimpleValueSupport[] params = new SimpleValueSupport[props.size()];
      SimpleValueSupport[] signature = new SimpleValueSupport[props.size()];
      populateParams(props, params, signature);
      ArrayValueSupport param = new ArrayValueSupport(new ArrayMetaType(SimpleMetaType.STRING, false));
      param.setValue(params);
      ArrayValueSupport sig = new ArrayValueSupport(new ArrayMetaType(SimpleMetaType.STRING, false));
      sig.setValue(signature);
      SimpleValueSupport queueName = new SimpleValueSupport(SimpleMetaType.STRING, resourceContext.getResourceKey());
      SimpleValueSupport methodName = new SimpleValueSupport(SimpleMetaType.STRING, oper.getOperationName());
      ManagementView view = getProfileService();
      String methodOperation = getInvokeOperation();
      if("JMSMessage".equalsIgnoreCase(oper.getResultsType()))
      {
         methodOperation = getInvokeOperationJMSMessage();
      }
      else if("SubscriptionInfo".equalsIgnoreCase(oper.getResultsType()))
      {
         methodOperation = getInvokeOperationSubscriptionMessage();
      }
      ManagedOperation operation = ManagementSupport.getOperation(view, getComponentName(), methodOperation, getComponentType());
      Object result = null;
      result = operation.invoke(queueName, methodName, param, sig);
      if (result == null)
      {
         return null;
      }
      return formatResults(result, oper.getResultsType());
   }
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.