Examples of addGroups()


Examples of com.taskadapter.redmineapi.bean.User.addGroups()

    final String name = JsonInput.getStringOrNull(content, "name");
    if (name != null)
      result.setFullName(name);
    result.addMemberships(JsonInput.getListOrEmpty(content, "memberships",
        MEMBERSHIP_PARSER));
    result.addGroups(JsonInput.getListOrEmpty(content, "groups",
        GROUP_PARSER));
    /* Fix user for membership */
    for (Membership m : result.getMemberships())
      m.setUser(result);

View Full Code Here

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

  concurrentObj.writeLock();
  try {
      ready.check();
      DiscoveryGroupManagement dgm = (DiscoveryGroupManagement) discoer;
      try {
    dgm.addGroups(groups);
      } catch (IOException e) {
    throw new RuntimeException(e.toString());
      }
      lookupGroups = dgm.getGroups();
      addLogRecord(new LookupGroupsChangedLogObj(lookupGroups));
View Full Code Here

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

  concurrentObj.writeLock();
  try {
      ready.check();
      DiscoveryGroupManagement dgm = (DiscoveryGroupManagement) discoer;
      try {
    dgm.addGroups(groups);
      } catch (IOException e) {
    throw new RuntimeException(e.toString());
      }
      lookupGroups = dgm.getGroups();
      addLogRecord(new LookupGroupsChangedLogObj(lookupGroups));
View Full Code Here

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

  concurrentObj.writeLock();
  try {
      ready.check();
      DiscoveryGroupManagement dgm = (DiscoveryGroupManagement) discoer;
      try {
    dgm.addGroups(groups);
      } catch (IOException e) {
    throw new RuntimeException(e.toString());
      }
      lookupGroups = dgm.getGroups();
      addLogRecord(new LookupGroupsChangedLogObj(lookupGroups));
View Full Code Here

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

        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();
                    } catch(IOException ioe) {
                        logger.warn("Persisting Added Lookup groups", ioe);
View Full Code Here

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

    creatorListener = new ServiceCreatorListener();
    destroyListener = new JobDestroyListener();
    ServiceItem si;
    LookupDiscovery discovery = new
      LookupDiscovery(LookupDiscovery.NO_GROUPS);
    discovery.addGroups(spaceGroups);
    ServiceDiscoveryManager serviceDiscoveryManager = new
      ServiceDiscoveryManager(discovery, null);
    si = serviceDiscoveryManager.lookup(spaceTempl, null,
                                        30 * 1000);
    if(si != null && si.service != null) {
View Full Code Here

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

        /* Using either addGroups ore setGroups, re-configure the lookup
         * discovery utility to discover the lookup services started in
         * setup
         */
        if(addGroups) {
            ld.addGroups(groupsToDiscover);
        } else {
            ld.setGroups(groupsToDiscover);
        }//endif
        /* Verify that the listener receives the expected events */
        waitForDiscovery(mainListener);
View Full Code Here

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

            /* Attempt to add a finite set of groups to the original set */
            logger.log(Level.FINE, "invoking addGroups to augment "
                              +"the groups to discover with --");
            GroupsUtil.displayGroupSet(groupsToDiscover,"  newGroups",
                                       Level.FINE);
            newLD.addGroups(groupsToDiscover);
        } catch(UnsupportedOperationException e) {
            logger.log(Level.FINE, "UnsupportedOperationException "
                              +"on attempt to augment ALL_GROUPS as expected");
            return;
        }
View Full Code Here

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

  ServiceRegistrar reg = createLookup();
  admin = getAdmin(reg);
  String[] actualGroups = new String[] {
      reg.getServiceID().toString() };
  admin.setMemberGroups(actualGroups);
  disc.addGroups(Util.makeGroups("added", 200));
  logger.log(Level.INFO, "increased to " + disc.getGroups().length
       + " elements");
  Thread.sleep(10000);
  disc.removeGroups(Util.makeGroups("start", 300));
  logger.log(Level.INFO,
View Full Code Here

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

  disc.setGroups(DiscoveryGroupManagement.ALL_GROUPS);
  logger.log(Level.INFO, "set to ALL_GROUPS");
  Thread.sleep(60000);

  try {
      disc.addGroups(actualGroups);
      throw new TestException("addGroups to null didn't throw anything");
  } catch (UnsupportedOperationException e) {
      // expected
  }
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.