Package com.sun.jini.qa.harness

Examples of com.sun.jini.qa.harness.AbstractServiceAdmin


    public void setup(QAConfig config) throws Exception {
        super.setup(config);
        String joinStr =
      config.getStringConfigVal(serviceName + ".tojoin", null);
        logger.log(Level.FINE, "joinStr from QAConfig = " + joinStr);
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        if (admin == null) {
            return;
        }
        expectedLocators = admin.getLocators();
        if(expectedLocators != null){
            if(expectedLocators.length == 0) {
                logger.log(Level.FINE,
         "expectedLocators.length = {no locators}");
            } else {
View Full Code Here


     *  are the lookup service(s) that the lookup discovery service is
     *  expected to attempt to join.
     */
    public void setup(QAConfig config) throws Exception {
        super.setup(config);
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        if (admin == null) {
            return;
        }
        expectedGroups = admin.getGroups();
        if(expectedGroups != DiscoveryGroupManagement.ALL_GROUPS){
            if(expectedGroups == DiscoveryGroupManagement.NO_GROUPS){
                logger.log(Level.FINE, "expectedGroups = NO_GROUPS");
            } else if(expectedGroups.length == 0) {
                logger.log(Level.FINE,
View Full Code Here

    /** Constructs and returns the set of locators to remove  (overrides
     *  the parent class' version of this method)
     */
    LookupLocator[] getTestLocatorSet() throws MalformedURLException {
        /* First retrieve a sub-set of the initial locators */
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        LookupLocator[] subsetCurLocators = LocatorsUtil.getSubset(admin.getLocators());
        /* Next, use the above sub-set to construct a set with duplicates */
        return (LocatorsUtil.getLocatorsWithDups(subsetCurLocators));
    }
View Full Code Here

    /** Constructs and returns the set of locators to add (overrides the
     *  parent class' version of this method)
     */
    LookupLocator[] getTestLocatorSet() throws MalformedURLException {
  AbstractServiceAdmin admin = (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        return LocatorsUtil.getLocatorsWithDups(admin.getLocators());
    }
View Full Code Here

    /** Constructs and returns the set of groups to add (overrides the
     *  parent class' version of this method)
     */
    String[] getTestGroupSet() {
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        return GroupsUtil.getGroupsWithDups(admin.getGroups());
    }
View Full Code Here

    /** Constructs and returns the set of locators with which to replace
     *  the service's current set of locators (overrides the parent class'
     *  version of this method)
     */
    LookupLocator[] getTestLocatorSet() throws MalformedURLException {
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        return (LocatorsUtil.getLocatorsWithDups(admin.getLocators()));
    }
View Full Code Here

    /** Constructs and returns the set of groups with which to replace
     *  the service's current set of groups (overrides the parent class'
     *  version of this method)
     */
    String[] getTestGroupSet() {
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        return GroupsUtil.getGroupsWithDups(admin.getGroups());
    }
View Full Code Here

     *  of groups that should be expected after adding a new set of groups.
     */
    public void setup(com.sun.jini.qa.harness.QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        newGroupSet = getTestGroupSet();
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        if (admin == null) {
            return;
        }
        String[] configGroups = admin.getGroups();
        /* Construct the expected groups set */
        if(configGroups == DiscoveryGroupManagement.ALL_GROUPS) {
            logger.log(Level.FINE,
           "expectedGroups = UnsupportedOperationException");
        } else {//configGroups != DiscoveryGroupManagement.ALL_GROUPS
View Full Code Here

    /** Constructs and returns the set of groups to remove (overrides
     *  the parent class' version of this method)
     */
    String[] getTestGroupSet() {
        /* First retrieve a sub-set of the initial groups */
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        String[] subsetCurGroups = GroupsUtil.getSubset(admin.getGroups());
        /* Next, use the above sub-set to construct a set with duplicates */
        return GroupsUtil.getGroupsWithDups(subsetCurGroups);
    }
View Full Code Here

    /** Constructs and returns the set of groups to remove (can be
     *  overridden by sub-classes)
     */
    String[] getTestGroupSet() { 
        AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        return GroupsUtil.getSubset(admin.getGroups());
    }
View Full Code Here

TOP

Related Classes of com.sun.jini.qa.harness.AbstractServiceAdmin

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.