new VolumeInterrogatorBase(configopt)
- Description:
Base class for volume interrogation (operating system agnostic).
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
object |
<optional> |
The settings to use for creating the object. Properties
|
Throws:
-
-
- thrown if the configuration item is not the expected type.
- Type
- TypeError
-
-
-
- thrown if the configuration parameters are out of bounds.
- Type
- RangeError
-
Extends
- EventEmitter
Members
Active
- Description:
Read-Only Property accessor indicating if the checking of volume data is active.
- Source:
Read-Only Property accessor indicating if the checking of volume data is active.
MaximumPeriod
- Description:
Read-Only Property accessor for the maximum period
- Source:
Read-Only Property accessor for the maximum period
MinimumPeriod
- Description:
Read-Only Property accessor for the minumum period
- Source:
Read-Only Property accessor for the minumum period
Period
- Description:
Read Property accessor for the interrogation period.
- Source:
Read Property accessor for the interrogation period.
Period
- Description:
Write Property accessor for the interrogation period.
- Source:
Write Property accessor for the interrogation period.
Methods
Start() → {void}
- Description:
Starts/Restart the interrogation process.
- Source:
Returns:
- Type
- void
Stop() → {void}
- Description:
Stop the interrogation process.
- Source:
Returns:
- Type
- void
Terminate() → {void}
- Description:
Destructor
- Source:
Returns:
- Type
- void
_handleVolumeWatcherAdded(result) → {void}
- Description:
Event handler for file system change detections. Called when the contents of the watched folder(s) change(s).
- Source:
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
result |
object | Result of the request to add a watcher. Properties
|
Returns:
- Type
- void
(static) _validateVolumeExclusionMask(maskConfig) → {boolean}
- Description:
Helper to evaluate the validity of the volume exclusion configuration.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
maskConfig |
object | Volume exclusion mask. |
Returns:
trueif the exclusion mask is valid.falseotherwise.
- Type
- boolean