Package org.rioproject.admin

Examples of org.rioproject.admin.ServiceBeanAdmin


            ServiceBeanConfig jsbConfig = null;
            Uuid instantiatorUuid = null;
            if(item.service instanceof Administrable) {
                Object admin = ((Administrable)item.service).getAdmin();
                if(admin instanceof ServiceBeanAdmin) {
                    ServiceBeanAdmin jsbAdmin = (ServiceBeanAdmin)admin;
                    jsbConfig = jsbAdmin.getServiceElement().getServiceBeanConfig();
                    instantiatorUuid = jsbAdmin.getServiceBeanInstantiatorUuid();
                }
            }

            ComputeResourceInfo computeResourceInfo = getComputeResourceInfo(item.attributeSets);
            if(computeResourceInfo!=null) {
View Full Code Here


        try {
            if(serviceID == null) {
                peerLogger.info("No ServiceID for newly discovered ProvisionMonitor, cant setup FDH");
                return;
            }
            ServiceBeanAdmin sbAdmin = (ServiceBeanAdmin)((Administrable)service).getAdmin();
            ClassBundle fdhBundle = sbAdmin.getServiceElement().getFaultDetectionHandlerBundle();
            FaultDetectionHandler<ServiceID> fdh =
                FaultDetectionHandlerFactory.getFaultDetectionHandler(fdhBundle, service.getClass().getClassLoader());
            fdh.register(this);
            fdh.monitor(service, serviceID, lCache);
            fdhTable.put(serviceID, fdh);
View Full Code Here

TOP

Related Classes of org.rioproject.admin.ServiceBeanAdmin

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.