Package com.sun.appserv.management.config

Examples of com.sun.appserv.management.config.ConfigDottedNames.dottedNameGet()


    final long  start  = now();
    final ConfigDottedNames  dottedNames  = getDomainRoot().getConfigDottedNames();
   
    final String[]  names  = getAllNames( dottedNames );
   
    final Object[] results  = dottedNames.dottedNameGet( names );
   
    checkResultsFromGet( names, results );
    printElapsed( "testGetAllConfigDottedNames", start );
  }
 
View Full Code Here


  testWildGetAllConfigDottedNames()
  {
    final long  start  = now();
    final ConfigDottedNames  dottedNames  = getDomainRoot().getConfigDottedNames();
   
    final Attribute[] results  = (Attribute[])dottedNames.dottedNameGet( "*" );
    checkResultsFromWildGet( results );
    printElapsed( "testWildGetAllConfigDottedNames", start );
  }
 
 
View Full Code Here

    final long  start  = now();
   
    final ConfigDottedNames  dottedNames  = getDomainRoot().getConfigDottedNames();
   
    final String  target  = "domain.locale";
    final Object  result  = dottedNames.dottedNameGet( target );
   
    final Attribute  localeAttr  = (Attribute)dottedNames.dottedNameGet( target );
    checkAttribute( localeAttr );
   
    final String  locale  = (String)localeAttr.getValue();
View Full Code Here

    final ConfigDottedNames  dottedNames  = getDomainRoot().getConfigDottedNames();
   
    final String  target  = "domain.locale";
    final Object  result  = dottedNames.dottedNameGet( target );
   
    final Attribute  localeAttr  = (Attribute)dottedNames.dottedNameGet( target );
    checkAttribute( localeAttr );
   
    final String  locale  = (String)localeAttr.getValue();
   
    // set to a new value
View Full Code Here

   
    // change back to previous value
    final String  restoreString  = target + "=" + (locale == null ? "" : locale);
    results  = dottedNames.dottedNameSet( new String[] { restoreString } );
   
    final Attribute  finalAttr  = (Attribute)dottedNames.dottedNameGet( target );
    assert( (finalAttr.getValue() == null && localeAttr.getValue() == null) ||
      finalAttr.getValue().equals( localeAttr.getValue() ) );
    printElapsed( "testConfigDottedNameSet", start );
  }
 
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.