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)
def make_catchup_stream(self) -> CatchupStream: return CatchupStream.make_stream(self._settings)
def update_entry(self, entry: CatchupStream): entry.start = self.start.data entry.stop = self.stop.data return super(CatchupStreamForm, self).update_entry(entry)
def make_entry(self): return self.update_entry(CatchupStream())
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)
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)