Examples of ServerProxy


Examples of org.apache.geronimo.mavenplugins.geronimo.ServerProxy

            log.debug("Starting verify timeout task; triggers in: " + verifyTimeout + " seconds");
            timer.schedule(timeoutTask, verifyTimeout * 1000);
        }

        // Verify server started
        ServerProxy server = new ServerProxy(hostname, port, username, password);
        boolean started = false;
        while (!started) {
            if (verifyTimedOut.isSet()) {
                throw new MojoExecutionException("Unable to verify if the server was started in the given time (" + verifyTimeout + " seconds)");
            }

            if (errorHolder.isSet()) {
                throw new MojoExecutionException("Failed to start Geronimo server", (Throwable)errorHolder.get());
            }

            started = server.isFullyStarted();

            if (!started) {
                Throwable error = server.getLastError();
                if (error != null) {
                    log.debug("Server query failed; ignoring", error);
                }

                Thread.sleep(1000);
View Full Code Here

Examples of org.apache.geronimo.mavenplugins.geronimo.ServerProxy

     * @optional
     */
    protected String[] arg = null;

    protected void doExecute() throws Exception {
        ServerProxy server =
            new ServerProxy(hostname, port, username, password);

        String geronimoHomeStr = server.getGeronimoHome();

        log.info("Geronimo Home: " + geronimoHomeStr);

        if (geronimoHomeStr == null) {
            throw new MojoExecutionException("Unable to determine Geronimo installation directory");
View Full Code Here

Examples of org.mortbay.jetty.ant.utils.ServerProxy

        setSystemProperties();

        List connectorsList = (connectors != null ? connectors.getConnectors()
                : Connectors.DEFAULT_CONNECTORS);
        List userRealmsList = (userRealms != null ? userRealms.getUserRealms() : new ArrayList());
        ServerProxy server = new ServerProxyImpl(connectorsList, userRealmsList, requestLog,
                jettyXml);

        try
        {
          Iterator iterator = webapps.iterator();
          while (iterator.hasNext())
          {
              WebApp webAppConfiguration = (WebApp) iterator.next();
              WebApplicationProxyImpl webApp = new WebApplicationProxyImpl(webAppConfiguration
                      .getName());
              webApp.setSourceDirectory(webAppConfiguration.getWarFile());
              webApp.setContextPath(webAppConfiguration.getContextPath());
              webApp.setWebXml(webAppConfiguration.getWebXmlFile());
              webApp.setJettyEnvXml(webAppConfiguration.getJettyEnvXml());
              webApp.setClassPathFiles(webAppConfiguration.getClassPathFiles());
              webApp.setLibrariesConfiguration(webAppConfiguration.getLibrariesConfiguration());
              webApp.setExtraScanTargetsConfiguration(webAppConfiguration
                      .getScanTargetsConfiguration());
              webApp.setContextHandlers(webAppConfiguration.getContextHandlers());
              webApp.setWebDefaultXmlFile(webAppConfiguration.getWebDefaultXmlFile());

              server.addWebApplication(webApp, webAppConfiguration.getScanIntervalSeconds());
          }
        }
        catch (Exception e) {
          throw new BuildException(e);
        }
       
        server.start();
    }
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.ServerProxy

        if (drerIDStr == null)
        {
            drerIDStr = "DataRequestExecutionResource";
        }
        ResourceID drerID = new ResourceID(drerIDStr);
        ServerProxy server = new ServerProxy();
        server.setDefaultBaseServicesURL(new URL(url));
        // Get DRER
        DataRequestExecutionResource drer =
            server.getDataRequestExecutionResource(drerID);
        // Execute.
        executeRequest(server, drer);
    }
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.ServerProxy

    }
   
    public static DataRequestExecutionResource getDRER(String service)
    throws MalformedURLException
    {
        ServerProxy server = new ServerProxy();
        server.setDefaultBaseServicesURL(new URL(service));
        DataRequestExecutionResource drer = 
            server.getDataRequestExecutionResource(
                        new ResourceID("DataRequestExecutionResource"));
        return drer;
    }
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.ServerProxy

        URL serverBaseUrl;
        serverBaseUrl = new URL("http://127.0.0.1:5080/dai/services/");

        ResourceID drerId = new ResourceID("DataRequestExecutionResource");

        ServerProxy serverProxy = new ServerProxy();
        serverProxy.setDefaultBaseServicesURL(serverBaseUrl);

        DataRequestExecutionResource drer = serverProxy
                .getDataRequestExecutionResource(drerId);

        // Create the activities
        String SPARQLquery;
        // SPARQLquery = "PREFIX p: <http://dbpedia.org/property/>" +
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.ServerProxy

        URL serverBaseUrl;
        serverBaseUrl = new URL("http://127.0.0.1:5080/dai/services/");

        ResourceID drerId = new ResourceID("DataRequestExecutionResource");

        ServerProxy serverProxy = new ServerProxy();
        serverProxy.setDefaultBaseServicesURL(serverBaseUrl);

        DataRequestExecutionResource drer = serverProxy
                .getDataRequestExecutionResource(drerId);

        StringBuffer inputPE = new StringBuffer();
        inputPE.append("dummyName7");
        inputPE.append(",dummyST2");
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.ServerProxy

        URL serverBaseUrl;
        serverBaseUrl = new URL("http://localhost:8081/dai/services/");

        ResourceID drerId = new ResourceID("DataRequestExecutionResource");

        ServerProxy serverProxy = new ServerProxy();
        serverProxy.setDefaultBaseServicesURL(serverBaseUrl);

        DataRequestExecutionResource drer = serverProxy
                .getDataRequestExecutionResource(drerId);

        CreateDataSource createDataSource = new CreateDataSource();
        DeliverToRequestStatus deliverToRequestStatus = new DeliverToRequestStatus();
        deliverToRequestStatus.connectInput(createDataSource.getResultOutput());

        PipelineWorkflow createSourceWorkflow = new PipelineWorkflow();
        createSourceWorkflow.add(createDataSource);
        createSourceWorkflow.add(deliverToRequestStatus);

        drer.execute(createSourceWorkflow, RequestExecutionType.SYNCHRONOUS);

        ResourceID dataSourceID = createDataSource.nextResult();

        DataSourceResource dataSource = serverProxy
                .getDataSourceResource(dataSourceID);

        // String SPARQLquery = "PREFIX p: <http://dbpedia.org/property/> " +
        // "SELECT ?artist ?artwork ?museum ?director " +
        // "WHERE {" +
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.ServerProxy

        if (drerIDStr == null)
        {
            drerIDStr = "DataRequestExecutionResource";
        }
        ResourceID drerID = new ResourceID(drerIDStr);
        ServerProxy server = new ServerProxy();
        server.setDefaultBaseServicesURL(new URL(url));
        // Get DRER
        DataRequestExecutionResource drer =
            server.getDataRequestExecutionResource(drerID);
       
        for (int i=0; i<10; i++)
        {
            // Execute.
            executeRequest(server, drer);
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.ServerProxy

        if (drerIDStr == null)
        {
            drerIDStr = "DataRequestExecutionResource";
        }
        ResourceID drerID = new ResourceID(drerIDStr);
        ServerProxy server = new ServerProxy();
        server.setDefaultBaseServicesURL(new URL(url));
        // Get DRER
        DataRequestExecutionResource drer =
            server.getDataRequestExecutionResource(drerID);
       
        for (int i=0; i<10; i++)
        {
            executeRequest(server, drer);
        }
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.