Package com.sun.appserv.management.config

Examples of com.sun.appserv.management.config.ConfigDottedNames


 
    public void
  testGetAllConfigDottedNames()
  {
    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


 
    public void
  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

    public void
  testConfigDottedNameSet()
  {
    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();
   
    // set to a new value
    Object[]  results  = dottedNames.dottedNameSet( new String[] { target + "=dummy_locale" } );
    assert( results.length == 1 );
    checkAttribute( (Attribute)results[ 0 ] );
   
    // 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

 
    public void
  testRecursiveConfigDottedNameList()
  {
    final long  start  = now();
    final ConfigDottedNames  dottedNames  = getDomainRoot().getConfigDottedNames();
   
    final int  numFound  = testList( dottedNames, "domain" );
    assert( numFound >= 4 )// should be at least 4.
    printElapsed( "testRecursiveConfigDottedNameList", start );
  }
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.ConfigDottedNames

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.