Package org.rioproject.cybernode

Examples of org.rioproject.cybernode.Cybernode


                        if (num < 1 || num > (items.length + 1)) {
                            printRequest(out, action);
                        } else {
                            if (num == (items.length + 1)) {
                                for(ServiceItem item : items) {
                                    Cybernode cybernode = (Cybernode)item.service;
                                    handleAction(cybernode, action);
                                }
                            } else {
                                Cybernode cybernode = (Cybernode)items[num-1].service;
                                handleAction(cybernode, action);
                            }
                            break;
                        }
                    } catch (NumberFormatException e) {
View Full Code Here


                                    o.toString());
                        return null;
                    }
                    handle.setElem(elem);
                    handle.setOpMgr(opMgr);
                    Cybernode c = null;

                    for(ServiceBeanInstance sbi : opMgr.getServiceBeanInstances(elem)) {
                        if(o.equals(sbi.getService())) {
                            elem.setServiceBeanConfig(sbi.getServiceBeanConfig());
                            Uuid uuid = sbi.getServiceBeanInstantiatorID();
                            for(ServiceBeanInstantiator s : monitor.getServiceBeanInstantiators()) {
                                if(uuid.equals(s.getInstantiatorUuid())) {
                                    c = (Cybernode)s;
                                    break;
                                }
                            }
                        }
                    }
                    if(c!=null) {
                        Watchable w;
                        if(elem.forkService()) {
                            int registryPort = ((CybernodeAdmin)c.getAdmin()).getRegistryPort();
                            String address = c.getInetAddress().getHostAddress();
                            Registry registry = LocateRegistry.getRegistry(address, registryPort);
                            Remote r = null;
                            NotBoundException notBound = null;
                            //for(int i=0; i<3; i++) {
                                try {
View Full Code Here

TOP

Related Classes of org.rioproject.cybernode.Cybernode

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.