Examples of Operation


Examples of hirondelle.web4j.action.Operation

  
   <P>Uses {@link TranslatorImpl#startRecordingUnknowns()} and
   {@link TranslatorImpl#stopRecordingUnknowns()}.
  */
  public ResponsePage execute() throws AppException {
    Operation operation = Operation.valueOf(getParamUnsafe(SupportedOperation));
    if ( Operation.Start == operation ) {
      if( ! TranslatorImpl.isRecording() ){
        TranslatorImpl.read();//refreshes the in-memory cache
        TranslatorImpl.startRecordingUnknowns();
        addMessage("Started recording.");
View Full Code Here

Examples of info.archinnov.achilles.listener.CASResultListener.CASResult.Operation

                            columnValue = invoker.invokeOnRowForType(casResult, name.asJavaClass(), columnDefName);
                    }
                    currentValues.put(columnDefName, columnValue);
                }

                Operation operation = UPDATE;
                if (isCASInsert(queryString)) {
                    operation = INSERT;
                }
                notifyCASError(new CASResult(operation, TypedMap.fromMap(currentValues)));
            } else {
View Full Code Here

Examples of io.teknek.intravert.model.Operation

  public void aTest(){
    IntravertService service = new DefaultIntravertService();
    String keyspaceName = "bla";
    {
      Request request = new Request();
      request.getOperations().add(new Operation().withId("1").withType(ActionFactory.CREATE_SESSION));
      request.getOperations()
              .add(new Operation()
                      .withId("2")
                      .withType(ActionFactory.SET_KEYSPACE)
                      .withArguments(
                              new ImmutableMap.Builder<String, Object>().put("name", keyspaceName).build()));
      Response response = service.doRequest(request);
      TestUtils.assertResponseDidNotFail(response);
      List<Map> results = (List<Map>) response.getResults().get("1");
      Assert.assertNotNull(results.get(0).get(Constants.SESSION_ID));
    }
    {
      Request other = new Request();
      other.getOperations().add(
              new Operation()
                      .withId("1")
                      .withType(ActionFactory.LOAD_SESSION)
                      .withArguments(
                              new ImmutableMap.Builder<String, Object>().put(Constants.SESSION_ID,
                                      0L).build()));
      other.getOperations().add(new Operation().withId("2").withType(ActionFactory.GET_KEYSPACE));
      Response second = service.doRequest(other);
      TestUtils.assertResponseDidNotFail(second);
      List<Map> results = (List<Map>) second.getResults().get("2");
      Assert.assertEquals(keyspaceName, results.get(0).get("keyspace"));
    }
View Full Code Here

Examples of javax.microedition.xml.rpc.Operation

  public boolean setSecurity(net.homeip.mleclerc.omnilinkbbclient.stubs.SecurityMode arg0) throws java.rmi.RemoteException {
    // Copy the incoming values into an Object array if needed.
    Object[] inputObject = new Object[1];
    inputObject[0] = arg0.getValue();

    Operation op = Operation.newInstance(_qname_setSecurity, _type_setSecurity, _type_setSecurityResponse);
    _prepOperation(op);
    op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "");
    Object resultObj;
    try {
      resultObj = op.invoke(inputObject);
    } catch (JAXRPCException e) {
      Throwable cause = e.getLinkedCause();
      if (cause instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException) cause;
      }
View Full Code Here

Examples of javax.wsdl.Operation

    wsdlParser = new WSDLParser(wsdlDefinition);
  }

  public void testParse() throws Exception
  {
    Operation op = wsdlParser.getDocLitOperation(serviceName, portName, messageElementName);
    assertNotNull(op);

    System.out.println("WSDL Operation: " +op.getName());
  }
View Full Code Here

Examples of jline.console.Operation

          continue;
        }

        // It must be that unless it is a macro (...) -> not yet handled
        if (o instanceof Operation) {
          Operation operation = (Operation)o;

          int[] buffer = new int[sb.length()];
          for (int i = 0;i < buffer.length;i++) {
            buffer[i] = sb.codePointAt(i);
          }
View Full Code Here

Examples of lipstone.joshua.parser.plugin.helpdata.Operation

 
  private void loadTrigFunctions() throws PluginConflictException {
    Parameter x = new Parameter("x", "Any real number", false);
    ArrayList<Parameter> params = new ArrayList<Parameter>();
    params.add(x);
    addOperation(new Operation("sin", params, "the sine of x.", "Use the angle type options to specify Degrees/Radians/Grads", this));
    addOperation(new Operation("cos", params, "the cosine of x.", "Use the angle type options to specify Degrees/Radians/Grads", this));
    addOperation(new Operation("tan", params, "the tangent of x.", "Use the angle type options to specify Degrees/Radians/Grads", this));
   
    x = new Parameter("x", "Any real number except odd multiples of pi/2", false);
    params.set(0, x);
    addOperation(new Operation("sec", params, "the secant of x.", "Use the angle type options to specify Degrees/Radians/Grads", this));
    x = new Parameter("x", "Any real number except multiples of pi", false);
    params.set(0, x);
    addOperation(new Operation("csc", params, "the cosecant of x.", "Use the angle type options to specify Degrees/Radians/Grads", this));
    addOperation(new Operation("cot", params, "the cotangent of x.", "Use the angle type options to specify Degrees/Radians/Grads", this));
  }
View Full Code Here

Examples of memory.structure.Operation

        for (int v = 0; v < vars.length; v++) {
            vindices[v] = vars[v].link(this, v);
        }
        ID = solver.nextId();
        operations = new Operation[]{
                new Operation() {
                    @Override
                    public void undo() {
                        state = NEW;
                    }
                },
                new Operation() {
                    @Override
                    public void undo() {
                        state = REIFIED;
                    }
                },
                new Operation() {
                    @Override
                    public void undo() {
                        state = ACTIVE;
                    }
                }
View Full Code Here

Examples of models.enumeration.Operation

                && (service.equals("git-upload-pack") || service.equals("git-receive-pack"));
    }

    private static boolean isAllowed(Project project, String service) throws
            UnsupportedOperationException, IOException, ServletException {
        Operation operation = Operation.UPDATE;
        if (service.equals("git-upload-pack")) {
            operation = Operation.READ;
        }

        PlayRepository repository = RepositoryService.getRepository(project);
View Full Code Here

Examples of net.octal.supinbank.entity.Operation

        Preconditions.checkNotNull(to);
        Preconditions.checkArgument(amount <= from.getTotalAmount());
       
        final Calendar cal = Calendar.getInstance();
       
        Operation operationTo = new Operation();
        operationTo.setAmount(amount);
        operationTo.setDate(cal.getTime());
        operationTo.setWording(description);
        to.addOperation(operationTo);

        Operation operationFrom = new Operation();
        operationFrom.setAmount(-amount);
        operationFrom.setDate(cal.getTime());
        operationFrom.setWording(description);
        from.addOperation(operationFrom);

        operationDao.addOperation(operationFrom);
        operationDao.addOperation(operationTo);
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.