Examples of execute()


Examples of com.tinkerpop.furnace.algorithms.vertexcentric.computers.SerialGraphComputer.execute()

        Graph graph = TinkerGraphFactory.createTinkerGraph();

        DegreeRankProgram program = DegreeRankProgram.create().build();
        SerialGraphComputer computer = new SerialGraphComputer(graph, program, GraphComputer.Isolation.BSP);
        computer.execute();

        VertexMemory results = computer.getVertexMemory();
        assertEquals(results.getProperty(graph.getVertex(1), DegreeRankProgram.DEGREE), 0l);
        assertEquals(results.getProperty(graph.getVertex(2), DegreeRankProgram.DEGREE), 1l);
        assertEquals(results.getProperty(graph.getVertex(3), DegreeRankProgram.DEGREE), 3l);
View Full Code Here

Examples of com.tinkerpop.gremlin.process.computer.VertexProgram.execute()

        final VertexProgram vertexProgram = ((GiraphWorkerContext) this.getWorkerContext()).getVertexProgram();
        final GiraphMemory memory = ((GiraphWorkerContext) this.getWorkerContext()).getMemory();
        final GiraphMessenger messenger = ((GiraphWorkerContext) this.getWorkerContext()).getMessenger(this, messages);
        ///////////
        if (!(Boolean) ((RuleWritable) this.getAggregatedValue(Constants.GREMLIN_GIRAPH_HALT)).getObject())
            vertexProgram.execute(this.tinkerVertex, messenger, memory)// TODO provide a wrapper around TinkerVertex for Edge and non-ComputeKeys manipulation
        else if (this.getConf().getBoolean(Constants.GREMLIN_GIRAPH_DERIVE_MEMORY, false)) {
            final Map<String, Object> memoryMap = new HashMap<>(memory.asMap());
            memoryMap.put(Constants.SYSTEM_ITERATION, memory.getIteration() - 1);
            this.tinkerVertex.singleProperty(Constants.MEMORY_MAP, memoryMap);
        }
View Full Code Here

Examples of com.tinkerpop.rexster.client.RexsterClient.execute()

        //create a session
        final SessionRequestMessage outMsg = new SessionRequestMessage();
        outMsg.setRequestAsUUID(UUID.randomUUID());

        inMsg = client.execute(outMsg);
        Assert.assertNotNull(inMsg.Session);
        Assert.assertTrue(inMsg instanceof SessionResponseMessage);

        UUID sessionKey = BitWorks.convertByteArrayToUUID(inMsg.Session);
View Full Code Here

Examples of com.tll.client.data.rpc.ForgotPasswordCommand.execute()

          return;
        }

        final ForgotPasswordCommand fpc = new ForgotPasswordCommand(emailAddress);
        fpc.setSource(this);
        fpc.execute();
      }
    }
    else if(event.getSource() == lnkTgl) {
      if(!isLoginMode()) {
        // to login mode
View Full Code Here

Examples of com.twitter.common.application.ShutdownRegistry.ShutdownRegistryImpl.execute()

    final ShutdownRegistryImpl shutdownRegistry = injector.getInstance(ShutdownRegistryImpl.class);
    addTearDown(new TearDown() {
      @Override
      public void tearDown() {
        shutdownRegistry.execute();
      }
    });
    injector.getInstance(StartupRegistry.class).execute();
    LocalServiceRegistry serviceRegistry = injector.getInstance(LocalServiceRegistry.class);
    httpServer = serviceRegistry.getAuxiliarySockets().get("http");
View Full Code Here

Examples of com.twitter.common.base.Command.execute()

                          case PREEMPTING:
                            addFollowup(KILL);
                            break;

                          case FAILED:
                            incrementFailuresMaybeReschedule.execute();
                            break;

                          case RESTARTING:
                            addFollowup(KILL);
                            break;
View Full Code Here

Examples of com.vaadin.ui.JavaScript.execute()

                log.log("Argument 4 is JSONObject.NULL: "
                        + (arguments.get(3) instanceof JsonNull));
                js.removeFunction("testing.doTest");
            }
        });
        js.execute("window.testing.doTest(42, 'text', {p: true}, null)");
    }

    @Override
    protected String getTestDescription() {
        return "Test javascript callback handling by adding a callback and invoking the javascript.";
View Full Code Here

Examples of com.vladium.emma.emmaTask.execute()

    MaxmlMap instrAttributes = mxtest.getBuild().getConfig().getTaskAttributes("emma");
    if (instrAttributes != null) {
      AttributeReflector.setAttributes(mxtest.getProject(), instr, instrAttributes);
    }
   
    emma.execute();
  }
 
  public static void report(MxTest mxtest) {
    emmaTask emma = new emmaTask();
    emma.setTaskName("emma");
View Full Code Here

Examples of com.volantis.map.agent.ResponseCallback.execute()

                    public Object perform(MethodActionEvent event)
                            throws Throwable {
                        ResponseCallback callback = (ResponseCallback) event
                                .getArgument(ResponseCallback.class);

                        callback.execute(parameters);

                        return null;
                    }
                }).atLeast(1);
       
View Full Code Here

Examples of com.volantis.map.ics.imageprocessor.impl.ICSOperation.execute()

        // Lame simulation of creation by OSGi framework
        ICSOperation op = new ICSOperation();
        op.activate(componentCtx);
        try {
            op.execute(descriptor, request, response);
        } finally {
            op.deactivate(componentCtx);
        }
    }
}
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.