Package com.sun.appserv.management.base

Examples of com.sun.appserv.management.base.QueryMgr


  }
 
    public void
  testJVMs()
  {
    final QueryMgr  queryMgr  = getQueryMgr();
   
    final Set  jvms  = queryMgr.queryJ2EETypeSet( J2EETypes.JVM );
    final Iterator  iter  = jvms.iterator();
   
    String  lastVendor  = null;
    String  lastVersion  = null;
    while ( iter.hasNext() )
View Full Code Here


 
    public void
  testJ2EE()
    throws ClassNotFoundException
  {
    final QueryMgr  queryMgr  = getQueryMgr();
   
    final Set<J2EEManagedObject>  j2eeAll  =
        queryMgr.queryInterfaceSet( J2EEManagedObject.class.getName(), null);
   
    final Set<ObjectName>  failedSet  = new HashSet<ObjectName>();
    final Set<ObjectName>  noPeerSet  = new HashSet<ObjectName>();
   
    for( final J2EEManagedObject item : j2eeAll )
View Full Code Here

    }
   
        private Set<ObjectName>
    getRegisteredCustoms()
    {
      final QueryMgr  queryMgr    = getQueryMgr();
      final Set<ObjectName>   mbeans  =
          queryMgr.queryPatternObjectNameSet( CustomMBeanConfig.JMX_DOMAIN, "type=" + TEST_TYPE );
     
      return mbeans;
    }
View Full Code Here

  testListen()
    throws Exception
  {
    final NotificationService  proxy  = create();
 
    final QueryMgr  queryMgr  = getQueryMgr();
    final ObjectName  objectName  = Util.getObjectName( queryMgr );
   
    final Object  id  = proxy.createBuffer( 10, null);
    final NotificationServiceHelper  helper  = new NotificationServiceHelper( proxy, id);
    proxy.listenTo( objectName, null );
    assert( proxy.getListeneeSet().size() == 1 );
    assert( Util.getObjectName( (Util.asAMX(proxy.getListeneeSet().iterator().next())) ).equals( objectName ) );
   
    final MyListener  myListener  = new MyListener();
    proxy.addNotificationListener( myListener, null, null );
    
    final Level  saveLevel = queryMgr.getMBeanLogLevel();
    queryMgr.setMBeanLogLevel( Level.INFO );
    queryMgr.setMBeanLogLevel( saveLevel );
   
    // delivery may be asynchronous; wait until done
    while ( myListener.getCount() < 2 )
    {
      sleep( 20 );
View Full Code Here

    Verify that each child's Container actually claims the child as a child.
   */
    public void
  checkContainerChild( final String childJ2EEType )
  {
    final QueryMgr  queryMgr  = getQueryMgr();
    final Set    children  = queryMgr.queryJ2EETypeSet( childJ2EEType );
   
    final Iterator  iter  = children.iterator();
    while ( iter.hasNext() )
    {
      final AMX    containee  = Util.asAMX(iter.next());
View Full Code Here

 
    public void
  testQueryMgr()
    throws Exception
  {
    final QueryMgr  proxy  = (QueryMgr)getQueryMgr();
    Util.getObjectName( proxy );
    proxy.getContainer();
    proxy.getDomainRoot();
  }
View Full Code Here

   
 
      public void
    testStats()
    {
      final QueryMgr  q  = getQueryMgr();
     
      final Set  wsMonitors  = q.queryJ2EETypeSet(
        XTypes.WEBSERVICE_ENDPOINT_MONITOR );
     
      if wsMonitors.size() == 0 )
      {
        warning( "WebServiceEndpointMonitorTest: no MBeans found to test.");
View Full Code Here

    }

    public void
  testGetAttrs()
  {
    final QueryMgr  queryMgr  = getQueryMgr();
   
    final String  props  = Util.makeJ2EETypeProp( XTypes.SSL_CONFIG );
    final Set    sslConfigs  = queryMgr.queryPropsSet( props );
    final Iterator  iter  = sslConfigs.iterator();
    while( iter.hasNext() )
    {
      final SSLConfig  ssl  = (SSLConfig)iter.next();
     
View Full Code Here

    public synchronized void
  xtestQueryMgr()
    throws IllegalAccessException, InvocationTargetException
  {
    final DomainRoot  domainRoot  = getDomainRoot();
    final QueryMgr    queryMgr   = domainRoot.getQueryMgr();
   
    final String  domain  = Util.getObjectName( queryMgr ).getDomain();
   
    printPerf( "-- QueryMgr --- " );
   
View Full Code Here

   
 
      public void
    testStats()
    {
      final QueryMgr  q  = getQueryMgr();
     
      final Set  beanCacheMonitors  = q.queryJ2EETypeSet( XTypes.BEAN_CACHE_MONITOR );
     
      if beanCacheMonitors.size() == 0 )
      {
        warning( "BeanCacheMonitorTest: no MBeans found to test." );
      }
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.base.QueryMgr

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.