Package com.sun.appserv.management.config

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


      final Set<DeployedItemRefConfig>    refs    =
          getQueryMgr().queryJ2EETypeNameSet( XTypes.DEPLOYED_ITEM_REF_CONFIG, moduleID );
     
      for( final DeployedItemRefConfig ref : refs )
      {
          final DeployedItemRefConfigCR container = (DeployedItemRefConfigCR)ref.getContainer();
         
          container.removeDeployedItemRefConfig( ref.getName() );
      }
  }
View Full Code Here


       
         /*
   * Given the name of an application  and the target, create the application-ref object
   */
  static public void createDeployedItemRefObject(String name, String targetName){
      DeployedItemRefConfigCR target = AMXUtil.getDomainConfig().getStandaloneServerConfigMap().get(targetName);
            if (target == null){
    target = AMXUtil.getDomainConfig().getClusterConfigMap().get(targetName);
                if (target == null){
                    //TODO log error
                    return;
                }
            }
            target.createDeployedItemRefConfig(name);
  }
View Full Code Here

  }
         /*
   * Given the name of an application  and the target, deletes the application-ref object
   */
  static public void removeDeployedItemRefObject(String name, String targetName){
      DeployedItemRefConfigCR target = AMXUtil.getDomainConfig().getStandaloneServerConfigMap().get(targetName);
            if (target == null){
    target = AMXUtil.getDomainConfig().getClusterConfigMap().get(targetName);
                if (target == null){
                    //TODO log error
                    return;
                }
            }
            target.removeDeployedItemRefConfig(name);
  }
View Full Code Here

        try{
            for(Map oneRow: selectedRows){
                ObjectName objName = new ObjectName((String)oneRow.get("objectName"));
                Set<DeployedItemRefConfig> appRefs = AMXUtil.getQueryMgr().queryPatternSet(objName);
                for(DeployedItemRefConfig ref : appRefs){ //should only be 1 in the set.
                    DeployedItemRefConfigCR container = (DeployedItemRefConfigCR)ref.getContainer();
                    container.removeDeployedItemRefConfig( ref.getName() )
                }
            }
        }catch(Exception ex){
            //TODO: log exception
            GuiUtil.prepareException(handlerCtx, ex);
View Full Code Here

TOP

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

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.