Click or drag to resize

ServiceMonitors Class

Adapter loader that loads implementations of IServiceMonitor and delegates messages to the enabled monitors.
Inheritance Hierarchy
System.Object
  GSF.Adapters.AdapterLoader<IServiceMonitor>
    GSF.ServiceProcess.ServiceMonitors

Namespace: GSF.ServiceProcess
Assembly: GSF.ServiceProcess (in GSF.ServiceProcess.dll) Version: 2.4.246-beta
Syntax
public class ServiceMonitors : AdapterLoader<IServiceMonitor>
View Source

The ServiceMonitors type exposes the following members.

Constructors
 NameDescription
Public methodServiceMonitorsInitializes a new instance of the ServiceMonitors class
Top
Properties
 NameDescription
Public propertyAdapterDirectory Gets or sets the directory where Adapters are located.
(Inherited from AdapterLoader<T>)
Public propertyAdapterFileExtension Gets or sets the file extension of the Adapters.
(Inherited from AdapterLoader<T>)
Public propertyAdapterFileFormat Gets or sets the file format of the Adapters.
(Inherited from AdapterLoader<T>)
Public propertyAdapters Gets a list of adapters loaded from the AdapterDirectory.
(Inherited from AdapterLoader<T>)
Protected propertyAdapterWatcher Gets the FileSystemWatcher object watching for new adapter assemblies added at runtime.
(Inherited from AdapterLoader<T>)
Public propertyAllowableAdapterMemoryUsage Gets or sets the memory in megabytes the Adapters are allowed to use before being flagged as offending by the internal monitoring process.
(Inherited from AdapterLoader<T>)
Public propertyAllowableAdapterProcessorUsage Gets or sets the processor time in % the Adapters are allowed to use before being flagged as offending by the internal monitoring process.
(Inherited from AdapterLoader<T>)
Public propertyAllowableProcessMemoryUsage Gets or sets the memory in megabytes the current process is allowed to use before the internal monitoring process starts looking for offending Adapters.
(Inherited from AdapterLoader<T>)
Public propertyAllowableProcessProcessorUsage Gets or sets the processor time in % the current process is allowed to use before the internal monitoring process starts looking for offending Adapters.
(Inherited from AdapterLoader<T>)
Public propertyEnabled Gets or sets a boolean value that indicates whether the AdapterLoader<T> is currently enabled.
(Inherited from AdapterLoader<T>)
Public propertyIsDisposed Gets a flag that indicates whether the object has been disposed.
(Inherited from AdapterLoader<T>)
Public propertyIsolateAdapters Gets or sets a boolean value that indicates whether Adapters are loaded in separate AppDomain for isolated execution.
(Inherited from AdapterLoader<T>)
Public propertyMonitorAdapters Gets or sets a boolean value that indicates whether resource utilization of Adapters executing in isolation is to be monitored.
(Inherited from AdapterLoader<T>)
Public propertyName Gets the unique identifier of the AdapterLoader<T>.
(Inherited from AdapterLoader<T>)
Protected propertyOperationQueue Gets the ProcessQueue<T> object to be used for queuing operations to be executed on Adapters.
(Inherited from AdapterLoader<T>)
Public propertyPersistSettings Gets or sets a boolean value that indicates whether AdapterLoader<T> settings are to be saved to the config file.
(Inherited from AdapterLoader<T>)
Public propertySettingsCategory Gets or sets the category under which AdapterLoader<T> settings are to be saved to the config file if the PersistSettings property is set to true.
(Inherited from AdapterLoader<T>)
Public propertyStatus Gets the descriptive status of the AdapterLoader<T>.
(Inherited from AdapterLoader<T>)
Public propertyWatchForAdapters Gets or sets a boolean value that indicates whether the AdapterDirectory is to be monitored for new Adapters.
(Inherited from AdapterLoader<T>)
Top
Methods
 NameDescription
Public methodDispose() Releases all the resources used by the AdapterLoader<T>.
(Inherited from AdapterLoader<T>)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the AdapterLoader<T> and optionally releases the managed resources.
(Inherited from AdapterLoader<T>)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodExecuteAdapterOperation Executes an operation on the adapter with the given data.
(Overrides AdapterLoader<T>.ExecuteAdapterOperation(T, Object))
Protected methodFinalize Releases the unmanaged resources before the AdapterLoader<T> is reclaimed by GC.
(Inherited from AdapterLoader<T>)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetMemoryUsage Gets the memory usage in bytes of the specified process.
(Inherited from AdapterLoader<T>)
Protected methodGetProcessorUsage Gets the % processor usage of the specified process.
(Inherited from AdapterLoader<T>)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHandleClientMessage Handles messages sent by a client.
Public methodHandleServiceError Handles messages received by the service whenever the service encounters an error.
Public methodHandleServiceHeartbeat Handles notifications from the service that occur on an interval to indicate that the service is still running.
Public methodInitialize() Initializes the AdapterLoader<T>.
(Inherited from AdapterLoader<T>)
Public methodInitialize(IEnumerable<Type>) Initializes the AdapterLoader<T>.
(Inherited from AdapterLoader<T>)
Public methodLoadSettings Loads saved AdapterLoader<T> settings from the config file if the PersistSettings property is set to true.
(Inherited from AdapterLoader<T>)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMonitorAdapterResources Monitors the resource utilization of Adapters.
(Inherited from AdapterLoader<T>)
Protected methodOnAdapterCreated Raises the AdapterCreated event.
(Inherited from AdapterLoader<T>)
Protected methodOnAdapterLoaded Raises the AdapterLoaded event.
(Inherited from AdapterLoader<T>)
Protected methodOnAdapterLoadException Raises the AdapterLoadException event.
(Inherited from AdapterLoader<T>)
Protected methodOnAdapterResourceUsageExceeded Raises the AdapterResourceUsageExceeded event.
(Inherited from AdapterLoader<T>)
Protected methodOnAdapterUnloaded Raises the AdapterUnloaded event.
(Inherited from AdapterLoader<T>)
Protected methodOnOperationExecutionException Raises the OperationExecutionException event.
(Inherited from AdapterLoader<T>)
Protected methodProcessAdapter(String) Processes the adapterFile by deserializing it.
(Inherited from AdapterLoader<T>)
Protected methodProcessAdapter(Type) Processes the adapterType by instantiating it.
(Inherited from AdapterLoader<T>)
Public methodSaveSettings Saves AdapterLoader<T> settings to the config file if the PersistSettings property is set to true.
(Inherited from AdapterLoader<T>)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventAdapterCreated Occurs when a new adapter is found and instantiated.
(Inherited from AdapterLoader<T>)
Public eventAdapterLoaded Occurs when a new adapter is loaded to the Adapters list.
(Inherited from AdapterLoader<T>)
Public eventAdapterLoadException Occurs when an Exception is encountered when loading an adapter.
(Inherited from AdapterLoader<T>)
Public eventAdapterResourceUsageExceeded Occurs when an adapter has exceeded either the AllowableAdapterMemoryUsage or AllowableAdapterProcessorUsage.
(Inherited from AdapterLoader<T>)
Public eventAdapterUnloaded Occurs when an existing adapter is unloaded from the Adapters list.
(Inherited from AdapterLoader<T>)
Public eventDisposed Occurs when the class has been disposed.
(Inherited from AdapterLoader<T>)
Public eventOperationExecutionException Occurs when an Exception is encountered while executing a queued operation on one the Adapters.
(Inherited from AdapterLoader<T>)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefault<T> Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also