Examples of execute()


Examples of xbird.engine.XQEngineClient.execute()

        XQEngine engine = new XQEngineClient("//" + bindHost + ":1099/xbird/srv-01");

        CommandRequest request1 = new CommandRequest(new String[] { "import", "document",
                "C:/Software/xmark/xmark001.xml" });
        request1.setBaseCollection("/xmark");
        Object result1 = engine.execute(request1);
        Assert.assertEquals(Boolean.TRUE, result1);
    }

    @Test
    public void testExecuteQuery() throws RemoteException, UnknownHostException {
View Full Code Here

Examples of xbird.server.backend.BackendProcessor.execute()

        final int sign = request.getSignature();
        switch (sign) {
            case QueryRequest.SIGNATURE:
                final String query = ((QueryRequest) request).getQuery();
                BackendProcessor proc = _sched.dispatchRequest(request);
                result = proc.execute(query, this, returnType);
                _sched.notifyCompletion(request);
                break;
            default:
                throw new IllegalStateException("Illegal return type: " + returnType);
        }
View Full Code Here

Examples of xbird.xquery.XQueryProcessor.execute()

        StopWatch sw = new StopWatch("[Xbird] " + queryFile);
        XQueryProcessor processor = new XQueryProcessor();
        XQueryModule mod = processor.parse(new FileInputStream(queryFile), new File(DOC_BASE).toURI());
        processor.compile(mod);
        System.err.println(mod.getExpression().toString());
        Sequence result = processor.execute(mod);
        StringWriter res_sw = new StringWriter();
        Serializer ser = new SAXSerializer(new SAXWriter(res_sw), res_sw);
        ser.emit(result);
        String swresult = sw.toString();
        long used = SystemUtils.getHeapUsedMemory();
View Full Code Here

Examples of xbird.xquery.ext.grid.DispatchQueryExecTask.execute()

        GridQueryTaskRequest request = (GridQueryTaskRequest) rc.getRequest();
        final DispatchQueryExecTask task = request.getTask();

        final Serializable result;
        try {
            result = task.execute();
        } catch (GridException e) {
            LOG.error(e.getMessage(), e);
            rc.setFault(e);
            _resHandler.onResponse(rc);
            return;
View Full Code Here

Examples of xdoclet.DocletTask.execute()

        try
        {
            task.setVerbose(false);
            task.init();
            task.execute();
        }
        catch (Exception ex)
        {
            // what to do with any exception ? rethrow it ?
            cleanFiles();
View Full Code Here

Examples of xplanetconfigurator.downloader.DownloadStarter.execute()

        timer.setRunOnceAndLeave(startOnceAndLeave);
        // The starter is needed due to the SwingWorkerStuff. Main Purpose:
        // the GUI must not freeze.
        DownloadStarter starter = new DownloadStarter();
        starter.setTimer(timer);
        starter.execute();
    }

    /**
     * This is not for starting the download. The downloader reads in its
     * configuration file. The GUI needs the configuration of the downloader
View Full Code Here

Examples of zephyropen.api.API.execute()

   
    /** check that this is a valid command for this device */
    if (command.isMalformedCommand(api)) return;
     
    /** execute the command */
    api.execute(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.