Package net.xeoh.plugins.remote.util.vanilla

Examples of net.xeoh.plugins.remote.util.vanilla.ExportResultImpl


    /* (non-Javadoc)
     * @see net.xeoh.plugins.remote.RemoteAPI#exportPlugin(net.xeoh.plugins.base.Plugin)
     */
    public ExportResult exportPlugin(final Plugin plugin) {
        return new ExportResultImpl(exportPlugin(plugin, 0));
    }
View Full Code Here


        // Get some (very) random start port.
        final int startInt = getFreePort(); //this.START_PORT + r.nextInt(10000);

        for (int d = 0; d < 10; d++) {
            final URI exportPlugin = exportPlugin(plugin, startInt + d);
            if (exportPlugin != null) return new ExportResultImpl(exportPlugin);
        }

        return null;
    }
View Full Code Here

        URI createURI = createURI(this.protocol + servername + ":" + this.port + "/" + name);

        // Announce the plugin
        this.discovery.announcePlugin(plugin, getPublishMethod(), createURI);

        return new ExportResultImpl(createURI);
    }
View Full Code Here

        this.logger.info("Plugin exported as JavaScript to " + uri);

        // Announce the plugin
        this.discovery.announcePlugin(plugin, getPublishMethod(), uri);

        return new ExportResultImpl(uri);
    }
View Full Code Here

        final URI createURI = createURI(exportURL);

        // Announce the plugin
        this.discovery.announcePlugin(plugin, getPublishMethod(), createURI);

        return new ExportResultImpl(createURI);
    }
View Full Code Here

        this.logger.info("Exported " + originalName + " at " + uri);

        // Announce the plugin
        this.discovery.announcePlugin(plugin, getPublishMethod(), uri);

        return new ExportResultImpl(uri);
    }
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.remote.util.vanilla.ExportResultImpl

Copyright © 2018 www.massapicom. 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.