Package net.xeoh.plugins.remotediscovery.impl.common.discoverymanager

Examples of net.xeoh.plugins.remotediscovery.impl.common.discoverymanager.ExportInfo


    @SuppressWarnings( { "boxing", "unchecked" })
    @Override
    public synchronized ExportInfo getExportInfoFor(String pluginInteraceName) {
        this.logger.fine("Was queried for plugin name " + pluginInteraceName);

        final ExportInfo exportInfo = new ExportInfo();
        exportInfo.isExported = false;
        exportInfo.allExported = new ArrayList<ExportedPlugin>();

        try {
            final File[] listFiles = this.root.listFiles();
View Full Code Here


        DiscoveryMangerFileImpl dmp = new DiscoveryMangerFileImpl();
        dmp.anouncePlugin(pm, PublishMethod.JAVASCRIPT, new URI("http://xxx.com"));

        Thread.sleep(2000);

        ExportInfo exportInfoFor = dmp.getExportInfoFor("net.xeoh.plugins.base.Plugin");
        Collection<ExportedPlugin> all = exportInfoFor.allExported;
        for (ExportedPlugin e : all) {
            System.out.println(e.exportURI);
        }
View Full Code Here

                // RemoteDiscoveryImpl.this.logger.info("Error getting ping time of remote manager " +
                //          endpoint.address + ":" + endpoint.port);
                final AtomicInteger pingTime = getPingTime(mgr, endpoint.address.getHostAddress(), endpoint.port);

                // Query the information (needs to be inside a privileged block, otherwise applets might complain.
                final ExportInfo exportInfo = AccessController.doPrivileged(new PrivilegedAction<ExportInfo>() {
                    public ExportInfo run() {
                        return mgr.getExportInfoFor(plugin.getCanonicalName());
                    }
                });
View Full Code Here

                @SuppressWarnings("unused")
                final AtomicInteger pingTime = this.remoteDiscoveryImpl.getPingTime(mgr, entry.manager.address.getHostAddress(), entry.manager.port);

                this.remoteDiscoveryImpl.syso("cache rem 8");
                // Query the information (needs to be inside a privileged block, otherwise applets might complain.
                final ExportInfo exportInfo = AccessController.doPrivileged(new PrivilegedAction<ExportInfo>() {
                    public ExportInfo run() {
                        return mgr.getExportInfoFor(getPlugin().getCanonicalName());
                    }
                });
                this.remoteDiscoveryImpl.syso("cache rem 9");
View Full Code Here

    @Override
    public Collection<DiscoveredPlugin> discover(Class<? extends Plugin> plugin,
                                                 DiscoverOption... options) {
        final Collection<DiscoveredPlugin> rval = new ArrayList<DiscoveredPlugin>();

        final ExportInfo exportInfoFor = this.dmp.getExportInfoFor(plugin.getCanonicalName());
        final Collection<ExportedPlugin> allExported = exportInfoFor.allExported;

        for (final ExportedPlugin e : allExported) {
            rval.add(new DiscoveredPluginImpl(PublishMethod.valueOf(e.exportMethod), e.exportURI, 0 , e.timeSinceExport));
        }
View Full Code Here

                        return null;
                    }
                });

                // Query the information (needs to be inside a privileged block, otherwise applets might complain.
                final ExportInfo exportInfo = AccessController.doPrivileged(new PrivilegedAction<ExportInfo>() {
                    public ExportInfo run() {
                        return mgr.getExportInfoFor(plugin.getCanonicalName());
                    }
                });
View Full Code Here

     * @see net.xeoh.plugins.remotediscovery.impl.v2.DiscoveryManager#getExportInfoFor(java.lang.String)
     */
    public ExportInfo getExportInfoFor(String pluginInteraceName) {
        this.logger.fine("Was queried for plugin name " + pluginInteraceName);

        final ExportInfo exportInfo = new ExportInfo();
        exportInfo.isExported = false;
        exportInfo.allExported = new ArrayList<ExportedPlugin>();

        for (ExportEntry entry : this.allExported) {
            final Collection<Class<? extends Plugin>> allPluginClasses = getAllPluginClasses(entry.plugin);
View Full Code Here

                        return null;
                    }
                });

                // Query the information (needs to be inside a privileged block, otherwise applets might complain.
                final ExportInfo exportInfo = AccessController.doPrivileged(new PrivilegedAction<ExportInfo>() {
                    public ExportInfo run() {
                        return mgr.getExportInfoFor(plugin.getCanonicalName());
                    }
                });
View Full Code Here

    @Override
    public synchronized ExportInfo getExportInfoFor(String pluginInteraceName) {
        this.logger.fine("Was queried for plugin name " + pluginInteraceName);

       
        final ExportInfo exportInfo = new ExportInfo();
        exportInfo.isExported = false;
        exportInfo.allExported = new ArrayList<ExportedPlugin>();

        // We have to iterate over all agents ... and all their nodes
View Full Code Here

        DiscoveryMangerPreferencesImpl dmp = new DiscoveryMangerPreferencesImpl();
        dmp.anouncePlugin(pm, PublishMethod.JAVASCRIPT, new URI("http://xxx.com"));
        dmp.debug();

        ExportInfo exportInfoFor = dmp.getExportInfoFor("net.xeoh.plugins.base.Plugin");
        Collection<ExportedPlugin> all = exportInfoFor.allExported;
        for (ExportedPlugin e : all) {
            System.out.println(e.exportURI);
        }
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.remotediscovery.impl.common.discoverymanager.ExportInfo

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.