Examples of JoinManager


Examples of net.jini.lookup.JoinManager

     */
    public void setup(QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        /* Discover & join lookups just started */
        logger.log(Level.FINE, "creating a service ID join manager ...");
        joinMgrSrvcID = new JoinManager(testService,serviceAttrs,serviceID,
                                        getLookupDiscoveryManager(),null,
          sysConfig.getConfiguration());
        /* Note: no need to add joinMgrSrvcID to the joinMgrList for
         *       termination during tearDown because it will be terminated
         *       in the run method
View Full Code Here

Examples of net.jini.lookup.JoinManager

     */
    public void setup(QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        /* Discover & join lookups just started */
        logger.log(Level.FINE, "creating a service ID join manager ...");
        joinMgrSrvcID = new JoinManager(testService,serviceAttrs,serviceID,
                                        null,null,sysConfig.getConfiguration());
        /* Note: no need to add joinMgrSrvcID to the joinMgrList for
         *       termination during tearDown because it will be terminated
         *       in the run method
         */
 
View Full Code Here

Examples of net.jini.lookup.JoinManager

     */
    public void setup(QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        /* Discover & join lookups just started */
        logger.log(Level.FINE, "creating a service ID join manager ...");
        joinMgrSrvcID = new JoinManager(testService,serviceAttrs,serviceID,
                                        getLookupDiscoveryManager(),leaseMgr,
          sysConfig.getConfiguration());
        joinMgrList.add(joinMgrSrvcID);
    }//end setup
View Full Code Here

Examples of net.jini.lookup.JoinManager

     *
     * @return The JoinManager created by this utility. If a JoinManager has not
     * been created, this method will return null.
     */
    public JoinManager getJoinManager() {
        JoinManager jMgr;
        synchronized(this) {
            jMgr = joinMgr;
        }
        return (jMgr);
    }
View Full Code Here

Examples of net.jini.lookup.JoinManager

     * @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

Examples of net.jini.lookup.JoinManager

     * 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

Examples of net.jini.lookup.JoinManager

            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

Examples of net.jini.lookup.JoinManager

    /**
     * @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

Examples of net.jini.lookup.JoinManager

    /*--------------
     * 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

Examples of net.jini.lookup.JoinManager

        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
TOP
Copyright © 2018 www.massapi.com. 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.