Class ProfilerPluginCfgDefn
- java.lang.Object
-
- org.forgerock.opendj.config.AbstractManagedObjectDefinition<C,S>
-
- org.forgerock.opendj.config.ManagedObjectDefinition<ProfilerPluginCfgClient,ProfilerPluginCfg>
-
- org.forgerock.opendj.server.config.meta.ProfilerPluginCfgDefn
-
public final class ProfilerPluginCfgDefn extends ManagedObjectDefinition<ProfilerPluginCfgClient,ProfilerPluginCfg>
An interface for querying the Profiler Plugin managed object definition meta information.The Profiler plug-in captures profiling information about operations performed inside the JVM while the OpenDJ directory server is running.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProfilerPluginCfgDefn.ProfileActionDefines the set of permissable values for the "profile-action" property.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfilerPluginCfgClientcreateClientConfiguration(ManagedObject<? extends ProfilerPluginCfgClient> impl)Creates a client configuration view of the provided managed object.ProfilerPluginCfgcreateServerConfiguration(ServerManagedObject<? extends ProfilerPluginCfg> impl)Creates a server configuration view of the provided server managed object.BooleanPropertyDefinitiongetEnabledPropertyDefinition()Get the "enabled" property definition.BooleanPropertyDefinitiongetEnableProfilingOnStartupPropertyDefinition()Get the "enable-profiling-on-startup" property definition.static ProfilerPluginCfgDefngetInstance()Get the Profiler Plugin configuration definition singleton.BooleanPropertyDefinitiongetInvokeForInternalOperationsPropertyDefinition()Get the "invoke-for-internal-operations" property definition.ClassPropertyDefinitiongetJavaClassPropertyDefinition()Get the "java-class" property definition.EnumPropertyDefinition<PluginCfgDefn.PluginType>getPluginTypePropertyDefinition()Get the "plugin-type" property definition.EnumPropertyDefinition<ProfilerPluginCfgDefn.ProfileAction>getProfileActionPropertyDefinition()Get the "profile-action" property definition.StringPropertyDefinitiongetProfileDirectoryPropertyDefinition()Get the "profile-directory" property definition.DurationPropertyDefinitiongetProfileSampleIntervalPropertyDefinition()Get the "profile-sample-interval" property definition.Class<ProfilerPluginCfg>getServerConfigurationClass()Gets the server configuration class instance associated with this managed object definition.-
Methods inherited from class org.forgerock.opendj.config.AbstractManagedObjectDefinition
getAggregationPropertyDefinition, getAggregationPropertyDefinitions, getAllAggregationPropertyDefinitions, getAllChildren, getAllConstraints, getAllPropertyDefinitions, getAllRelationDefinitions, getAllReverseAggregationPropertyDefinitions, getAllReverseRelationDefinitions, getAllTags, getChild, getChildren, getConstraints, getDescription, getDescription, getName, getParent, getPropertyDefinition, getPropertyDefinitions, getRelationDefinition, getRelationDefinitions, getReverseAggregationPropertyDefinitions, getReverseRelationDefinitions, getSynopsis, getSynopsis, getUserFriendlyName, getUserFriendlyName, getUserFriendlyPluralName, getUserFriendlyPluralName, hasChildren, hasOption, hasTag, initialize, isChildOf, isParentOf, isTop, registerConstraint, registerOption, registerPropertyDefinition, registerRelationDefinition, registerTag, resolveManagedObjectDefinition, toString, toString
-
-
-
-
Method Detail
-
getInstance
public static ProfilerPluginCfgDefn getInstance()
Get the Profiler Plugin configuration definition singleton.- Returns:
- Returns the Profiler Plugin configuration definition singleton.
-
createClientConfiguration
public ProfilerPluginCfgClient createClientConfiguration(ManagedObject<? extends ProfilerPluginCfgClient> impl)
Creates a client configuration view of the provided managed object. Modifications made to the underlying managed object will be reflected in the client configuration view and vice versa.- Specified by:
createClientConfigurationin classManagedObjectDefinition<ProfilerPluginCfgClient,ProfilerPluginCfg>- Parameters:
impl- The managed object.- Returns:
- Returns a client configuration view of the provided managed object.
-
createServerConfiguration
public ProfilerPluginCfg createServerConfiguration(ServerManagedObject<? extends ProfilerPluginCfg> impl)
Creates a server configuration view of the provided server managed object.- Specified by:
createServerConfigurationin classManagedObjectDefinition<ProfilerPluginCfgClient,ProfilerPluginCfg>- Parameters:
impl- The server managed object.- Returns:
- Returns a server configuration view of the provided server managed object.
-
getServerConfigurationClass
public Class<ProfilerPluginCfg> getServerConfigurationClass()
Gets the server configuration class instance associated with this managed object definition.- Specified by:
getServerConfigurationClassin classManagedObjectDefinition<ProfilerPluginCfgClient,ProfilerPluginCfg>- Returns:
- Returns the server configuration class instance associated with this managed object definition.
-
getEnabledPropertyDefinition
public BooleanPropertyDefinition getEnabledPropertyDefinition()
Get the "enabled" property definition.Indicates whether the plug-in is enabled for use.
- Returns:
- Returns the "enabled" property definition.
-
getEnableProfilingOnStartupPropertyDefinition
public BooleanPropertyDefinition getEnableProfilingOnStartupPropertyDefinition()
Get the "enable-profiling-on-startup" property definition.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.
- Returns:
- Returns the "enable-profiling-on-startup" property definition.
-
getInvokeForInternalOperationsPropertyDefinition
public BooleanPropertyDefinition getInvokeForInternalOperationsPropertyDefinition()
Get the "invoke-for-internal-operations" property definition.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.
- Returns:
- Returns the "invoke-for-internal-operations" property definition.
-
getJavaClassPropertyDefinition
public ClassPropertyDefinition getJavaClassPropertyDefinition()
Get the "java-class" property definition.Specifies the fully-qualified name of the Java class that provides the plug-in implementation.
- Returns:
- Returns the "java-class" property definition.
-
getPluginTypePropertyDefinition
public EnumPropertyDefinition<PluginCfgDefn.PluginType> getPluginTypePropertyDefinition()
Get the "plugin-type" property definition.Specifies the set of plug-in types for the plug-in, which specifies the times at which the plug-in is invoked.
- Returns:
- Returns the "plugin-type" property definition.
-
getProfileActionPropertyDefinition
public EnumPropertyDefinition<ProfilerPluginCfgDefn.ProfileAction> getProfileActionPropertyDefinition()
Get the "profile-action" property definition.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.
- Returns:
- Returns the "profile-action" property definition.
-
getProfileDirectoryPropertyDefinition
public StringPropertyDefinition getProfileDirectoryPropertyDefinition()
Get the "profile-directory" property definition.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.
- Returns:
- Returns the "profile-directory" property definition.
-
getProfileSampleIntervalPropertyDefinition
public DurationPropertyDefinition getProfileSampleIntervalPropertyDefinition()
Get the "profile-sample-interval" property definition.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.
- Returns:
- Returns the "profile-sample-interval" property definition.
-
-