Package com.sun.appserv.management.config

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


            @HandlerInput(name="ConfigName", type=String.class, required=true)})
        public static void saveProfilerJvmOptions(HandlerContext handlerCtx) {
        ArrayList names = (ArrayList)handlerCtx.getInputValue("NameList");
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        try{
            JavaConfig javaConfig = config.getJavaConfig();
            ProfilerConfig profilerConfig = javaConfig.getProfilerConfig();
            if(profilerConfig != null && names != null) {
                String[] options = (String[])names.toArray(new String[names.size()]);
                profilerConfig.setJVMOptions(options);
            }
        }catch (Exception ex){
View Full Code Here


        @HandlerOutput(name="NativeLibrary", type=String.class)})
        public static void getServerProfilerAttributes(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        try{
            JavaConfig javaConfig = config.getJavaConfig();
            if(javaConfig.getProfilerConfig() != null) {
                ProfilerConfig profilerConfig = javaConfig.getProfilerConfig();
                String name = profilerConfig.getName();
                boolean enabled = profilerConfig.getEnabled();
                String classPath = profilerConfig.getClasspath();
                String nativeLibrary = profilerConfig.getNativeLibraryPath();
                handlerCtx.setOutputValue("Classpath", classPath);
View Full Code Here

        @HandlerInput(name="ProfilerEnabled", type=Boolean.class),
        @HandlerInput(name="NativeLibrary", type=String.class)})
        public static void saveServerProfilerSettings(HandlerContext handlerCtx) {
       
      ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
      JavaConfig javaConfig = config.getJavaConfig();
        boolean removeProfiler = true;
        if(javaConfig.getProfilerConfig() == null){
            createProfiler(handlerCtx, javaConfig);
        } else {
            javaConfig.removeProfilerConfig();
            createProfiler(handlerCtx, javaConfig);
        }
    }
View Full Code Here

       
        //more null pointer checking put in due to issue#2247
        String configName = (String)handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        List<List<Map<String, Object>>> list = new ArrayList<List<Map<String, Object>>>();
        JavaConfig javaConfig = null;
        try{
            if (config == null){
                System.out.println("getJvmOptions: getConfig() returns NULL,  configName = "+ configName);
            }else{
                javaConfig = config.getJavaConfig();
                if (javaConfig == null){
                    System.out.println("getJvmOptions: getJavaConfig() returns NULL,  configName = "+ configName);
                }else{
                    String[] jvmOptions = javaConfig.getJVMOptions();
                    list.add(convertToListOfMap(jvmOptions, "option"));
                }
            }
        }catch(Exception ex){
            System.out.println("Catch exception when trying to get the jvm option list.");
View Full Code Here

        //more null pointer checking put in due to issue#2247
        try{
            if (config == null){
                System.out.println("!!!!! getJvmOptionsForProfiler:  getConfig() returns NULL. configName="+configName);
            }else{
                JavaConfig javaConfig = config.getJavaConfig();
                if (javaConfig == null){
                    System.out.println("!!!!! getJvmOptionsForProfiler: getJavaConfig() returns NULL; configName="+ configName);
                }else{
                    ProfilerConfig profilerConfig = javaConfig.getProfilerConfig();
                    if(profilerConfig == null) {
                        System.out.println("!!!!! getJvmOptionsForProfiler: getProfilerConfig() returns NULL; configName="+ configName);
                    }else{
                        String[] jvmOptions = profilerConfig.getJVMOptions();
                        list.add(convertToListOfMap(jvmOptions, "option"));
View Full Code Here

        @HandlerOutput(name="RmicOptions", type=String.class),
        @HandlerOutput(name="BytecodePreprocessor", type=String.class)})
        public static void getServerJvmAttributes(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        JavaConfig javaConfig = config.getJavaConfig();
        String javaHome = javaConfig.getJavaHome();
        String javacOptions = javaConfig.getJavacOptions();
        boolean debugEnabled = javaConfig.getDebugEnabled();
        String debugOptions = javaConfig.getDebugOptions();
        String rmicOptions = javaConfig.getRMICOptions();
        String bytecodePreprocessors = javaConfig.getBytecodePreprocessors();
        handlerCtx.setOutputValue("JavaHome", javaHome);
        handlerCtx.setOutputValue("JavacOptions", javacOptions);
        handlerCtx.setOutputValue("DebugEnabled", debugEnabled);
        handlerCtx.setOutputValue("DebugOptions", debugOptions);
        handlerCtx.setOutputValue("RmicOptions", rmicOptions);
View Full Code Here

TOP

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

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.