X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Flttngtest%2Flttngctl.py;h=9b9658ec626086ef280d8acc9ff19c26894f60d0;hb=b978006283473456b0e545d1c21de60d3e298dc5;hp=b034308f3685b3de30b135c8168addd414594aa7;hpb=767954d25dee78ad2c5ccfc1ee40a5dbb157ca21;p=lttng-tools.git diff --git a/tests/utils/lttngtest/lttngctl.py b/tests/utils/lttngtest/lttngctl.py index b034308f3..9b9658ec6 100644 --- a/tests/utils/lttngtest/lttngctl.py +++ b/tests/utils/lttngtest/lttngctl.py @@ -371,6 +371,11 @@ class Session(abc.ABC): # type: () -> None pass + @abc.abstractmethod + def is_active(self): + # type: () -> bool + pass + @abc.abstractproperty def kernel_pid_process_attribute_tracker(self): # type: () -> Type[ProcessIDProcessAttributeTracker] @@ -442,3 +447,83 @@ class Controller(abc.ABC): to create a session without an output. """ pass + + @abc.abstractmethod + def start_session_by_name(self, name): + # type: (str) -> None + """ + Start a session by name. + """ + pass + + @abc.abstractmethod + def start_session_by_glob_pattern(self, pattern): + # type: (str) -> None + """ + Start sessions whose name matches `pattern`, see GLOB(7). + """ + pass + + @abc.abstractmethod + def start_sessions_all(self): + """ + Start all sessions visible to the current user. + """ + # type: () -> None + pass + + @abc.abstractmethod + def stop_session_by_name(self, name): + # type: (str) -> None + """ + Stop a session by name. + """ + pass + + @abc.abstractmethod + def stop_session_by_glob_pattern(self, pattern): + # type: (str) -> None + """ + Stop sessions whose name matches `pattern`, see GLOB(7). + """ + pass + + @abc.abstractmethod + def stop_sessions_all(self): + """ + Stop all sessions visible to the current user. + """ + # type: () -> None + pass + + @abc.abstractmethod + def destroy_session_by_name(self, name): + # type: (str) -> None + """ + Destroy a session by name. + """ + pass + + @abc.abstractmethod + def destroy_session_by_glob_pattern(self, pattern): + # type: (str) -> None + """ + Destroy sessions whose name matches `pattern`, see GLOB(7). + """ + pass + + @abc.abstractmethod + def destroy_sessions_all(self): + # type: () -> None + """ + Destroy all sessions visible to the current user. + """ + pass + + @abc.abstractmethod + def list_sessions(self): + # type: () -> List[Session] + """ + List all sessions visible to the current user. + """ + pass