Examples of ExecuteCommand


Examples of com.aerospike.client.command.ExecuteCommand

   * @return            return value of user defined function
   * @throws AerospikeException  if transaction fails
   */
  public final Object execute(Policy policy, Key key, String packageName, String functionName, Value... args)
    throws AerospikeException {
    ExecuteCommand command = new ExecuteCommand(cluster, policy, key, packageName, functionName, args);
    command.execute();
   
    Record record = command.getRecord();
   
    if (record == null || record.bins == null) {
      return null;
    }
   
View Full Code Here

Examples of com.aerospike.client.command.ExecuteCommand

   * @return            return value of user defined function
   * @throws AerospikeException  if transaction fails
   */
  public final Object execute(Policy policy, Key key, String packageName, String functionName, Value... args)
    throws AerospikeException {
    ExecuteCommand command = new ExecuteCommand(cluster, policy, key, packageName, functionName, args);
    command.execute();
   
    Record record = command.getRecord();
   
    if (record == null || record.bins == null) {
      return null;
    }
   
View Full Code Here

Examples of com.aerospike.client.command.ExecuteCommand

   * @return            return value of user defined function
   * @throws AerospikeException  if transaction fails
   */
  public final Object execute(Policy policy, Key key, String packageName, String functionName, Value... args)
    throws AerospikeException {
    ExecuteCommand command = new ExecuteCommand(cluster, policy, key, packageName, functionName, args);
    command.execute();
   
    Record record = command.getRecord();
   
    if (record == null || record.bins == null) {
      return null;
    }
   
View Full Code Here

Examples of com.aerospike.client.command.ExecuteCommand

  public final Object execute(Policy policy, Key key, String packageName, String functionName, Value... args)
    throws AerospikeException {
    if (policy == null) {
      policy = readPolicyDefault;
    }
    ExecuteCommand command = new ExecuteCommand(cluster, policy, key, packageName, functionName, args);
    command.execute();
   
    Record record = command.getRecord();
   
    if (record == null || record.bins == null) {
      return null;
    }
   
View Full Code Here

Examples of com.aerospike.client.command.ExecuteCommand

  public final Object execute(Policy policy, Key key, String packageName, String functionName, Value... args)
    throws AerospikeException {
    if (policy == null) {
      policy = readPolicyDefault;
    }
    ExecuteCommand command = new ExecuteCommand(cluster, policy, key, packageName, functionName, args);
    command.execute();
   
    Record record = command.getRecord();
   
    if (record == null || record.bins == null) {
      return null;
    }
   
View Full Code Here

Examples of com.consol.citrus.admin.launcher.process.ExecuteCommand

        if (SystemUtils.IS_OS_UNIX) {
            command = String.format("ping -c %s 127.0.0.1", sleepInSeconds);
        } else {
            command = String.format("ping -n %s 127.0.0.1", sleepInSeconds);
        }
        return new ExecuteCommand(command, new File(System.getProperty("user.dir"))).getProcessBuilder();
    }
View Full Code Here

Examples of org.drools.command.ExecuteCommand

       
        List cmds = new ArrayList();
        cmds.add(new InsertObjectCommand(new String("Hi!"), "handle"));
                                                                                                                
        BatchExecutionCommand batchCmd = CommandFactory.newBatchExecution(cmds, "kresults");
        ExecuteCommand execCmd = new ExecuteCommand(batchCmd,true);
        KnowledgeContextResolveFromContextCommand resolveFromContextCommand = new KnowledgeContextResolveFromContextCommand(execCmd,  
                                                                                        null,null,"ksession","localResults");
        ExecutionResults results = (ExecutionResults)commandService.execute(resolveFromContextCommand);
       
        assertNotNull(results);
       
        assertNotNull(results.getFactHandle("handle"));
       
        assertTrue(((DefaultFactHandle)results.getFactHandle("handle")).isDisconnected());
       
       
       
        cmds = new ArrayList();
        cmds.add(new InsertObjectCommand(new String("Hi!"), "handle"));
        batchCmd = CommandFactory.newBatchExecution(cmds, "kresults");
        execCmd = new ExecuteCommand(batchCmd);
        resolveFromContextCommand = new KnowledgeContextResolveFromContextCommand(execCmd,  
                                                                                        null,null,"ksession","localResults");
        results = (ExecutionResults)commandService.execute(resolveFromContextCommand);
       
        assertNotNull(results);
View Full Code Here

Examples of org.drools.command.ExecuteCommand

        QueryCommand queryCommand = new QueryCommand("out", "myQuery", new Object[]{});
        SetVariableCommandFromCommand setVariableCmd = new SetVariableCommandFromCommand("__TEMP__", "query123", queryCommand);
        cmds.add(setVariableCmd);
       
        BatchExecutionCommand batchCmd = CommandFactory.newBatchExecution(cmds, "kresults");
        ExecuteCommand execCmd = new ExecuteCommand(batchCmd,true);
       
       
        KnowledgeContextResolveFromContextCommand resolveFromContextCommand = new KnowledgeContextResolveFromContextCommand(execCmd,
                null, null, "ksession", "localResults");
        ExecutionResults results = (ExecutionResults) commandService.execute(resolveFromContextCommand);
View Full Code Here

Examples of org.drools.command.ExecuteCommand

    public Environment getEnvironment() {
        return commandService.execute( new GetEnvironmentCommand() );
    }

    public <T> T execute(Command<T> command) {
        return (T) this.commandService.execute( new ExecuteCommand( command ) );
    }
View Full Code Here

Examples of org.drools.command.ExecuteCommand

    public Environment getEnvironment() {
        return commandService.execute( new GetEnvironmentCommand() );
    }

    public ExecutionResults execute(Command command) {
        return this.commandService.execute( new ExecuteCommand( command ) );
    }
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.