X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Flttngtest%2Flttngctl.py;h=64c78b83909a91a079019bcdecd78a804b3bb369;hb=a8cac44b677e440a552921794b51699edf4cf846;hp=c2afa885f56f14448ea9c5c30bd0688afcfd9a25;hpb=a631186c95826a55d870eca56c801de93441b900;p=lttng-tools.git diff --git a/tests/utils/lttngtest/lttngctl.py b/tests/utils/lttngtest/lttngctl.py index c2afa885f..64c78b839 100644 --- a/tests/utils/lttngtest/lttngctl.py +++ b/tests/utils/lttngtest/lttngctl.py @@ -392,6 +392,11 @@ class Session(abc.ABC): # type: () -> bool pass + @abc.abstractmethod + def rotate(self): + # type: () -> None + raise NotImplementedError + @abc.abstractproperty def kernel_pid_process_attribute_tracker(self): # type: () -> Type[ProcessIDProcessAttributeTracker] @@ -543,3 +548,27 @@ class Controller(abc.ABC): List all sessions visible to the current user. """ pass + + @abc.abstractmethod + def rotate_session_by_name(self, name, wait=True): + # type: (str, bool) -> None + """ + Rotate a session + """ + raise NotImplementedError + + @abc.abstractmethod + def schedule_size_based_rotation(self, name, size_bytes): + # type: (str, int) -> None + """ + Schedule automatic size-based rotations. + """ + raise NotImplementedError + + @abc.abstractmethod + def schedule_time_based_rotation(self, name, period_seconds): + # type: (str, int) -> None + """ + Schedule automatic time-based rotations. + """ + raise NotImplementedError