Examples of addGroups()


Examples of net.jini.discovery.LookupDiscovery.addGroups()

  disc.setGroups(DiscoveryGroupManagement.NO_GROUPS);
  logger.log(Level.INFO, "set to NO_GROUPS");
  Thread.sleep(10000);
  Discarder arder = new Discarder(reg.getServiceID(), disc);
  disc.addDiscoveryListener(arder);
  disc.addGroups(actualGroups);
  logger.log(Level.INFO, "increased to " + disc.getGroups().length
       + " elements");
  Thread.sleep(30000);

  if (arder.discovery != true) {
View Full Code Here

Examples of net.jini.discovery.LookupDiscovery.addGroups()

      throw new TestException( "unexpected event reported");
  }
  disc.terminate();

  try {
      disc.addGroups(actualGroups);
      throw new TestException("addGroups after terminate didn't "
          + "throw anything");
  } catch (IllegalStateException e) {
  }
View Full Code Here

Examples of net.jini.discovery.LookupDiscoveryRegistration.addGroups()

                regInfo.setLookupsToDiscover(groupsToDiscover,
                                             new LookupLocator[0]);
            }//end sync(regInfo)
        }//endif
        /* Add to the groups the lds should discover for this registration */
        reg.addGroups(groups);
    }//end addGroupsOneReg

    /** Common code, shared by this class and its sub-classes. For each
     *  current registration with the lookup discovery service, this method
     *  replaces that registration's desired groups with the given set of
View Full Code Here

Examples of net.jini.discovery.LookupDiscoveryRegistration.addGroups()

                regInfo.setLookupsToDiscover(groupsToDiscover,
                                             new LookupLocator[0]);
            }//end sync(regInfo)
        }//endif
        /* Add to the groups the lds should discover for this registration */
        reg.addGroups(groups);
    }//end addGroupsOneReg

    /** Common code, shared by this class and its sub-classes. For each
     *  current registration with the lookup discovery service, this method
     *  replaces that registration's desired groups with the given set of
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.AttributeItem.addGroups()

     *            A simple attribute, array or attributes forming a path
     * @param group - a collection of AttributeGroups to be added.
     */
    public void addAttribute(String attributeNameOrPath, Collection<AttributeGroup> groups) {
        AttributeItem item = getItem(convert(attributeNameOrPath), true);
        item.addGroups(groups);
    }

    /**
     * Add a basic attribute or nested attribute with each String representing
     * the key of an attribute of type Map on the path to what needs to be
View Full Code Here

Examples of org.teiid.query.optimizer.relational.plantree.PlanNode.addGroups()

      newJoinNode.addLastChild(otherBranchSource);
     
      newJoinNode.setProperty(Info.JOIN_STRATEGY, JoinStrategyType.NESTED_LOOP);
      newJoinNode.setProperty(Info.JOIN_TYPE, JoinType.JOIN_INNER);
      newJoinNode.setProperty(Info.JOIN_CRITERIA, LanguageObject.Util.deepClone(criteria, Criteria.class));
      newJoinNode.addGroups(branchSource.getGroups());
      newJoinNode.addGroups(otherBranchSource.getGroups());
     
      PlanNode projectPlanNode = NodeFactory.getNewNode(NodeConstants.Types.PROJECT);
      newJoinNode.addAsParent(projectPlanNode);
     
View Full Code Here

Examples of org.teiid.query.optimizer.relational.plantree.PlanNode.addGroups()

     
      newJoinNode.setProperty(Info.JOIN_STRATEGY, JoinStrategyType.NESTED_LOOP);
      newJoinNode.setProperty(Info.JOIN_TYPE, JoinType.JOIN_INNER);
      newJoinNode.setProperty(Info.JOIN_CRITERIA, LanguageObject.Util.deepClone(criteria, Criteria.class));
      newJoinNode.addGroups(branchSource.getGroups());
      newJoinNode.addGroups(otherBranchSource.getGroups());
     
      PlanNode projectPlanNode = NodeFactory.getNewNode(NodeConstants.Types.PROJECT);
      newJoinNode.addAsParent(projectPlanNode);
     
      Select allSymbols = new Select(symbolMap.getKeys());
View Full Code Here

Examples of org.teiid.query.optimizer.relational.plantree.PlanNode.addGroups()

      allSymbols.addSymbols(otherSymbolMap.getKeys());
      if (i == 0) {
        QueryRewriter.makeSelectUnique(allSymbols, false);
      }
      projectPlanNode.setProperty(NodeConstants.Info.PROJECT_COLS, allSymbols.getSymbols());
          projectPlanNode.addGroups(newJoinNode.getGroups());
     
      joins.add(projectPlanNode);
    }
   
    PlanNode newUnion = RulePlanUnions.buildUnionTree(unionNode, joins);
View Full Code Here

Examples of org.teiid.query.optimizer.relational.plantree.PlanNode.addGroups()

      OrderBy elements = (OrderBy)sort.getProperty(NodeConstants.Info.SORT_ORDER);
      for (OrderByItem item : elements.getOrderByItems()) {
        item.setSymbol(childProject.get(selectSymbols.indexOf(item.getSymbol())));
      }
        sort.getGroups().clear();
        sort.addGroups(GroupsUsedByElementsVisitor.getGroups(elements));
    }
  }
   
    /**
     * Check to ensure that we are not projecting a subquery or null dependent expressions
View Full Code Here

Examples of org.teiid.query.optimizer.relational.plantree.PlanNode.addGroups()

        joinNode.setProperty(NodeConstants.Info.MODEL_ID, modelID);

    // Insert new access node above join node
    PlanNode newAccess = NodeFactory.getNewNode(NodeConstants.Types.ACCESS);
    newAccess.setProperty(NodeConstants.Info.MODEL_ID, modelID);
    newAccess.addGroups(rightAccess.getGroups());
    newAccess.addGroups(leftAccess.getGroups());
       
        // Combine hints if necessary
        Object leftHint = leftAccess.getProperty(NodeConstants.Info.MAKE_DEP);
        if(leftHint != null) {
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.