Commit fb7389df authored by Antoine Millet's avatar Antoine Millet
Browse files

Added dbstats method to cli handler

parent b6a2e865
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ class CliHandler(RegisteredCCHandler):
       CliHandler.rshell_resize
       CliHandler.rshell_wait
       CliHandler.forward
       CliHandler.dbstats
    """

    @listed
@@ -743,6 +744,12 @@ class CliHandler(RegisteredCCHandler):
        # Create tunnel to the CLI
        self.client.register_tunnel('forward', host_client, s2n_tun)

    @listed
    def dbstats(self):
        """ Get statistics about tql database.
        """
        return self.server.db.stats()

    def forward_call(self, login, func, *args, **kwargs):
        """ Forward a call to a connected client and return result.