Package com.sun.appserv.management.config

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


     @return  http-listener mbean of the specified config name and listener name, or NULL if no such config exists.
     */
    public static HTTPListenerConfig getHTTPListenerConfig(String configName, String listenerName){
        if (GuiUtil.isEmpty(configName) || GuiUtil.isEmpty(listenerName))
            return null;
        ConfigConfig config = getConfig(configName);
        HTTPServiceConfig service = (config == null) ? null : config.getHTTPServiceConfig();
        if (service != null){
            Map<String,HTTPListenerConfig> listeners = service.getHTTPListenerConfigMap();
            HTTPListenerConfig listener =  listeners.get(listenerName);
            return listener;
        }
View Full Code Here


     @return  iiop-listener mbean of the specified config name and listener name, or NULL if no such config exists.
     */
    public static IIOPListenerConfig getIIOPListenerConfig(String configName, String listenerName){
        if (GuiUtil.isEmpty(configName) || GuiUtil.isEmpty(listenerName))
            return null;
        ConfigConfig config = getConfig(configName);
        IIOPServiceConfig service = (config == null) ? null : config.getIIOPServiceConfig();
        if (service != null){
            Map<String,IIOPListenerConfig> listeners = service.getIIOPListenerConfigMap();
            IIOPListenerConfig listener =  listeners.get(listenerName);
            return listener;
        }
View Full Code Here

    )
    public static void getGmsInfo(HandlerContext handlerCtx) {
       
        GroupManagementServiceConfig gms = null;
        String configName = (String) handlerCtx.getInputValue("configName");
        ConfigConfig config = AMXUtil.getDomainConfig().getConfigConfigMap().get(configName);
        if (config != null){
            gms = config.getGroupManagementServiceConfig();
        }
        if (gms == null){
            handlerCtx.setOutputValue("Properties", new HashMap());
            return;
        }
View Full Code Here

        })
    public static void saveGmsSettings(HandlerContext handlerCtx) {
        GroupManagementServiceConfig gms = null;
        String configName = (String) handlerCtx.getInputValue("configName");
        try{
            ConfigConfig config = AMXUtil.getDomainConfig().getConfigConfigMap().get(configName);
            if (config != null){
                gms = config.getGroupManagementServiceConfig();
            }
            if (gms == null){
                GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoAMXGmsSupport"));
                return;
            }
View Full Code Here

    /*
     * Returns the list of list of Virtual Server in the given target
     */
    static public Set getVirtualServers(String targetName)
    {
    ConfigConfig config =
             AMXUtil.getConfigByInstanceOrClusterName(targetName);
    Set<String> vsNames = config.getHTTPServiceConfig().getVirtualServerConfigMap().keySet();
    return vsNames;
    }
View Full Code Here

    output={
        @HandlerOutput(name="Realms", type=SelectItem[].class)})

        public static void getRealms(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        SecurityServiceConfig sConfig = config.getSecurityServiceConfig();
        Map<String,AuthRealmConfig>realms = sConfig.getAuthRealmConfigMap();
        String[] aRealm = (String[])realms.keySet().toArray(new String[realms.size()]);
        if(aRealm != null) {
            SelectItem[] options = ConfigurationHandlers.getOptions(aRealm);
            handlerCtx.setOutputValue("Realms", options);
View Full Code Here

        if (GuiUtil.isEmpty(realmName) || GuiUtil.isEmpty(configName)){
            GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("realm.internalError"));
            return null;
        }else
        {
            ConfigConfig config = AMXUtil.getConfig(configName);
            if (getRealmName){
                handlerCtx.setOutputValue("outName", realmName);
            }
            return config.getSecurityServiceConfig().getAuthRealmConfigMap().get(realmName);
        }
    }
View Full Code Here

        @HandlerOutput(name="CacheIdle",       type=String.class),
        @HandlerOutput(name="Properties",      type=Map.class)})
       
        public static void getEjbSettings(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("cName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        EJBContainerConfig ejbContainer = config.getEJBContainerConfig();
       
        String sessionStore = ejbContainer.getSessionStore();
        String commitOpt = ejbContainer.getCommitOption();
        String minSize = ejbContainer.getSteadyPoolSize();
        String maxSize = ejbContainer.getMaxPoolSize();
View Full Code Here

    output={
        @HandlerOutput(name="Policies",        type=SelectItem[].class) })
       
        public static void getRemovalPolicies(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("cName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        EJBContainerConfig ejbContainer = config.getEJBContainerConfig();
       
        String[] policyLabels = {"Not Recently Used (nru)", "First In First Out (fifo)", "Least Recently Used (lru)"};
        String[] policyItems = {"nru", "fifo", "lru"};
        SelectItem[] options = ConfigurationHandlers.getOptions(policyItems, policyLabels);
       
View Full Code Here

        @HandlerInput(name="AddProps",          type=Map.class),
        @HandlerInput(name="RemoveProps",       type=ArrayList.class)})
       
        public static void saveEjbSettings(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("cName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        EJBContainerConfig ejbContainer = config.getEJBContainerConfig();
        try{
            ejbContainer.setSessionStore((String)handlerCtx.getInputValue("SessionStore"));
            ejbContainer.setCommitOption(((String)handlerCtx.getInputValue("CommitOption")));
            ejbContainer.setSteadyPoolSize((String)handlerCtx.getInputValue("MinSize"));
            ejbContainer.setMaxPoolSize((String)handlerCtx.getInputValue("MaxSize"));
View Full Code Here

TOP

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

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.