Package org.rioproject.deploy

Examples of org.rioproject.deploy.ServiceBeanInstance


            return list;
        }

        public void serviceInstantiated(final ServiceRecord record) {
            try {
                ServiceBeanInstance instance = getServiceBeanInstance(record);
                Class<?> proxyClass = instance.getService().getClass();
                Class<?> theInterfaceClass = null;
                for(Class<?> interfaceClass : getAllInterfaces(proxyClass)) {
                    for(ClassBundle cb : record.getServiceElement().getExportBundles()) {
                        if(interfaceClass.getName().equals(cb.getClassName())) {
                            theInterfaceClass = interfaceClass;
View Full Code Here


    private class BedListener implements RemoteServiceEventListener {
        public void notify(RemoteServiceEvent event) {
            ProvisionMonitorEvent pme = (ProvisionMonitorEvent)event;
            if(pme.getAction().equals(ProvisionMonitorEvent.Action.SERVICE_PROVISIONED)) {
                if(pme.getServiceElement().getName().equals("Beds")) {
                    ServiceBeanInstance instance = pme.getServiceBeanInstance();
                    try {
                        Bed bed = (Bed)instance.getService();
                        bedPanel.addBed(bed);
                        bedPanel.revalidate();
                        bedAssignmentCheckingPool.submit(new BedPendingAssignment(bed));
                    } catch (Exception e) {
                        e.printStackTrace();
View Full Code Here

        OperationalStringManager opMgr = entry.getValue();
        logger.debug("Decrement service {}", getNameForLogging(serviceElement));
        try {
            ServiceBeanInstance[] instances = opMgr.getServiceBeanInstances(serviceElement);
            if(instances.length>0) {
                ServiceBeanInstance instance = instances[instances.length-1];
                opMgr.decrement(instance, true, true);
            }
        } catch (Throwable t) {
            logger.warn("While trying to get the decrement {}", serviceName, t);
        }
View Full Code Here

TOP

Related Classes of org.rioproject.deploy.ServiceBeanInstance

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.