Examples of AMX


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

 
    public void
  checkGetProperties( final ObjectName src )
    throws Exception
  {
    final AMX  proxy  = getProxy( src );
   
    if ( ! (proxy instanceof PropertiesAccess) )
    {
      throw new IllegalArgumentException(
        "MBean does not implement PropertiesAccess: " + quote( src ) );
View Full Code Here

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

 
    void
  removeEx(String name)
  {
    final AMX  proxy  = getProgeny( name );
    if ( proxy != null )
    {
      assert( proxy.getName().equals( name )  );
      final ObjectName  objectName  = Util.getObjectName( proxy );
     
        try
        {
          remove(name);
View Full Code Here

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

      final ProxyFactory  proxyFactory    = Util.getExtra( mDomainRoot ).getProxyFactory();
      for( final ObjectName objectName : all )
      {
          try
          {
              final AMX   amx = proxyFactory.getProxy( objectName, AMX.class );
             
              allAMX.add( amx );
          }
          catch( Exception e )
          {
View Full Code Here

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

      assert( containerObjectName == null );
    }
    else
    {
      assert( containerObjectName !=  null );
      final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class );
      assert( Util.getObjectName( proxy.getContainer() ).equals( containerObjectName ) );
    }
   
  }
View Full Code Here

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

    due to our template facility ${...}
   */
    public void
  checkTemplateAttributes( final ObjectName objectName )
  {
    final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class);
   
    if ( proxy instanceof AMXConfig )
    {
      final AMXConfig  config  = (AMXConfig)proxy;
     
View Full Code Here

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

    final Set    children  = queryMgr.queryJ2EETypeSet( childJ2EEType );
   
    final Iterator  iter  = children.iterator();
    while ( iter.hasNext() )
    {
      final AMX    containee  = Util.asAMX(iter.next());
      Container  container  = null;
     
      final ObjectName  objectName  = Util.getObjectName( containee );
      if ( ! shouldTest( objectName ) )
      {
          continue;
      }
     
      try
      {
        container  = (Container)containee.getContainer();
      }
      catch( Exception e )
      {
        trace( "Can't get container for: " + objectName );
      }
     
      if ( container == null )
      {
        assert( containee.getJ2EEType().equals( XTypes.DOMAIN_ROOT ) ) :
          "container is null for: " + objectName;
        continue;
      }
     
      final Set<AMX> containeeSet  = container.getContaineeSet( childJ2EEType );
View Full Code Here

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

   */
    public void
  checkNameMatchesJ2EEName( final ObjectName childObjectName )
    throws Exception
  {
    final AMX  childProxy  = getProxyFactory().getProxy( childObjectName, AMX.class);
    if ( childProxy instanceof NamedConfigElement )
    {
      final String    j2eeName  = childProxy.getName();
     
      assertEquals( j2eeName, childProxy.getName() );
    }
  }
View Full Code Here

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

  {
    final Set<Libraries>  all = getTestUtil().getAllAMX( Libraries.class );
   
    for( final Libraries l : all )
    {
        final AMX   amx = (AMX)l;
       
        if ( DONT_TEST_LIBRARIES.contains( amx.getName() ) )
        {
            continue;
        }
       
        final ObjectName    objectName  = Util.getObjectName( amx );
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
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.