Package net.jini.lookup

Examples of net.jini.lookup.JoinManager$ProxyReg


     * @param attrSets array of Entry containing the actual modifications to
     * make in the matching sets found using the attrSetTemplates parameter
     * @see net.jini.lookup.JoinManager#modifyAttributes
     */
    public void modifyAttributes(final Entry[] attrSetTemplates, final Entry[] attrSets) {
        JoinManager jMgr = getJoinManager();
        if(jMgr == null)
            return;
        jMgr.modifyAttributes(attrSetTemplates, attrSets);
    }
View Full Code Here


     * If the JoinManager is null, this method will rturn null
     *
     * @return DiscoveryManagement
     */
    public DiscoveryManagement getDiscoveryManager() {
        JoinManager jMgr = getJoinManager();
        if(jMgr == null)
            return(null);
        return (jMgr.getDiscoveryManager());
    }
View Full Code Here

            attrs.addAll(Arrays.asList(additionalAttrs));
        }
        attrs.addAll(attrList);
        logger.debug("Joining with the following attributes {}", attrs);
        synchronized(this) {
            joinMgr = new JoinManager(proxy, attrs.toArray(new Entry[attrs.size()]), sid, dMgr, lrm);
        }
    }
View Full Code Here

    /**
     * @see org.rioproject.admin.ServiceAdmin#getJoinSet()
     */
    public ServiceRegistrar[] getJoinSet() {
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null)
            return(mgr.getJoinSet());
        else
            logger.warn("JoinManager is null");
        return(new ServiceRegistrar[0]);
    }
View Full Code Here

    /*--------------
     * JoinAdmin
     *-------------*/
    public Entry[] getLookupAttributes() {
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null)
            return(mgr.getAttributes());
        else {
            logger.debug("JoinManager is null");
        }
        return(new Entry[0]);
    }
View Full Code Here

        return(new Entry[0]);
    }

    public void addLookupAttributes(Entry[] attrs) {
        //service.addAttributes(attrs);
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null) {
            if(attrs != null && attrs.length != 0)
                mgr.addAttributes(attrs, true);
            if(snapshotHandler!=null) {
                try {
                    snapshotHandler.takeSnapshot();
                } catch(IOException ioe) {
                    logger.warn("Persisting Added Lookup Attributes", ioe);
View Full Code Here

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

    public void modifyLookupAttributes(Entry[] attrSetTemplates, Entry[] attrSets) {       
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null) {
            mgr.modifyAttributes(attrSetTemplates, attrSets, true);
            if(snapshotHandler!=null) {
                try {
                    snapshotHandler.takeSnapshot();
                } catch(IOException ioe) {
                    logger.warn("Persisting Modified Lookup Attributes", ioe);
View Full Code Here

        }
    }

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

        DiscoveryGroupManagement dgm = (DiscoveryGroupManagement)dm;
        return(dgm.getGroups());       
    }

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

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

    public void removeLookupGroups(String[] groups) {
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null) {
            try {
                DiscoveryManagement dm = mgr.getDiscoveryManager();
                DiscoveryGroupManagement dgm = (DiscoveryGroupManagement)dm;
                dgm.removeGroups(groups);
                if(snapshotHandler!=null) {
                    try {
                        snapshotHandler.takeSnapshot();
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.