Package com.sun.jini.admin

Examples of com.sun.jini.admin.StorageLocationAdmin


            throw new TestException(
                                 "could not successfully start the service "
                                 +serviceName);
        }
  try {
            StorageLocationAdmin locAdmin
                    = StorageAdminUtil.getStorageLocationAdmin(discoverySrvc);
            String oldLocation = locAdmin.getStorageLocation();
            logger.log(Level.FINE, ""
                              +": oldLocation = "+oldLocation);
            expectedLocation = oldLocation+"_New";
            logger.log(Level.FINE, ""
                              +": expectedLocation = "+expectedLocation);
            locAdmin.setStorageLocation(expectedLocation);
            String newLocation = locAdmin.getStorageLocation();
            logger.log(Level.FINE, ""+": newLocation = "+newLocation);
            if(!expectedLocation.equals(newLocation)) {
                throw new TestException(
                               "new location not equal to expected location");
            }
View Full Code Here


            throw new TestException(
                                 "could not successfully start the service "
                                 +serviceName);
        }
  try {
            StorageLocationAdmin locAdmin
                    = StorageAdminUtil.getStorageLocationAdmin(discoverySrvc);
            String curLocation = locAdmin.getStorageLocation();
            logger.log(Level.FINE, ""+": curLocation = "+curLocation);
            if(!expectedLocation.equals(curLocation)) {
                throw new TestException(
                           "current location not equal to expected location");
            }
View Full Code Here

TOP

Related Classes of com.sun.jini.admin.StorageLocationAdmin

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.