public interface ProfilerPluginCfgClient extends PluginCfgClient
The Profiler plug-in captures profiling information about operations performed inside the JVM while the OpenDJ directory server is running.
Modifier and Type | Method and Description |
---|---|
ManagedObjectDefinition<? extends ProfilerPluginCfgClient,? extends ProfilerPluginCfg> |
definition()
Get the configuration definition associated with this Profiler Plugin.
|
String |
getJavaClass()
Gets the "java-class" property.
|
SortedSet<PluginCfgDefn.PluginType> |
getPluginType()
Gets the "plugin-type" property.
|
ProfilerPluginCfgDefn.ProfileAction |
getProfileAction()
Gets the "profile-action" property.
|
String |
getProfileDirectory()
Gets the "profile-directory" property.
|
Long |
getProfileSampleInterval()
Gets the "profile-sample-interval" property.
|
Boolean |
isEnableProfilingOnStartup()
Gets the "enable-profiling-on-startup" property.
|
boolean |
isInvokeForInternalOperations()
Gets the "invoke-for-internal-operations" property.
|
void |
setEnableProfilingOnStartup(boolean value)
Sets the "enable-profiling-on-startup" property.
|
void |
setInvokeForInternalOperations(Boolean value)
Sets the "invoke-for-internal-operations" property.
|
void |
setJavaClass(String value)
Sets the "java-class" property.
|
void |
setPluginType(Collection<PluginCfgDefn.PluginType> values)
Sets the "plugin-type" property.
|
void |
setProfileAction(ProfilerPluginCfgDefn.ProfileAction value)
Sets the "profile-action" property.
|
void |
setProfileDirectory(String value)
Sets the "profile-directory" property.
|
void |
setProfileSampleInterval(long value)
Sets the "profile-sample-interval" property.
|
isEnabled, setEnabled
commit, properties
ManagedObjectDefinition<? extends ProfilerPluginCfgClient,? extends ProfilerPluginCfg> definition()
definition
in interface ConfigurationClient
definition
in interface PluginCfgClient
Boolean isEnableProfilingOnStartup()
Indicates whether the profiler plug-in is to start collecting data automatically when the directory server is started.
This property is read only when the server is started, and any changes take effect on the next restart. This property is typically set to "false" unless startup profiling is required, because otherwise the volume of data that can be collected can cause the server to run out of memory if it is not turned off in a timely manner.
void setEnableProfilingOnStartup(boolean value) throws PropertyException
Indicates whether the profiler plug-in is to start collecting data automatically when the directory server is started.
This property is read only when the server is started, and any changes take effect on the next restart. This property is typically set to "false" unless startup profiling is required, because otherwise the volume of data that can be collected can cause the server to run out of memory if it is not turned off in a timely manner.
value
- The value of the "enable-profiling-on-startup" property.PropertyException
- If the new value is invalid.boolean isInvokeForInternalOperations()
Indicates whether the plug-in should be invoked for internal operations.
Any plug-in that can be invoked for internal operations must ensure that it does not create any new internal operatons that can cause the same plug-in to be re-invoked.
isInvokeForInternalOperations
in interface PluginCfgClient
void setInvokeForInternalOperations(Boolean value) throws PropertyException
Indicates whether the plug-in should be invoked for internal operations.
Any plug-in that can be invoked for internal operations must ensure that it does not create any new internal operatons that can cause the same plug-in to be re-invoked.
setInvokeForInternalOperations
in interface PluginCfgClient
value
- The value of the "invoke-for-internal-operations" property.PropertyException
- If the new value is invalid.String getJavaClass()
Specifies the fully-qualified name of the Java class that provides the plug-in implementation.
getJavaClass
in interface PluginCfgClient
void setJavaClass(String value) throws PropertyException
Specifies the fully-qualified name of the Java class that provides the plug-in implementation.
setJavaClass
in interface PluginCfgClient
value
- The value of the "java-class" property.PropertyException
- If the new value is invalid.SortedSet<PluginCfgDefn.PluginType> getPluginType()
Specifies the set of plug-in types for the plug-in, which specifies the times at which the plug-in is invoked.
getPluginType
in interface PluginCfgClient
void setPluginType(Collection<PluginCfgDefn.PluginType> values) throws PropertyException
Specifies the set of plug-in types for the plug-in, which specifies the times at which the plug-in is invoked.
setPluginType
in interface PluginCfgClient
values
- The values of the "plugin-type" property.PropertyException
- If one or more of the new values are invalid.ProfilerPluginCfgDefn.ProfileAction getProfileAction()
Specifies the action that should be taken by the profiler.
A value of "start" causes the profiler thread to start collecting data if it is not already active. A value of "stop" causes the profiler thread to stop collecting data and write it to disk, and a value of "cancel" causes the profiler thread to stop collecting data and discard anything that has been captured. These operations occur immediately.
void setProfileAction(ProfilerPluginCfgDefn.ProfileAction value) throws PropertyException
Specifies the action that should be taken by the profiler.
A value of "start" causes the profiler thread to start collecting data if it is not already active. A value of "stop" causes the profiler thread to stop collecting data and write it to disk, and a value of "cancel" causes the profiler thread to stop collecting data and discard anything that has been captured. These operations occur immediately.
value
- The value of the "profile-action" property.PropertyException
- If the new value is invalid.String getProfileDirectory()
Specifies the path to the directory where profile information is to be written. This path may be either an absolute path or a path that is relative to the root of the OpenDJ directory server instance.
The directory must exist and the directory server must have permission to create new files in it.
void setProfileDirectory(String value) throws PropertyException
Specifies the path to the directory where profile information is to be written. This path may be either an absolute path or a path that is relative to the root of the OpenDJ directory server instance.
The directory must exist and the directory server must have permission to create new files in it.
value
- The value of the "profile-directory" property.PropertyException
- If the new value is invalid.Long getProfileSampleInterval()
Specifies the sample interval in milliseconds to be used when capturing profiling information in the server.
When capturing data, the profiler thread sleeps for this length of time between calls to obtain traces for all threads running in the JVM.
void setProfileSampleInterval(long value) throws PropertyException
Specifies the sample interval in milliseconds to be used when capturing profiling information in the server.
When capturing data, the profiler thread sleeps for this length of time between calls to obtain traces for all threads running in the JVM.
value
- The value of the "profile-sample-interval" property.PropertyException
- If the new value is invalid.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.