Package com.sun.jini.qa.harness

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


     *  of groups that should be expected after removing a set of groups.
     */
    public void setup(QAConfig config) throws Exception {
        super.setup(config);
        removeGroupSet = getTestGroupSet();
        AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        if (admin == null) {
            return;
        }
        String[] configGroups = admin.getGroups();

        /* Construct the set of groups expected after removal by selecting
         * each element from the set of groups with which the service is
         * currently configured that were not selected for removal.
         */
 
View Full Code Here


    /** Constructs and returns the set of locators to remove (can be
     *  overridden by sub-classes)
     */
    LookupLocator[] getTestLocatorSet() throws MalformedURLException {
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        return LocatorsUtil.getSubset(admin.getLocators());
    }
View Full Code Here

     *  locators.
     */
    public void setup(QAConfig config) throws Exception {
        super.setup(config);
        removeLocatorSet = getTestLocatorSet();
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        if (admin == null) {
            return;
        }
        LookupLocator[] configLocators = admin.getLocators();

        /* Construct the set of locators expected after removal by selecting
         * each element from the set of locators with which the service is
         * currently configured that were not selected for removal.
         */
 
View Full Code Here

     *  of locators that should be expected after adding a new set of locators.
     */
    public void setup(QAConfig config) throws Exception {
        super.setup(config);
        newLocatorSet = getTestLocatorSet();
  AbstractServiceAdmin admin =
      (AbstractServiceAdmin) manager.getAdmin(discoverySrvc);
        if (admin == null) {
            return;
        }
        LookupLocator[] configLocators = admin.getLocators();

        /* Construct the expected locators set */
        if(configLocators == null) {
            logger.log(Level.FINE,
           "expectedLocators = UnsupportedOperationException");
View Full Code Here

    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

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.