Examples of Operation


Examples of com.google.api.services.compute.model.Operation

  }

  @Override
  public void terminate() throws OpsException {
    try {
      Operation operation = computeClient.terminateInstance(instance.getName());
      computeClient.waitComplete(operation, 5, TimeUnit.MINUTES);
    } catch (TimeoutException e) {
      throw new OpsException("Timeout waiting for instance termination", e);
    }
View Full Code Here

Examples of com.google.caja.parser.js.Operation

        || e instanceof ArrayConstructor || e instanceof ObjectConstructor
        || e instanceof FunctionConstructor) {
      return true;
    }
    if (!(e instanceof Operation)) { return false; }
    Operation op = (Operation) e;
    switch (op.getOperator()) {
      case ASSIGN:
      case DELETE:
      case POST_DECREMENT: case POST_INCREMENT:
      case PRE_DECREMENT: case PRE_INCREMENT:
      case VOID: // indicates value purposely ignored
        return false;
      case FUNCTION_CALL:
        return false;
      case CONSTRUCTOR:
        return true;
      case LOGICAL_AND: case LOGICAL_OR:
        return shouldBeEvaluatedForValue(op.children().get(1));
      case TERNARY:
        return shouldBeEvaluatedForValue(op.children().get(1))
            && shouldBeEvaluatedForValue(op.children().get(2));
      case COMMA:
        // We do not allow comma, since bad things happen when commas are used.
        // Consider
        //    if (foo)
        //      return bar,
        //    baz();
        // $FALL-THROUGH
      default:
        return op.getOperator().getCategory() != OperatorCategory.ASSIGNMENT;
    }
  }
View Full Code Here

Examples of com.google.test.metric.method.op.turing.Operation

      @Override
      public List<Variable> pop(Block key, List<Variable> input) {
        List<Variable> variables = operation.apply(input);
        // For performance reasons the line is commented out.
        // assertValid(variables);
        Operation turingOp = operation.toOperation(input);
        if (turingOp != null) {
          operations.add(turingOp);
        }
        return variables;
      }
View Full Code Here

Examples of com.hazelcast.spi.Operation

    public void rollbackTransaction(String transactionId) {
        final Set<String> queueNames = containerMap.keySet();
        for (String name : queueNames) {
            int partitionId = nodeEngine.getPartitionService().getPartitionId(StringPartitioningStrategy.getPartitionKey(name));
            Operation operation = new QueueTransactionRollbackOperation(name, transactionId).setPartitionId(partitionId).setService(this).setNodeEngine(nodeEngine);
            nodeEngine.getOperationService().executeOperation(operation);
        }
    }
View Full Code Here

Examples of com.hypnoticocelot.jaxrs.doclet.model.Operation

        for (Map.Entry<String, Collection<Method>> apiEntries : apiMethods.entrySet()) {
            Collection<Operation> operations = new ArrayList<Operation>(
                    transform(apiEntries.getValue(), new Function<Method, Operation>() {
                        @Override
                        public Operation apply(Method method) {
                            return new Operation(method);
                        }
                    })
            );
            apis.add(new Api(apiEntries.getKey(), "", operations));
        }
View Full Code Here

Examples of com.iisigroup.cap.operation.Operation

*/
public abstract class FormHandler extends HandlerPlugin {

  @Override
  public IResult execute(IRequest params) {
    Operation oper = getOperation();
    if (oper != null) {
      OpStepContext ctx = new OpStepContext(OperationStep.NEXT);
      oper.execute(ctx, params, this);
      return ctx.getResult();
    }
    return null;
  }
View Full Code Here

Examples of com.impetus.kundera.persistence.context.jointable.JoinTableData.OPERATION

                            Object entityId = node.getEntityId();
                            Object childId = childNode.getEntityId();
                            Set<Object> childValues = new HashSet<Object>();
                            childValues.add(childId);

                            OPERATION operation = null;
                            if (node.getCurrentNodeState().getClass().equals(ManagedState.class))
                            {
                                operation = OPERATION.INSERT;
                            }
                            else if (node.getCurrentNodeState().getClass().equals(RemovedState.class))
View Full Code Here

Examples of com.lightcrafts.model.Operation

        } else {
            modeButtons.setRegionsEnabled(true);
        }

        if ( control != null ) {
            final Operation op = control.getOperation();
            final EditorMode prefMode = op.getPreferredMode();
            if ( isLocked || isRaw ||
                 prefMode != EditorMode.ARROW ||
                 m_editorMode == EditorMode.ARROW )
                setEditorMode( prefMode );
        }
View Full Code Here

Examples of com.mdraco.calculator.Operation

        if (operations.isEmpty())
          throw new UnsupportedOperationException("missing operation");
        if (values.isEmpty())
          throw new UnsupportedOperationException("missing value");

        Operation operation = operations.pop();
        result = operation.calculate(values.pop(), result);
      }
    }
    if (!operations.isEmpty())
      throw new UnsupportedOperationException("wrong number of arguments");
    return result;
View Full Code Here

Examples of com.mysema.query.types.Operation

            List<Expression<?>> sources = new ArrayList<Expression<?>>(metadata.getJoins().size());
            for (JoinExpression join : metadata.getJoins()) {
                if (join.getType() == JoinType.DEFAULT) {
                    sources.add(join.getTarget());
                } else {
                    Operation target = (Operation) join.getTarget();
                    sources.add(target.getArg(1));
                }
            }
            // ordered
            if (!metadata.getOrderBy().isEmpty()) {
                order(metadata, sources, list);
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.