Пример #1
0
    def do_disconnect(self, arguments):
        """disconnects a Mercury session"""

        response = self.__getServerConnector(arguments).stopSession(arguments.device)

        print SystemResponseFormatter.format(response)
        
        self.__getServerConnector(arguments).close()
Пример #2
0
    def do_devices(self, arguments):
        """lists all devices bound to the Mercury server"""

        response = self.__getServerConnector(arguments).listDevices()

        print SystemResponseFormatter.format(response)

        self.__getServerConnector(arguments).close()
Пример #3
0
    def do_devices(self, arguments):
        """lists all devices bound to the Mercury server"""

        response = self.__getServerConnector(arguments).listDevices()

        print SystemResponseFormatter.format(response)

        self.__getServerConnector(arguments).close()
Пример #4
0
    def do_disconnect(self, arguments):
        """disconnects a Mercury session"""

        response = self.__getServerConnector(arguments).stopSession(
            arguments.device)

        print SystemResponseFormatter.format(response)

        self.__getServerConnector(arguments).close()
Пример #5
0
    def do_sessions(self, arguments):
        """lists all active sessions on the Mercury server"""

        response = self.__getServer(arguments).listSessions()

        print SystemResponseFormatter.format(response)