Package com.sun.appserv.management.base

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


  {
    final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class );
   
    if ( proxy instanceof Container && proxy.getGroup().equals( AMX.GROUP_CONFIGURATION ) )
    {
      final Extra  extra  = Util.getExtra( proxy );
      final String[] attrNames  = extra.getAttributeNames();
     
      for( int i = 0; i < attrNames.length; ++i )
      {
        final String  name  = attrNames[ i ];
                       
        final String  SUFFIX  = "ObjectNameMap";
        final String  PREFIX  = JMXUtil.GET;
        if ( name.endsWith( SUFFIX ) )
        {
          final String  base  = StringUtil.stripPrefixAndSuffixname, PREFIX, SUFFIX );
                   
                    if ( base.endsWith( "ConnectorModuleConfig" ) )
                    {
                        // these are created via deployment not directly
                        continue;
                    }
                   
          final String  createName  = "create" + base;
          final String  removeName  = "remove" + base;
         
          final String  j2eeType  = proxy.getJ2EEType();
          if ( ignoreCreateRemove( proxy.getJ2EEType(), createName ) )
          {
            continue;
          }
         
          final MBeanOperationInfo[]  creates  =
            JMXUtil.findOperations( extra.getMBeanInfo().getOperations(), createName );
          boolean  haveCreate  = false;
          for( int op = 0; op < creates.length; ++op )
          {
            final MBeanOperationInfo  info  = creates[ op ];
            if ( info.getReturnType().equals( ObjectName.class.getName() ) )
            {
              haveCreate  = true;
              break;
            }
          }
          assert( haveCreate ) :
            "Missing operation " + createName + "() for " + objectName;
         
          final MBeanOperationInfo[]  removes  =
            JMXUtil.findOperations( extra.getMBeanInfo().getOperations(), removeName );
          boolean  haveRemove  = false;
          for( int op = 0; op < removes.length; ++op )
          {
            final MBeanOperationInfo  info  = removes[ op ];
            if ( info.getReturnType().equals( "void" ) &&
View Full Code Here


      if ( mon != null )
      {
        final AMX  monStats = getProxyFactory().getProxy( mon, AMX.class);
        try
        {
          final Extra  extra  = Util.getExtra( monStats );
          stats  = (Stats)extra.getAttribute( "stats" );
         
        }
        catch( Exception e )
        {
          // OK, ignore
View Full Code Here

            /* while deleting references, certain ones, such as those contained
               within a cluster, implicitly delete other (redundant) references
               eg references by clustered servers.  Verify that a reference still
               exists before attempting to delete it.
             */
            final Extra extra = Util.getExtra( ref );
            if ( extra.checkValid() )
            {
                final ConfigRemover rrc   = ConfigRemover.class.cast( ref.getContainer() );
               
                try
                {
View Full Code Here

TOP

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

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.