#!usr/bin/python
# -*- coding:utf-8 -*-

from common.Log import *
from Server import *
from common.DeviceManager import *
import threading

class ServerManager:
    def __init__(self):

        self.testdevices = DeviceManager.testdevices
        self.serverobjects = []
        self.threads = []

    def start_all_server(self):
        for deviceid,device in self.testdevices.iteritems():
            server = Server(device)
            self.serverobjects.append(server)
            thread1 = threading.Thread(target=server.start)
            thread1.start()

    def stop_all_server(self):
        for server in self.serverobjects:
            server.stop()

    def list_devices(self):
        for deviceid,device in self.testdevices.iteritems():
            server = Server(device)
            server.list_connect_devices()




cd54a5bceccd088e322097382cb8445988f65664
<mask token>


class ServerManager:
    <mask token>

    def start_all_server(self):
        for deviceid, device in self.testdevices.iteritems():
            server = Server(device)
            self.serverobjects.append(server)
            thread1 = threading.Thread(target=server.start)
            thread1.start()
    <mask token>

    def list_devices(self):
        for deviceid, device in self.testdevices.iteritems():
            server = Server(device)
            server.list_connect_devices()

<mask token>


class ServerManager:

    def __init__(self):
        self.testdevices = DeviceManager.testdevices
        self.serverobjects = []
        self.threads = []

    def start_all_server(self):
        for deviceid, device in self.testdevices.iteritems():
            server = Server(device)
            self.serverobjects.append(server)
            thread1 = threading.Thread(target=server.start)
            thread1.start()
    <mask token>

    def list_devices(self):
        for deviceid, device in self.testdevices.iteritems():
            server = Server(device)
            server.list_connect_devices()

<mask token>


class ServerManager:

    def __init__(self):
        self.testdevices = DeviceManager.testdevices
        self.serverobjects = []
        self.threads = []

    def start_all_server(self):
        for deviceid, device in self.testdevices.iteritems():
            server = Server(device)
            self.serverobjects.append(server)
            thread1 = threading.Thread(target=server.start)
            thread1.start()

    def stop_all_server(self):
        for server in self.serverobjects:
            server.stop()

    def list_devices(self):
        for deviceid, device in self.testdevices.iteritems():
            server = Server(device)
            server.list_connect_devices()

from common.Log import *
from Server import *
from common.DeviceManager import *
import threading


class ServerManager:

    def __init__(self):
        self.testdevices = DeviceManager.testdevices
        self.serverobjects = []
        self.threads = []

    def start_all_server(self):
        for deviceid, device in self.testdevices.iteritems():
            server = Server(device)
            self.serverobjects.append(server)
            thread1 = threading.Thread(target=server.start)
            thread1.start()

    def stop_all_server(self):
        for server in self.serverobjects:
            server.stop()

    def list_devices(self):
        for deviceid, device in self.testdevices.iteritems():
            server = Server(device)
            server.list_connect_devices()

#!usr/bin/python
# -*- coding:utf-8 -*-

from common.Log import *
from Server import *
from common.DeviceManager import *
import threading

class ServerManager:
    def __init__(self):

        self.testdevices = DeviceManager.testdevices
        self.serverobjects = []
        self.threads = []

    def start_all_server(self):
        for deviceid,device in self.testdevices.iteritems():
            server = Server(device)
            self.serverobjects.append(server)
            thread1 = threading.Thread(target=server.start)
            thread1.start()

    def stop_all_server(self):
        for server in self.serverobjects:
            server.stop()

    def list_devices(self):
        for deviceid,device in self.testdevices.iteritems():
            server = Server(device)
            server.list_connect_devices()



