Package net.jini.export

Examples of net.jini.export.Exporter


     */
    public Object getAdmin() {
        Object adminProxy = null;
        try {
            if(admin == null) {
                Exporter adminExporter = getAdminExporter();
                if (contextMgr != null)
                    admin = new ServiceAdminImpl(this, adminExporter, contextMgr.getContextAttributeLogHandler());
                else
                    admin = new ServiceAdminImpl(this, adminExporter);
            }
View Full Code Here


     * @throws Exception If there are errors getting the Exporter
     */
    protected Exporter getExporter(final Configuration config) throws Exception {
        if(config==null)
            throw new IllegalArgumentException("config is null");
        Exporter exporter = ExporterConfig.getExporter(config, serviceBeanComponent, "serverExporter");
        return(exporter);
    }
View Full Code Here

     * @throws ConfigurationException If there are errors reading the
     * configuration
     * @throws UnknownHostException If the host is unknown
     */
    protected Exporter getAdminExporter() throws ConfigurationException, UnknownHostException {
        Exporter adminExporter = null;
        if(context!=null) {
            adminExporter = ExporterConfig.getExporter(context.getConfiguration(),
                                                       serviceBeanComponent,
                                                       "adminExporter");
            if(logger.isDebugEnabled())
                logger.debug("[{}] using admin exporter: {}",
                             ServiceElementUtil.getLoggingName(context), adminExporter.toString());
        }
        return(adminExporter);
    }
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

     */
    public Object getAdmin() {
        Object adminProxy = null;
        try {
            if(admin == null) {
                Exporter adminExporter = getAdminExporter();
                if (contextMgr != null)
                    admin = new CybernodeAdminImpl(this, adminExporter, contextMgr.getContextAttributeLogHandler());
                else
                    admin = new CybernodeAdminImpl(this, adminExporter);
            }
View Full Code Here

        }
       
        /* Get the Configuration */
        config = context.getConfiguration();
        try {
            Exporter defaultExporter = (Exporter)config.getEntry(RIO_CONFIG_COMPONENT,
                                                                 DEFAULT_EXPORTER,
                                                                 Exporter.class,
                                                                 null);
            if(defaultExporter==null)
                defaultExporter = new BasicJeriExporter(ExporterConfig.getServerEndpoint(), new BasicILFactory());
View Full Code Here

     * @throws ConfigurationException If the configuration is no good
     * @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",
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

     */
    public Object getAdmin() {
        Object adminProxy = null;
        try {
            if(admin == null) {
                Exporter adminExporter = getAdminExporter();
                admin = new EventCollectorAdminImpl(this, adminExporter);
            }
            admin.setServiceBeanContext(getServiceBeanContext());
            adminProxy = admin.getServiceAdmin();
        } catch (Throwable t) {
View Full Code Here

    public ChainedRemoteEventListener(RemoteEventListener eventListener,
                                      Configuration configuration) throws ConfigurationException, ExportException {
        if (eventListener == null)
            throw new IllegalArgumentException("eventListener must not be null");
        this.eventListener = eventListener;
        final Exporter exporter = ExporterConfig.getExporter(configuration,
                                                             "org.rioproject.event",
                                                             "eventConsumerExporter");
        remoteEventListener = (RemoteEventListener) exporter.export(this);
        execService.submit(new EventNotifier());
    }
View Full Code Here

TOP

Related Classes of net.jini.export.Exporter

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.