Methods Summary |
---|
public void | createProfiler(java.lang.String name, java.lang.String classpath, java.lang.String nativeLibraryPath, java.lang.Boolean enabled)This operation creates Profiler according to attributes and adds(links) it to current HTTP Service;
If attribute is 'null' then default value will be set.
Profiler element = new Profiler();
if(name!=null)
element.setName(name);
if(classpath!=null)
element.setClasspath(classpath);
if(nativeLibraryPath!=null)
element.setNativeLibraryPath(nativeLibraryPath);
if(enabled!=null)
element.setEnabled(enabled.booleanValue());
JavaConfig javaConfig = (JavaConfig)getBaseConfigBean();
javaConfig.setProfiler(element);
getConfigContext().flush();
|
public void | deleteProfiler()This operation deletes Profiler according to id if it connected to current HTTP Service.
JavaConfig javaConfig = (JavaConfig)getBaseConfigBean();
javaConfig.setProfiler(null);
getConfigContext().flush();
|
public java.lang.String[] | getJvmOptions()This operation returns list of JvmOptions connected to this class.
JavaConfig javaConfig = (JavaConfig)getBaseConfigBean();
return javaConfig.getJvmOptions();
|
public java.lang.String | getProfiler()Returns the name of the profiler this JVM is configured with.
Returns null if no profiler is registered.
String profilerName = null;
JavaConfig javaConfig = (JavaConfig)getBaseConfigBean();
Profiler profiler = javaConfig.getProfiler();
if (profiler != null)
{
profilerName = profiler.getName();
}
return profilerName;
|
public boolean | isProfilerExist()This operation returns true if Profiler connected to current HTTP Service.
JavaConfig javaConfig = (JavaConfig)getBaseConfigBean();
return (javaConfig.getProfiler()!=null);
|
public void | setJvmOptions(java.lang.String[] options)This operation returns list of JvmOptions connected to this class.
JavaConfig javaConfig = (JavaConfig)getBaseConfigBean();
javaConfig.setJvmOptions(options);
getConfigContext().flush();
|