Package io.ebean.config
Class ProfilingConfig
- java.lang.Object
-
- io.ebean.config.ProfilingConfig
-
public class ProfilingConfig extends Object
Configuration for transaction profiling.
-
-
Constructor Summary
Constructors Constructor Description ProfilingConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDirectory()
Return the directory profiling files are put into.int[]
getIncludeProfileIds()
Return the specific set of profileIds to include in profiling.long
getMinimumMicros()
Return the minimum transaction execution to be included in profiling.long
getProfilesPerFile()
Return the number of profiles to write to a single file.boolean
isEnabled()
Return true if transaction profiling is enabled.boolean
isVerbose()
Return true if verbose mode is used.void
loadSettings(PropertiesWrapper p, String name)
Load setting from properties.void
setDirectory(String directory)
Set the directory profiling files are put into.void
setEnabled(boolean enabled)
Set to true to enable transaction profiling.void
setIncludeProfileIds(int[] includeProfileIds)
Set a specific set of profileIds to include in profiling.void
setMinimumMicros(long minimumMicros)
Set the minimum transaction execution to be included in profiling.void
setProfilesPerFile(long profilesPerFile)
Set the number of profiles to write to a single file.void
setVerbose(boolean verbose)
Set to true to use verbose mode.
-
-
-
Constructor Detail
-
ProfilingConfig
public ProfilingConfig()
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Return true if transaction profiling is enabled.
-
setEnabled
public void setEnabled(boolean enabled)
Set to true to enable transaction profiling.
-
isVerbose
public boolean isVerbose()
Return true if verbose mode is used.
-
setVerbose
public void setVerbose(boolean verbose)
Set to true to use verbose mode.
-
getMinimumMicros
public long getMinimumMicros()
Return the minimum transaction execution to be included in profiling.
-
setMinimumMicros
public void setMinimumMicros(long minimumMicros)
Set the minimum transaction execution to be included in profiling.
-
getIncludeProfileIds
public int[] getIncludeProfileIds()
Return the specific set of profileIds to include in profiling. When not set all transactions with profileIds are included.
-
setIncludeProfileIds
public void setIncludeProfileIds(int[] includeProfileIds)
Set a specific set of profileIds to include in profiling. When not set all transactions with profileIds are included.
-
getProfilesPerFile
public long getProfilesPerFile()
Return the number of profiles to write to a single file.
-
setProfilesPerFile
public void setProfilesPerFile(long profilesPerFile)
Set the number of profiles to write to a single file.
-
getDirectory
public String getDirectory()
Return the directory profiling files are put into.
-
setDirectory
public void setDirectory(String directory)
Set the directory profiling files are put into.
-
loadSettings
public void loadSettings(PropertiesWrapper p, String name)
Load setting from properties.
-
-