blob: adbc0b1c21137b1b80d093db8a187f381d4c3afa [file] [log] [blame]
Scott Bakerbba67b62019-01-28 17:38:21 -08001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15
16class PullStep(object):
17 """
18 All the pull steps defined in each synchronizer needs to inherit from this class in order to be loaded
19 """
20
21 def __init__(self, **kwargs):
22 """
23 Initialize a pull step
24 :param kwargs:
25 -- observed_model: name of the model that is being polled
26 """
27 self.observed_model = kwargs.get("observed_model")
28
29 def pull_records(self):
30 self.log.debug(
31 "There is no default pull_records, please provide a pull_records method for %s"
32 % self.observed_model
33 )