Package com.sun.appserv.management.config

Examples of com.sun.appserv.management.config.AMXConfig


            GuiUtil.handleError(handlerContext, "Please select atleast one target for hosting the CLB");
            return;
        } else {
            Boolean isCluster = TargetUtil.isCluster(targets.get(0));
            for(String sel: targets){
                AMXConfig sc = null;
                if(isCluster)
                    sc = AMXUtil.getDomainConfig().getClusterConfigMap().get(sel);
                else
                    sc = AMXUtil.getDomainConfig().getStandaloneServerConfigMap().get(sel);
                if (sc == null){
View Full Code Here


        LBConfig lbConfig = AMXUtil.getDomainConfig().getLBConfigMap().get(lbConfigName);
       
        if (selTargets.size()>0){
            isCluster = TargetUtil.isCluster(selTargets.get(0));
            for(String sel: selTargets){
                AMXConfig sc = null;
                if(isCluster)
                    sc = AMXUtil.getDomainConfig().getClusterConfigMap().get(sel);
                else
                    sc = AMXUtil.getDomainConfig().getStandaloneServerConfigMap().get(sel);
                if (sc == null){
View Full Code Here

      }
     
     
      if ( item.isConfigProvider() )
      {
        final AMXConfig  config  = item.getConfigPeer();
       
        if ( config == null )
        {
            // Some auto-generated items do not have config.  See if it's there
            final String props  = Util.makeRequiredProps(
View Full Code Here

  {
    final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class);
   
    if ( proxy instanceof AMXConfig )
    {
      final AMXConfig  config  = (AMXConfig)proxy;
     
      final Set<String>  s  = new HashSet<String>();
     
      final MBeanInfo  mbeanInfo  = Util.getExtra( config ).getMBeanInfo();
      final MBeanAttributeInfo[]  attrInfos  = mbeanInfo.getAttributes();
View Full Code Here

     
    final String  name  = getProgenyTestName() + "-Illegal";
   
    try
    {
        final AMXConfig  proxy = createProgeny( name, ILLEGAL_OPTIONS );
        fail( "Expecting failure from createProgenyIllegal for progeny type: " + getProgenyJ2EEType() );
      }
      catch( final Exception e )
      {
        final Throwable rootCause  = ExceptionUtil.getRootCause( e );
View Full Code Here

   
    String  name  = getProgenyTestName();
   
    final String  progenyJ2EEType  = getProgenyJ2EEType();
   
    AMXConfig  proxy  = getProgeny( name );
    if ( proxy != null )
    {
      final ObjectName  objectName  = Util.getExtra( proxy ).getObjectName();
      remove( name );
         waitUnregistered( objectName );
         assert( ! getConnection().isRegistered( objectName ) );
      assert( getProgeny( name ) == null );
      proxy  = null;
    }
   
    final Container  container  = getProgenyContainer();
    final CreateRemoveListener    listener  =
      new CreateRemoveListener( container, progenyJ2EEType, name );
   
    // create it
    try
    {
          proxy = createProgeny( name, null );
      }
      catch( Exception e )
      {
          trace( getStackTrace( ExceptionUtil.getRootCause(e) ) );
          failure( "Can't create item of j2eeType=" + progenyJ2EEType +
              ",name=" + name );
      }
      assert( proxy.getName().equals( name ) );
    final ObjectName  objectName  = Util.getObjectName( proxy );
      assert( getConnection().isRegistered( objectName ) );
      assert( container.getContainee( progenyJ2EEType, name!= null  );
      assert( container.getContainee( progenyJ2EEType, name== proxy  );
      final AMXConfig  progeny  = getProgeny( name );
      assert( progeny == proxy );

    // remove it
    final ProxyFactory  factory  = Util.getExtra( proxy ).getProxyFactory();
    assert( name.equals( progeny.getName() ) );
      remove( name );
      waitUnregistered( objectName );
      assert( ! getConnection().isRegistered( objectName ) );
      waitProxyGone( factory, objectName );
    assert( getProgeny( name ) == null );
View Full Code Here

      it so long as there is only one failure.
   */
      protected void
    preRemove( final ObjectName objectName )
    {
        final AMXConfig amxConfig = getProxy( objectName, AMXConfig.class );
       
        if ( amxConfig instanceof RefConfigReferent )
        {
            debug( "*** Removing all references to ", objectName );
           
View Full Code Here

        ConfigFactory factory    = null;
       
        boolean     attempted   = false;
        try
        {
            final AMXConfig amxConfig   = getProxy( objectName, AMXConfig.class );
            final String interfaceName   = getSimpleInterfaceName( amxConfig );
            debug( "removeConfigWithFactory: " + objectName );
           
            factory  = createConfigFactory( interfaceName );
        }
View Full Code Here

        be found.
     */
        protected final void
    removeConfigWithMethod( final ObjectName objectName )
    {
        final AMXConfig amxConfig   = getProxy( objectName, AMXConfig.class );
        final String interfaceName   = getSimpleInterfaceName( amxConfig );
        if ( ! interfaceName.endsWith( CONFIG_SUFFIX ) )
        {
            throw new IllegalArgumentException(
                "Interface doesn't end in " + CONFIG_SUFFIX + ": " + interfaceName );
        }
           
        // do it generically by constructing the expected method name,
        // and then calling it.
        final String operationName = REMOVE_PREFIX + interfaceName;
        debug( "removing config generically by calling ", operationName, "()" );
        try
        {
      final Method m  =
          this.getClass().getDeclaredMethod( operationName, STRING_SIG);
     
      m.invoke( this, amxConfig.getName() );
        }
        catch( Exception e )
        {
            throw new RuntimeException( e );
        }
View Full Code Here

           
            //Make sure the selected targets are the same type
            if (selectedTargets.size()>0){
                isCluster = TargetUtil.isCluster(selectedTargets.get(0));
                for(String sel: selectedTargets){
                    AMXConfig sc = null;
                    if(isCluster)
                        sc = AMXUtil.getDomainConfig().getClusterConfigMap().get(sel);
                    else
                        sc = AMXUtil.getDomainConfig().getStandaloneServerConfigMap().get(sel);
                    if (sc == null){
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.AMXConfig

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.