Examples of AMX


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

      final Map<String,AMX> containeeMap  =
          container.getContaineeMap( j2eeType );
     
      for( final String name : containeeMap.keySet() )
      {
        final AMX containee  = container.getContainee( j2eeType, name );
         
        assert( containee != null ) :
          "can't get containee of type " + j2eeType + ", name = " + name +
          " in " + Util.getObjectName( container );
         
        assert( containee.getJ2EEType().equals( j2eeType ) );
        assert( containee.getName( ).equals( name ) );
       
        final Set<AMX>   byName  =
            container.getByNameContaineeSet( GSetUtil.newStringSet( j2eeType ), name );
        assert( byName.size() == 1 );
        assert( byName.iterator().next() == containee );
View Full Code Here

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

        final Map<String,AMX>   byType  = c.getContaineeMap( j2eeType );
        assert mapsEqual( byType, all.get( j2eeType ) );
       
        if ( byType.keySet().size() == 1 )
        {
            final AMX  cc   = c.getContainee( j2eeType );
            assert cc == byType.values().iterator().next();
        }
       
        final Set<AMX>  s = c.getContaineeSet( j2eeType );
        final Set<AMX>  sByType = new HashSet<AMX>( byType.values() );
View Full Code Here

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

  {
      final MBeanServerConnection conn    = getMBeanServerConnection();
     
      assert( containeeObjectName != null );
      assert( conn.isRegistered( containeeObjectName ) );
    final AMX  containedProxy  = getProxyFactory().getProxy( containeeObjectName, AMX.class);
    if ( containedProxy instanceof DomainRoot )
    {
        // DomainRoot has no Container
        return;
    }
   
    final ObjectName    containerObjectName = (ObjectName)
        conn.getAttribute( containeeObjectName, "ContainerObjectName" );
    if ( ! conn.isRegistered( containerObjectName ) )
    {
        warning( "Container " + StringUtil.quote( containerObjectName ) +
            " for " + StringUtil.quote( containeeObjectName ) +
            " is not registered." );
        return;
    }
     
    final AMX  parentProxy    = containedProxy.getContainer( );
   
    if ( parentProxy instanceof Container )
    {
      if ( ! ( parentProxy instanceof Container ) )
      {
View Full Code Here

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

 
    public void
  checkIsContainer( final ObjectName objectName )
    throws Exception
  {
    final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class);

    try
    {
      final Set<String>  containedJ2EETypes  =  TypeCast.asSet(
        Util.getExtra( proxy ).getAttribute( Container.ATTR_CONTAINEE_J2EE_TYPES ) );
View Full Code Here

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

      final Map<String,AMX> containeeMap  =
          container.getContaineeMap( j2eeType );
     
      for( final String name : containeeMap.keySet() )
      {
        final AMX containee  = container.getContainee( j2eeType, name );
         
        assert( containee != null ) :
          "can't get containee of type " + j2eeType + ", name = " + name +
          " in " + Util.getObjectName( container );
         
        assert( containee.getJ2EEType().equals( j2eeType ) );
        assert( containee.getName( ).equals( name ) );
       
        final Set<AMX>   byName  =
            container.getByNameContaineeSet( GSetUtil.newStringSet( j2eeType ), name );
        assert( byName.size() == 1 );
        assert( byName.iterator().next() == containee );
View Full Code Here

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

        final Map<String,AMX>   byType  = c.getContaineeMap( j2eeType );
        assert mapsEqual( byType, all.get( j2eeType ) );
       
        if ( byType.keySet().size() == 1 )
        {
            final AMX  cc   = c.getContainee( j2eeType );
            assert cc == byType.values().iterator().next();
        }
       
        final Set<AMX>  s = c.getContaineeSet( j2eeType );
        final Set<AMX>  sByType = new HashSet<AMX>( byType.values() );
View Full Code Here

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

    assert( proxies.size() != 0 );
   
    final Iterator  iter  = proxies.iterator();
    while ( iter.hasNext() )
    {
      final AMX  proxy  = Util.asAMX(iter.next());
    }
  }
View Full Code Here

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

    for( final String j2eeType : typeMap.keySet() )
    {
      final Map<String,AMX>  proxyMap  = typeMap.get( j2eeType );
      for( final String name : proxyMap.keySet() )
      {
        final AMX    amx  = Util.asAMX(proxyMap.get( name ));
       
        final AMX  proxy  = mgr.getContainee( j2eeType, name);
       
        assert( Util.getObjectName( proxy ).equals( Util.getObjectName( amx ) ) );
        assert( proxy.getName().equals( name ) );
      }
    }
  }
View Full Code Here

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

      GSetUtil.newUnmodifiableStringSet( XTypes.CALL_FLOW_MONITOR, XTypes.LOGGING );
     
      protected boolean
  isRemoteIncomplete( final ObjectName objectName )
  {
     final AMX amx    = getProxyFactory().getProxy( objectName, AMX.class );
     final String j2eeType    = amx.getJ2EEType();
    
     final boolean    isRemote    = ! amx.isDAS();
    
     if ( isRemote &&
       ! EXPECTED_REMOTE_INCOMPLETE_TYPES.contains( j2eeType ) )
     {
          warning( "isRemoteIncomplete: not expecting j2eeType=" + j2eeType +
View Full Code Here

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

    protected final AMX
  getProxy( final ObjectName objectName )
  {
    final ProxyFactory  factory  = ProxyFactory.getInstance( getConnectionSource(), true);
   
    final AMX proxy   = factory.getProxy( objectName, AMX.class );
   
    return( proxy );
  }
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.