Package com.sun.appserv.management.config

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


  }
 
    public static ProfilerConfig
  ensureDefaultInstance( final JavaConfig javaConfig )
  {
    ProfilerConfig  prof  = javaConfig.getProfilerConfig( );
    if ( prof == null )
    {
      final String  NAME  = "profiler";
     
      prof = javaConfig.createProfilerConfig( NAME, getOptional() );
View Full Code Here


        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){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

       
        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);
                handlerCtx.setOutputValue("NativeLibrary", nativeLibrary);
                handlerCtx.setOutputValue("ProfilerName", name);
                handlerCtx.setOutputValue("ProfilerEnabled", enabled);
            }
View Full Code Here

            }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"));
                    }
                }
            }
        }catch (Exception ex){
View Full Code Here

TOP

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

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.