Examples of Operation


Examples of org.rhq.modules.plugins.jbossas7.json.Operation

            if (reqName == null) {
               reqName = req.getName();
            }

            ComplexRequest request = null;
            Operation op;
            if (reqName.contains(":")) {
               request = ComplexRequest.create(reqName);
               op = new ReadAttribute(getAddress(), request.getProp());
            } else {
               op = new ReadAttribute(getAddress(), reqName); // TODO batching
View Full Code Here

Examples of org.rstudio.core.client.widget.Operation

                  "however it is not currently installed. You should " +
                  "ensure that " + weave.getPackageName() + " is installed " +
                  "prior to compiling a PDF." +
                  "\n\nAre you sure you want to change this option?",
                  false,
                  new Operation() {
                     @Override
                     public void execute()
                     {
                     }
                   },
                  new Operation() {
                     @Override
                     public void execute()
                     {
                        setValue(rnwWeaveRegistry_.getTypes().get(0).getName());
                    
View Full Code Here

Examples of org.simpleframework.transport.reactor.Operation

    * and process requests from those pipelines concurrently. 
    *
    * @param socket this is the connected HTTP pipeline to process
    */   
   public void process(Socket socket) throws IOException {
      Operation task = factory.getInstance(socket);
     
      if(task != null) {
         negotiator.process(task);
      }
   }
View Full Code Here

Examples of org.teiid.query.sql.lang.SetQuery.Operation

    }

  private QueryCommand createQuery(QueryMetadataInterface metadata, CapabilitiesFinder capFinder, PlanNode accessRoot, PlanNode node) throws QueryMetadataException, TeiidComponentException, QueryPlannerException {
    PlanNode setOpNode = NodeEditor.findNodePreOrder(node, NodeConstants.Types.SET_OP, NodeConstants.Types.SOURCE);
    if (setOpNode != null) {
            Operation setOp = (Operation)setOpNode.getProperty(NodeConstants.Info.SET_OPERATION);
            SetQuery unionCommand = new SetQuery(setOp);
            boolean unionAll = ((Boolean)setOpNode.getProperty(NodeConstants.Info.USE_ALL)).booleanValue();
            unionCommand.setAll(unionAll);
            PlanNode sort = NodeEditor.findNodePreOrder(node, NodeConstants.Types.SORT, NodeConstants.Types.SET_OP);
            if (sort != null) {
View Full Code Here

Examples of org.tuba.spatschorke.diploma.operation.ecoretools.generatediagram.Operation

  public void generationTest() {
    String curDir = System.getProperty("user.dir"); //$NON-NLS-1$
    String modelFile = curDir + "/test/CompositePattern.ecore"; //$NON-NLS-1$
    EcoreModelRepresentation model = new EcoreModelRepresentation(modelFile);

    Operation operation = new Operation();
    IArtefactRepresentation artefact = operation.process(model, null);
    Assert.assertNotNull(artefact);

    EcoreToolsGMFDiagramURI diagram = (EcoreToolsGMFDiagramURI) artefact;
    String fileName = diagram.getDiagramURI().toFileString();
    File file = new File(fileName);
View Full Code Here

Examples of org.wso2.carbon.business.messaging.paypal.mediator.Operation

   *            - the operation name.
   * @return the Operation instance.
   */
  public Operation create(String operationName) {

    Operation operation = new Operation();

    try {
      OMElement operationOMElement = ConfigHandler.getInstance().parse(
          operationName);
      operation.setVersion(operationOMElement
          .getAttributeValue(ATTR_VERSION));
      operation.setCurrency(operationOMElement
          .getAttributeValue(ATTR_CURRENCY));
      operation.setInputs(createInputs(operationOMElement));
    } catch (Exception e) {
      handleException(
          "An error occured when parsing the configuration file", e);
    }
    return operation;
View Full Code Here

Examples of org.wso2.carbon.business.messaging.paypal.mediator.ui.Operation

     * @param operationName - the operation name.
     * @return the Operation instance.
     */
    public Operation create(String operationName) {

        Operation operation = new Operation();

        try {
            ConfigHandler.getInstance().
                    setInputResourceStream(ConfigHandler.BUSINESS_ADAPTER_CONFIG_INPUTS_PATH);
            OMElement operationOMElement = ConfigHandler.getInstance().parse(operationName);
            operation.setName(operationName);
            operation.setVersion(operationOMElement
                    .getAttributeValue(ATTR_VERSION));
            operation.setCurrency(operationOMElement
                    .getAttributeValue(ATTR_CURRENCY));
            operation.setInputs(createInputs(operationOMElement));
        } catch (Exception e) {
            handleException(
                    "An error occured when parsing the configuration file", e);
        }
        return operation;
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.description.operation.Operation

        }
      }
      /* add necessary equivalent batch operation for the above defined operation */
      if (dataService.isBatchRequestsEnabled()) {
        List<Operation> tmpOpList = new ArrayList<Operation>();
        Operation operation;
        for (String opName : dataService.getOperationNames()) {
          if (isBoxcarringOps(opName)) {
            /* skip boxcarring operations */
            continue;
          }
          operation = dataService.getOperation(opName);
          if (isBatchCompatible(operation)) {
            /* this is a batch operation and the parent operation is also given */
            Operation batchOp = new Operation(
                operation.getDataService(),
                operation.getName()  + DBConstants.BATCH_OPERATON_NAME_SUFFIX,
                "batch operation for '" + operation.getName() + "'",
                operation.getCallQueryGroup(), true,
                operation, operation.isDisableStreamingRequest(),
                operation.isDisableStreamingEffective());
            batchOp.setReturnRequestStatus(operation.isReturnRequestStatus());
            tmpOpList.add(batchOp);
          }
        }
        /* the operations are added outside the loop that iterates the operation list,
         * if we add it inside the loop while iterating, we will get a concurrent modification exception */
 
View Full Code Here

Examples of org.wso2.carbon.jarservices.stub.types.Operation

                service.setServiceName(strings[1]);
                service.setUseOriginalWsdl(Boolean.valueOf(strings[3]));
                services.put(className, service);
            }
            if (strings.length == 5) {
                Operation operation = new Operation();
                operation.setOperationName(strings[4]);
                Operation[] operations = service.getOperations();
                if (operations != null && operations.length > 0) {
                    Operation[] newOperations = new Operation[operations.length + 1];
                    System.arraycopy(operations, 0, newOperations, 0, operations.length);
                    Operation newOperation = new Operation();
                    newOperation.setOperationName(strings[4]);
                    newOperations[newOperations.length -1] = newOperation;
                    operations = newOperations;
                } else {
                    operations = new Operation[1];
                    operations[0] = new Operation();
                    operations[0].setOperationName(strings[4]);
                }
                service.setOperations(operations);
            }
        }
View Full Code Here

Examples of org.xtreemfs.babudb.api.transaction.Operation

        // compare original transaction with deserialized transaction
        assertEquals(txn.getSize(), txn2.getSize());
        assertEquals(txn.getOperations().size(), txn2.getOperations().size());
        for (int i = 0; i < txn.getOperations().size(); i++) {
           
            Operation op1 = txn.getOperations().get(i);
            Operation op2 = txn2.getOperations().get(i);
           
            // count legal parameters
            int count = 0;
            if (op1.getParams() != null) {
                for (Object obj : op1.getParams()) {
                    if (obj != null && !(obj instanceof LSMDatabase)
                        && !(obj instanceof BabuDBRequestResultImpl<?>)) {
                        count++;
                    }
                }
            }
           
            assertEquals(op1.getType(), op2.getType());
            if (count > 0) {
                assertEquals(count, op2.getParams().length);
            } else {
                assertNull(op2.getParams());
            }
            if (op2.getParams() != null) {
                for (int j = 0; j < op2.getParams().length; j++) {
                   
                    Object p1 = op1.getParams()[j];
                    Object p2 = op2.getParams()[j];
                   
                    if (p1 instanceof Number || p1 instanceof String)
                        assertEquals(p1, p2);
                   
                    else if (p1 instanceof byte[]) {
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.