//----------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. // //----------------------------------------------------------------------- namespace Microsoft.Isam.Esent.Interop { using Microsoft.Isam.Esent.Interop.Windows8; /// /// This class provides static properties to set and get /// global ESENT system parameters. /// public partial class SystemParameters { /// /// Gets or sets the smallest amount of data that should be compressed with xpress compression. /// public static int MinDataForXpress { get { return GetIntegerParameter(Windows8Param.MinDataForXpress); } set { SetIntegerParameter(Windows8Param.MinDataForXpress, value); } } /// /// Gets or sets the threshold for what is considered a hung IO that should be acted upon. /// public static int HungIOThreshold { get { return GetIntegerParameter(Windows8Param.HungIOThreshold); } set { SetIntegerParameter(Windows8Param.HungIOThreshold, value); } } /// /// Gets or sets the set of actions to be taken on IOs that appear hung. /// public static int HungIOActions { get { return GetIntegerParameter(Windows8Param.HungIOActions); } set { SetIntegerParameter(Windows8Param.HungIOActions, value); } } /// /// Gets or sets the friendly name for this instance of the process. /// public static string ProcessFriendlyName { get { return GetStringParameter(Windows8Param.ProcessFriendlyName); } set { SetStringParameter(Windows8Param.ProcessFriendlyName, value); } } } }