Examples of IIOPServiceConfig


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

        ports.deleteCharAt(0)//remove the first ','
        handlerCtx.setOutputValue("httpPorts", ports.toString());
       
       
        //iiop ports
        IIOPServiceConfig iiopService = AMXUtil.getConfig(configName).getIIOPServiceConfig();
        Map<String,IIOPListenerConfig> iiopListeners = iiopService.getIIOPListenerConfigMap();
        StringBuffer iports = new StringBuffer();
        for(String key : iiopListeners.keySet()){
            String iport = iiopListeners.get(key).getPort();
            if (iport.startsWith("$")){
                iport = resolveToken( (iport.substring(2, iport.length()-1) ), instanceName);
View Full Code Here

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

        ports.deleteCharAt(0)//remove the first ','
        handlerCtx.setOutputValue("httpPorts", ports.toString());
       
       
        //iiop ports
        IIOPServiceConfig iiopService = AMXUtil.getConfig(config).getIIOPServiceConfig();
        Map<String,IIOPListenerConfig> iiopListeners = iiopService.getIIOPListenerConfigMap();
        StringBuffer iports = new StringBuffer();
        for(String key : iiopListeners.keySet()){
            String iport = iiopListeners.get(key).getPort();
            if (iport.startsWith("$")){
                iport = resolveToken( (iport.substring(2, iport.length()-1) ), config, instanceName);
View Full Code Here

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

     */
    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;
        }
        return null;
    }
View Full Code Here

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

        @HandlerOutput(name="Properties",      type=Map.class)})
       
        public static void getOrbValues(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        IIOPServiceConfig iiopConfig = config.getIIOPServiceConfig();
        ORBConfig orbConfig = iiopConfig.getORBConfig();
        String threadPoolId = orbConfig.getUseThreadPoolIds();
        String maxMsgSize = orbConfig.getMessageFragmentSize();
        String totalConns = orbConfig.getMaxConnections();
        boolean iiopClient = iiopConfig.getClientAuthenticationRequired();
        Map<String, String> props = orbConfig.getProperties();
       
        handlerCtx.setOutputValue("ThreadPools", threadPoolId);
        handlerCtx.setOutputValue("MaxMsgSize", maxMsgSize);
        handlerCtx.setOutputValue("TotalConns", totalConns);
View Full Code Here

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

       
        public static void saveOrbValues(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        try{
            IIOPServiceConfig iiopConfig = config.getIIOPServiceConfig();
            ORBConfig orbConfig = iiopConfig.getORBConfig();
            orbConfig.setUseThreadPoolIds((String)handlerCtx.getInputValue("ThreadPools"));
            orbConfig.setMessageFragmentSize((String)handlerCtx.getInputValue("MaxMsgSize"));
            orbConfig.setMaxConnections((String)handlerCtx.getInputValue("TotalConns"));
            iiopConfig.setClientAuthenticationRequired(((Boolean)handlerCtx.getInputValue("IIOPClient")).booleanValue());
            AMXUtil.editProperties(handlerCtx, orbConfig);
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
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.