Class DmsService
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
Represents a DataMiner service.
public sealed class DmsService : DmsObject, IDmsService, IDmsObject, IUpdateable
- Inheritance
-
DmsService
- Implements
- Inherited Members
- Extension Methods
Constructors
- DmsService(IDms, DmsServiceId)
Initializes a new instance of the DmsService class.
Properties
- AdvancedSettings
Gets the advanced settings of the service.
- AgentId
Gets the DataMiner Agent ID.
- Description
Gets or sets the service description.
- DmsServiceId
Gets the system-wide service ID of the service.
- Host
Gets the DataMiner Agent that hosts this service.
- Id
Gets the service ID.
- Name
Gets or sets the service name.
- ParameterSettings
Gets the Parameter settings of the service.
- Properties
Gets the properties of this service.
- ReplicationSettings
Gets the replication settings.
- Views
Gets the views the service is part of.
Methods
- Delete()
Deletes the service.
- Duplicate(string, IDma)
Duplicates the service.
- Exists()
Determines whether this DataMiner service exists in the DataMiner System.
- GetState()
Gets the service state.
- StartAlarmLevelMonitor(string, Action<ServiceAlarmLevelChange>)
Starts monitoring alarm level changes for a specific service. Every change triggers the specified
onChangeaction.
- StartAlarmLevelMonitor(string, Action<ServiceAlarmLevelChange>, TimeSpan)
Starts monitoring alarm changes. Every change will perform the onChange action. Important: do not use SLProtocol in the provided action.
- StartStateMonitor(string, Action<ServiceStateChange>)
Starts monitoring service state changes using the default timeout.
- StartStateMonitor(string, Action<ServiceStateChange>, TimeSpan)
Starts monitoring state changes for a specific service. Every change triggers the specified
onChangeaction.
- StopAlarmLevelMonitor(string, bool)
Stops the specified monitor for a given service, using the default timeout.
- StopAlarmLevelMonitor(string, TimeSpan, bool)
Stops the specified monitor for a given service.
- StopStateMonitor(string, bool)
Stops the specified monitor for a given service, using the default timeout.
- StopStateMonitor(string, TimeSpan, bool)
Stops the specified monitor for a given service.
- ToString()
Returns a string that represents the current object.
- Update()
Updates the service.