Examples of AdminObjectResourceConfig


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

    }
   
        public static AdminObjectResourceConfig
  ensureDefaultInstance( final DomainConfig domainConfig )
  {
      AdminObjectResourceConfig   result  =
          domainConfig.getAdminObjectResourceConfigMap().get( getDefaultInstanceName() );
     
      if ( result == null )
      {
          result  = createInstance(
View Full Code Here

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

  }
   
    protected final AMXConfig
  createProgeny(final String name, final Map<String,String> options )
  {
    final AdminObjectResourceConfig  config  = getDomainConfig().createAdminObjectResourceConfig(
      name,
      ADM_OBJ_RES_TYPE,
      ADM_OBJ_RES_ADAPTER,
      options);
         
View Full Code Here

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

            handlerCtx.setOutputValue("enabled", Boolean.TRUE);
            handlerCtx.setOutputValue("resAdapter", "");
            return;
        }
        String jndiName = (String) handlerCtx.getInputValue("jndiName");
  AdminObjectResourceConfig resource = AMXUtil.getDomainConfig().getAdminObjectResourceConfigMap().get(jndiName);
  if (resource == null){
      GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchAdminObjectResource"));
      return;
  }
  handlerCtx.setOutputValue("resType", resource.getResType());
  handlerCtx.setOutputValue("resAdapter", resource.getResAdapter());
  handlerCtx.setOutputValue("description", resource.getDescription());
        if(AMXUtil.isEE())
            handlerCtx.setOutputValue("enabledString", TargetUtil.getEnabledStatus(resource, false));
        else
            handlerCtx.setOutputValue("enabled", TargetUtil.isResourceEnabled(resource, "server" ));
       
        Map<String, String> props = resource.getProperties();
        handlerCtx.setOutputValue("properties", props);
    }
View Full Code Here

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

            @HandlerInput(name="RemoveProps", type=ArrayList.class)
        })
    public static void saveAdminObjectResource(HandlerContext handlerCtx) {
        try{
            String jndiName = (String) handlerCtx.getInputValue("jndiName");
            AdminObjectResourceConfig resource = AMXUtil.getDomainConfig().getAdminObjectResourceConfigMap().get(jndiName);
            if (resource == null){
                GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchAdminObjectResource"));
                return;
            }
            resource.setResType((String) handlerCtx.getInputValue("resType"));
            resource.setResAdapter((String) handlerCtx.getInputValue("resAdapter"));
            resource.setDescription((String)handlerCtx.getInputValue("description"));
            if(! AMXUtil.isEE()){
                Boolean enabled = (Boolean) handlerCtx.getInputValue("enabled");
                TargetUtil.setResourceEnabled(resource, "server", enabled);
            }
            AMXUtil.editProperties(handlerCtx, resource);
View Full Code Here

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

        if("jmsDestResource".equals(type)){
            iter = AMXUtil.getDomainConfig().getAdminObjectResourceConfigMap().values().iterator();
            //jmsDestationResource is Admin Object Resource with 'jmsra' as res adapter.
            ArrayList jms = new ArrayList();
            while(iter.hasNext()){
                AdminObjectResourceConfig aor = (AdminObjectResourceConfig) iter.next();
                if("jmsra".equals(aor.getResAdapter())){
                    jms.add(aor);
                }
            }
            iter=jms.iterator();
            isAdminObject=true;
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.