Пример #1
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     cat = CatchupStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     cat.input = [InputUrl.make_stub()]
     cat.output = [OutputUrl.make_default_http()]
     IStreamObject.fill_defaults(cat)
     return cls(cat, settings, client)
Пример #2
0
 def make_catchup_stream(self) -> CatchupStream:
     return CatchupStream.make_stream(self._settings)
Пример #3
0
 def update_entry(self, entry: CatchupStream):
     entry.start = self.start.data
     entry.stop = self.stop.data
     return super(CatchupStreamForm, self).update_entry(entry)
Пример #4
0
 def make_entry(self):
     return self.update_entry(CatchupStream())
Пример #5
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     cat = CatchupStream()
     cat.input = [InputUrl(id=InputUrl.generate_id())]
     cat.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(cat, settings, client)
Пример #6
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     cat = CatchupStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     cat.input = [InputUrl(id=InputUrl.generate_id())]
     cat.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(cat, settings, client)