All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javaConfig.jvmProfiler_1.inc Maven / Gradle / Ivy

The newest version!







    
    $page{configName}  );
    
        urlencode(value="#{pageSession.configName}" encoding="UTF-8" result="#{pageSession.encodedConfigName}");
        setPageSessionAttribute(key="parentUrl", value="#{sessionScope.REST_URL}/configs/config/#{pageSession.encodedConfigName}");
        setPageSessionAttribute(key="selfUrl", value="#{pageSession.parentUrl}/java-config");
        setPageSessionAttribute(key="rest-api" value="true");
        setPageSessionAttribute(key="selfPage" value="#{request.contextPath}/javaConfig/serverInstProfiler.jsf");
        setPageSessionAttribute(key="childType" value="profiler");
        setPageSessionAttribute(key="confirmDeleteMsg" value="$resource{i18nc.msg.JS.confirmDeleteProfiler}");
        setPageSessionAttribute(key="profilerUrl", value="#{pageSession.parentUrl}/java-config/profiler");
        setPageSessionAttribute(key="createProfilerUrl", value="#{pageSession.parentUrl}/java-config/create-profiler");
        setPageSessionAttribute(key="deleteProfilerUrl", value="#{pageSession.parentUrl}/java-config/profiler/delete-profiler");
        gf.checkIfEndPointExist(endpoint="#{pageSession.profilerUrl}/jvm-options" exists="#{pageSession.edit}");

        if(#{edit}) {
            gf.getEntityAttrs(endpoint="#{pageSession.parentUrl}/java-config/profiler.json", valueMap="#{pageSession.valueMap}");
            getJvmOptionsValues(endpoint="#{pageSession.profilerUrl}/jvm-options.json"  result=>$attribute{tableList});
            gf.listCombine(list="#{null}" list2="$attribute{tableList}", result="#{pageSession.origList}");
        }
        //there is no way to get the default value of profiler when one doesn't exist.  just hard code 'enabled' to true
        if ("#{edit}=false"){
            createMap(result="#{pageSession.valueMap}");
            mapPut(map="#{pageSession.valueMap}" key="enabled" value="true");
        }
        setPageSessionAttribute(key="onlyUseAttrs" value={"name", "target", "classpath", "enabled","nativeLibraryPath"})
        setPageSessionAttribute(key="convertToFalseList" value={"enabled"});
    />
    
            




© 2015 - 2025 Weber Informatics LLC | Privacy Policy