summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/FileMonitor/Pseudo.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-11 13:01:21 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-11 13:01:31 -0400
commitbc5f0007512fe07ed2b09f9ff3427a7366126f8c (patch)
tree6498e8d100363abe35a5a7737a7257b0c48f305c /src/lib/Bcfg2/Server/FileMonitor/Pseudo.py
parent24235bfffbe5640476741533d58fccab08ca197b (diff)
downloadbcfg2-bc5f0007512fe07ed2b09f9ff3427a7366126f8c.tar.gz
bcfg2-bc5f0007512fe07ed2b09f9ff3427a7366126f8c.tar.bz2
bcfg2-bc5f0007512fe07ed2b09f9ff3427a7366126f8c.zip
wrote FAM docs
Diffstat (limited to 'src/lib/Bcfg2/Server/FileMonitor/Pseudo.py')
-rw-r--r--src/lib/Bcfg2/Server/FileMonitor/Pseudo.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/Bcfg2/Server/FileMonitor/Pseudo.py b/src/lib/Bcfg2/Server/FileMonitor/Pseudo.py
index 9062cbfd8..24cd099d0 100644
--- a/src/lib/Bcfg2/Server/FileMonitor/Pseudo.py
+++ b/src/lib/Bcfg2/Server/FileMonitor/Pseudo.py
@@ -1,17 +1,20 @@
-""" Pseudo provides static monitor support for file alteration events """
+""" Pseudo provides static monitor support for file alteration events.
+That is, it only produces "exists" and "endExist" events and does not
+monitor for ongoing changes. """
import os
from Bcfg2.Server.FileMonitor import FileMonitor, Event
class Pseudo(FileMonitor):
- """ file monitor that only produces events on server startup and
- doesn't actually monitor at all """
+ """ File monitor that only produces events on server startup and
+ doesn't actually monitor for ongoing changes at all. """
- __priority__ = 99
+ #: The ``Pseudo`` monitor should only be used if no other FAM
+ #: backends are available.
+ __priority__ = 1
def AddMonitor(self, path, obj, handleID=None):
- """add a monitor to path, installing a callback to obj.HandleEvent"""
if handleID is None:
handleID = len(list(self.handles.keys()))
self.events.append(Event(handleID, path, 'exists'))