Package org.rioproject.impl.service

Examples of org.rioproject.impl.service.LandlordLessor


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


        Configuration config = context.getConfiguration();
        /*
         * Create the LandlordLessor for clients that desire to monitor this
         * service
         */
        monitorLandlord = new LandlordLessor(config);
        /*
         * Create an EventDescriptor for the SLAThresholdEvent and add it as an
         * attribute. Create a DispatchEventHandler to handle the sending of
         * SLAThresholdEvents
         */
 
View Full Code Here

        /* Create a ThreadPool for provision failure notification */
        //provisionFailurePool = (ThreadPoolExecutor) Executors.newFixedThreadPool(provisioningPoolMaxThreads);
        provisionFailurePool = (ThreadPoolExecutor) Executors.newCachedThreadPool();

        /* Create the LandlordLessor */
        landlord = new LandlordLessor(config, provisionerLeasePolicy);
        landlord.addLeaseListener(new LeaseMonitor());

        /* Get the ServiceResourceSelector */
        selector = (ServiceResourceSelector)config.getEntry(CONFIG_COMPONENT,
                                                            "serviceResourceSelector",
View Full Code Here

    public AbstractEventHandler(EventDescriptor descriptor, Configuration config) throws IOException {
        if(descriptor == null)
            throw new IllegalArgumentException("descriptor is null");
        this.descriptor = descriptor;
        resourceMgr = new LeasedListManager();
        landlord = new LandlordLessor(config);
        landlord.addLeaseListener(resourceMgr);
    }
View Full Code Here

TOP

Related Classes of org.rioproject.impl.service.LandlordLessor

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.