Examples of announcePlugin()


Examples of net.xeoh.plugins.remotediscovery.RemoteDiscovery.announcePlugin()

    public void testDiscovery() throws URISyntaxException, InterruptedException {
        TestAnnotations p2 = this.pm.getPlugin(TestAnnotations.class);
        RemoteDiscovery p = this.pm.getPlugin(RemoteDiscovery.class);

        System.out.println(1);
        p.announcePlugin(p2, PublishMethod.ERMI, new URI("ermi://lala:123/Jojo"));
        System.out.println(2);
        Collection<DiscoveredPlugin> discover = p.discover(Plugin.class);
        System.out.println(3);
        for (DiscoveredPlugin dp : discover) {
            int distance = dp.getDistance();
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.