Package com.sun.appserv.management.util.jmx

Examples of com.sun.appserv.management.util.jmx.ObjectNameQueryImpl$Matcher


        super( name );
    }
                public void
  testCreation()
  {
    new ObjectNameQueryImpl();
  }
View Full Code Here


  }
 
    public void
  testEmptySet()
  {
    final ObjectNameQuery  q  = new ObjectNameQueryImpl();
   
    assertEquals( 0, q.matchAny( EmptySet, null, null ).size() );
    assertEquals( 0, q.matchAny( EmptySet, EmptyStrings, EmptyStrings ).size() );
    assertEquals( 0, q.matchAny( EmptySet, null, EmptyStrings ).size() );
    assertEquals( 0, q.matchAny( EmptySet, EmptyStrings, null ).size() );
   
    assertEquals( 0, q.matchAll( EmptySet, null, null ).size() );
    assertEquals( 0, q.matchAll( EmptySet, EmptyStrings, EmptyStrings ).size() );
    assertEquals( 0, q.matchAll( EmptySet, null, EmptyStrings ).size() );
    assertEquals( 0, q.matchAll( EmptySet, EmptyStrings, null ).size() );
  }
View Full Code Here

  testSingleItem()
  {
    final ObjectName  name1  = createName( ":name=test,type=test" );
    final Set<ObjectName>      testSet  = createSet( name1 );
   
    final ObjectNameQuery  q  = new ObjectNameQueryImpl();
   
    assertEquals( 1, q.matchAny( testSet,
      null,
      null ).size() );
   
    assertEquals( 1, q.matchAny( testSet,
      new String [] { "type" },
      new String [] { "test" } ).size() );
     
    assertEquals( 1, q.matchAny( testSet,
      new String [] { "type" },
      null ).size() );
     
    assertEquals( 1, q.matchAny( testSet,
      null,
      new String [] { "test" } ).size() );
     
     
    assertEquals( 1, q.matchAny( testSet,
      new String [] { "t.*" },
      new String [] { ".*e.*" } ).size() );
     
     
    assertEquals( 1, q.matchAny( testSet,
      null,
      new String [] { ".*e.*" } ).size() );
   
   
    assertEquals( 0, q.matchAny( testSet, EmptyStrings, EmptyStrings ).size() );
    assertEquals( 0, q.matchAny( testSet, null, EmptyStrings ).size() );
    assertEquals( 0, q.matchAny( testSet, EmptyStrings, null ).size() );
  }
View Full Code Here

    final String[]  wildValues)
  {
    final String[]  regexNames  = convertToRegex( wildKeys );
    final String[]  regexValues  = convertToRegex( wildValues );
   
    final ObjectNameQueryImpl  query  = new ObjectNameQueryImpl();
    final Set<ObjectName>  resultSet  = query.matchAll( candidates, regexNames, regexValues );
   
    return( resultSet );
  }
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.util.jmx.ObjectNameQueryImpl$Matcher

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.