Merge "Add Event methods to db api."

This commit is contained in:
Jenkins
2013-05-23 12:34:57 +00:00
committed by Gerrit Code Review
13 changed files with 626 additions and 16 deletions

View File

@@ -553,6 +553,20 @@ class Connection(base.Connection):
"""
self.db.alarm.remove({'alarm_id': alarm_id})
def record_events(self, events):
"""Write the events.
:param events: a list of model.Event objects.
"""
raise NotImplementedError('Events not implemented.')
def get_events(self, event_filter):
"""Return an iterable of model.Event objects.
:param event_filter: EventFilter instance
"""
raise NotImplementedError('Events not implemented.')
def require_map_reduce(conn):
"""Raises SkipTest if the connection is using mim.