Package net.xeoh.plugins.remote

Examples of net.xeoh.plugins.remote.PublishMethod


    final DiscoveredPlugin constructPlugins(final String hostAddress,
                                            final Collection<ExportedPlugin> plugins,
                                            final int pingTime) {
        // If it is, construct required data.
        for (ExportedPlugin p : plugins) {
            final PublishMethod method = PublishMethod.valueOf(p.exportMethod);
            final URI uri = p.exportURI;

            String _newURI = "";

            _newURI += uri.getScheme();
View Full Code Here


            this.manager = (RemoteManagerEndpoint) in.readObject();

            // read DiscoveredPlugin
            URI uri = (URI) in.readObject();
            int dist = (Integer) in.readObject();
            PublishMethod method = (PublishMethod) in.readObject();
            int numCaps = (Integer) in.readObject();
            List<String> caps = new ArrayList<String>();
            for (int i = 0; i < numCaps; ++i)
                caps.add((String) in.readObject());
View Full Code Here

                    continue;
                }

                // If it is, construct required data.
                for (final ExportedPlugin p : exportInfo.allExported) {
                    final PublishMethod method = PublishMethod.valueOf(p.exportMethod);
                    final URI uri = p.exportURI;

                    String _newURI = "";

                    _newURI += uri.getScheme();
View Full Code Here

            final Collection<DiscoveredPlugin> discover = this.remoteDiscovery.discover(Plugin.class);

            this.logger.fine("Found " + discover.size() + " plugins");

            for (final DiscoveredPlugin discoveredPlugin : discover) {
                final PublishMethod method = discoveredPlugin.getPublishMethod();
                final URI publishURI = discoveredPlugin.getPublishURI();

                this.logger.fine("-> Found " + publishURI);

                final boolean a = method.toString().equals(protocol);
                final boolean b = path.equals(publishURI.getPath());

                if (a && b) {
                    this.logger.fine("Returning " + publishURI);
                    return publishURI.toString();
View Full Code Here

                // If the plugin in not exported, do nothing
                if (!exportInfo.isExported) continue;

                // If it is, construct required data.
                for (ExportedPlugin p : exportInfo.allExported) {
                    final PublishMethod method = PublishMethod.valueOf(p.exportMethod);
                    final URI uri = p.exportURI;

                    String _newURI = "";

                    _newURI += uri.getScheme();
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.remote.PublishMethod

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.