Click or drag to resize

ServiceMonitors Class

Adapter loader that loads implementations of IServiceMonitor and delegates messages to the enabled monitors.
Inheritance Hierarchy
SystemObject
  GSF.AdaptersAdapterLoaderIServiceMonitor
    GSF.ServiceProcessServiceMonitors

Namespace: GSF.ServiceProcess
Assembly: GSF.ServiceProcess (in GSF.ServiceProcess.dll) Version: 2.4.218-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 AdapterLoaderT)
Public propertyAdapterFileExtension Gets or sets the file extension of the Adapters.
(Inherited from AdapterLoaderT)
Public propertyAdapterFileFormat Gets or sets the file format of the Adapters.
(Inherited from AdapterLoaderT)
Public propertyAdapters Gets a list of adapters loaded from the AdapterDirectory.
(Inherited from AdapterLoaderT)
Protected propertyAdapterWatcher Gets the FileSystemWatcher object watching for new adapter assemblies added at runtime.
(Inherited from AdapterLoaderT)
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 AdapterLoaderT)
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 AdapterLoaderT)
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 AdapterLoaderT)
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 AdapterLoaderT)
Public propertyEnabled Gets or sets a boolean value that indicates whether the AdapterLoaderT is currently enabled.
(Inherited from AdapterLoaderT)
Public propertyIsDisposed Gets a flag that indicates whether the object has been disposed.
(Inherited from AdapterLoaderT)
Public propertyIsolateAdapters Gets or sets a boolean value that indicates whether Adapters are loaded in separate AppDomain for isolated execution.
(Inherited from AdapterLoaderT)
Public propertyMonitorAdapters Gets or sets a boolean value that indicates whether resource utilization of Adapters executing in isolation is to be monitored.
(Inherited from AdapterLoaderT)
Public propertyName Gets the unique identifier of the AdapterLoaderT.
(Inherited from AdapterLoaderT)
Protected propertyOperationQueue Gets the ProcessQueueT object to be used for queuing operations to be executed on Adapters.
(Inherited from AdapterLoaderT)
Public propertyPersistSettings Gets or sets a boolean value that indicates whether AdapterLoaderT settings are to be saved to the config file.
(Inherited from AdapterLoaderT)
Public propertySettingsCategory Gets or sets the category under which AdapterLoaderT settings are to be saved to the config file if the PersistSettings property is set to true.
(Inherited from AdapterLoaderT)
Public propertyStatus Gets the descriptive status of the AdapterLoaderT.
(Inherited from AdapterLoaderT)
Public propertyWatchForAdapters Gets or sets a boolean value that indicates whether the AdapterDirectory is to be monitored for new Adapters.
(Inherited from AdapterLoaderT)
Top
Methods
 NameDescription
Public methodDispose Releases all the resources used by the AdapterLoaderT.
(Inherited from AdapterLoaderT)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the AdapterLoaderT and optionally releases the managed resources.
(Inherited from AdapterLoaderT)
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 AdapterLoaderTExecuteAdapterOperation(T, Object))
Protected methodFinalize Releases the unmanaged resources before the AdapterLoaderT is reclaimed by GC.
(Inherited from AdapterLoaderT)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetMemoryUsage Gets the memory usage in bytes of the specified process.
(Inherited from AdapterLoaderT)
Protected methodGetProcessorUsage Gets the % processor usage of the specified process.
(Inherited from AdapterLoaderT)
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 AdapterLoaderT.
(Inherited from AdapterLoaderT)
Public methodInitialize(IEnumerableType) Initializes the AdapterLoaderT.
(Inherited from AdapterLoaderT)
Public methodLoadSettings Loads saved AdapterLoaderT settings from the config file if the PersistSettings property is set to true.
(Inherited from AdapterLoaderT)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMonitorAdapterResources Monitors the resource utilization of Adapters.
(Inherited from AdapterLoaderT)
Protected methodOnAdapterCreated Raises the AdapterCreated event.
(Inherited from AdapterLoaderT)
Protected methodOnAdapterLoaded Raises the AdapterLoaded event.
(Inherited from AdapterLoaderT)
Protected methodOnAdapterLoadException Raises the AdapterLoadException event.
(Inherited from AdapterLoaderT)
Protected methodOnAdapterResourceUsageExceeded Raises the AdapterResourceUsageExceeded event.
(Inherited from AdapterLoaderT)
Protected methodOnAdapterUnloaded Raises the AdapterUnloaded event.
(Inherited from AdapterLoaderT)
Protected methodOnOperationExecutionException Raises the OperationExecutionException event.
(Inherited from AdapterLoaderT)
Protected methodProcessAdapter(String) Processes the adapterFile by deserializing it.
(Inherited from AdapterLoaderT)
Protected methodProcessAdapter(Type) Processes the adapterType by instantiating it.
(Inherited from AdapterLoaderT)
Public methodSaveSettings Saves AdapterLoaderT settings to the config file if the PersistSettings property is set to true.
(Inherited from AdapterLoaderT)
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 AdapterLoaderT)
Public eventAdapterLoaded Occurs when a new adapter is loaded to the Adapters list.
(Inherited from AdapterLoaderT)
Public eventAdapterLoadException Occurs when an Exception is encountered when loading an adapter.
(Inherited from AdapterLoaderT)
Public eventAdapterResourceUsageExceeded Occurs when an adapter has exceeded either the AllowableAdapterMemoryUsage or AllowableAdapterProcessorUsage.
(Inherited from AdapterLoaderT)
Public eventAdapterUnloaded Occurs when an existing adapter is unloaded from the Adapters list.
(Inherited from AdapterLoaderT)
Public eventDisposed Occurs when the class has been disposed.
(Inherited from AdapterLoaderT)
Public eventOperationExecutionException Occurs when an Exception is encountered while executing a queued operation on one the Adapters.
(Inherited from AdapterLoaderT)
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 MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also