Package net.jini.lookup

Examples of net.jini.lookup.JoinManager$ProxyReg


            }
        }
    }

    public void setLookupGroups(String[] groups) {
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null) {
            try {
                DiscoveryManagement dm = mgr.getDiscoveryManager();
                DiscoveryGroupManagement dgm = (DiscoveryGroupManagement)dm;
                dgm.setGroups(groups);
                if(snapshotHandler!=null) {
                    try {
                        snapshotHandler.takeSnapshot();
View Full Code Here


        }
    }

    public LookupLocator[] getLookupLocators() {
        DiscoveryManagement dm;
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null) {
            dm = mgr.getDiscoveryManager();
        } else {
            try {
                dm = service.getServiceBeanContext().getDiscoveryManagement();
            } catch(IOException e) {
                logger.warn( "Getting DiscoveryManagement", e);
View Full Code Here

        DiscoveryLocatorManagement dlm = (DiscoveryLocatorManagement)dm;
        return(dlm.getLocators());       
    }

    public void addLookupLocators(LookupLocator[] locators) {
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null) {
            DiscoveryManagement dm = mgr.getDiscoveryManager();
            DiscoveryLocatorManagement dlm = (DiscoveryLocatorManagement)dm;
            dlm.addLocators(locators);
            if(snapshotHandler!=null) {
                try {
                    snapshotHandler.takeSnapshot();
View Full Code Here

        } else
            logger.warn("JoinManager is null");
    }

    public void removeLookupLocators(LookupLocator[] locators) {
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null) {
            DiscoveryManagement dm = mgr.getDiscoveryManager();
            DiscoveryLocatorManagement dlm = (DiscoveryLocatorManagement)dm;
            dlm.removeLocators(locators);
            if(snapshotHandler!=null) {
                try {
                    snapshotHandler.takeSnapshot();
View Full Code Here

        } else
            logger.warn("JoinManager is null");
    }

    public void setLookupLocators(LookupLocator[] locators) {
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null) {
            DiscoveryManagement dm = mgr.getDiscoveryManager();
            DiscoveryLocatorManagement dlm = (DiscoveryLocatorManagement)dm;
            dlm.setLocators(locators);
            if(snapshotHandler!=null) {
                try {
                    snapshotHandler.takeSnapshot();
View Full Code Here

            logger.trace("attribute is null");
            return;
        }
        joiner.addAttribute(attribute);
        if (jsbState.getState() == ServiceBeanState.ADVERTISED) {
            JoinManager jMgr = getJoinManager();
            if (jMgr != null)
                jMgr.addAttributes(new Entry[]{attribute});
            else
                throw new IllegalArgumentException("JoinManager is null");
        }
    }
View Full Code Here

TOP

Related Classes of net.jini.lookup.JoinManager$ProxyReg

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.