Package net.jini.jeri

Examples of net.jini.jeri.BasicJeriExporter


                                                      "serverExporter",
                                                      Exporter.class,
                                                      null);
        if(exporter==null) {
            String host = HostUtil.getHostAddressFromProperty(Constants.RMI_HOST_ADDRESS);
            exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(host, 0),
                                             new BeanInvocationLayerFactory(),
                                             false,
                                             true);
        }
        logger.debug("[{}] using exporter {}", bean.getClass().getName(), exporter.toString());
View Full Code Here


        public RemoteWDR() {
            super();
        }

        WatchDataReplicator getWatchDataReplicator() throws ExportException {
            exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
                                             new BasicILFactory(),
                                             false,
                                             true);
            RemoteWatchDataReplicator backend = (RemoteWatchDataReplicator)exporter.export(this);
            return WatchDataReplicatorProxy.getInstance(backend, UUID.randomUUID());
View Full Code Here

        Exporter exporter = (Exporter)config.getEntry(component, entry, Exporter.class, null);
        if(exporter==null) {
            exporter = (Exporter)config.getEntry(DEFAULT_COMPONENT, ENTRY_NAME, Exporter.class, null);
            if(exporter==null) {
                try {
                    exporter = new BasicJeriExporter(getServerEndpoint(), new BasicILFactory(), false, true);
                } catch (UnknownHostException e) {
                    logger.warn("Unable to get host address, defaulting to localhost", e);
                    exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0), new BasicILFactory(), false, true);
                }
            }
        }
        if(logger.isTraceEnabled())
            logger.trace(String.format("Created %s for %s.%s", exporter, component, entry));
View Full Code Here

            if(listener==null) {
                exporter  = ExporterConfig.getExporter(config,
                                                       "org.rioproject.cybernode",
                                                       "exporter");
                if(exporter==null)
                    exporter = new BasicJeriExporter(ExporterConfig.getServerEndpoint(), new BasicILFactory());
                listener = (ServiceBeanExecListener)exporter.export(this);
            }
            return listener;
        }
View Full Code Here

        LandlordLessor landlordLessor;
        EventHandler eventHandler;
        long leaseTime = 30*1000;

        Producer() throws Exception {
            Exporter exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
                                                      new BasicILFactory(),
                                                      false,
                                                      true);
            remote = exporter.export(this);
            landlordLessor = new LandlordLessor(EmptyConfiguration.INSTANCE);
        }
View Full Code Here

            Exporter defaultExporter = (Exporter)config.getEntry(RIO_CONFIG_COMPONENT,
                                                                 DEFAULT_EXPORTER,
                                                                 Exporter.class,
                                                                 null);
            if(defaultExporter==null)
                defaultExporter = new BasicJeriExporter(ExporterConfig.getServerEndpoint(), new BasicILFactory());
            logger.trace("{} has been set as the defaultExporter", defaultExporter);
        } catch(Exception e) {
            logger.error("The {}.{} attribute must be set", RIO_CONFIG_COMPONENT, DEFAULT_EXPORTER);
            throw e;
        }
View Full Code Here

     * @throws ExportException If the exporter cannot be created
     */
     public ServiceProvisionNotification(Configuration config)
     throws ConfigurationException, ExportException {
         Exporter defaultExporter =
             new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
                                   new BasicILFactory(),
                                   false,
                                   true);
         exporter = (Exporter)config.getEntry("org.rioproject.tools.cli",
                                              "provisionListenerExporter",
View Full Code Here

     *
     * @throws java.rmi.server.ExportException If the exporter cannot be
     * created
     */
    public ServiceProvisionEventHandler() throws ExportException {
        exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
                                         new BasicILFactory(),
                                         false,
                                         true);
        provisionListener = (ServiceProvisionListener) exporter.export(this);
    }
View Full Code Here

*/
public class BasicEventListener implements RemoteEventListener {
    private final List<RemoteEvent> events = new ArrayList<RemoteEvent>();

    RemoteEventListener export() throws ExportException {
        Exporter exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
                                                  new BasicILFactory(),
                                                  false,
                                                  true);
        return (RemoteEventListener) exporter.export(this);
    }
View Full Code Here

            } catch(Exception e) {
                logger.warn("Getting provisionListenerExporter, use default", e);
            }
            /* If we still dont have an exporter create a default one */
            if(exporter==null) {
                exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
                                                 new BasicILFactory(),
                                                 false,
                                                 true);
            }
        }
View Full Code Here

TOP

Related Classes of net.jini.jeri.BasicJeriExporter

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.