예제 #1
0
    def __init__(self,resultQueue):
        IServerObserver.__init__(self)
        IObserverController.__init__(self)
        IObserver.__init__(self)
        IObservable.__init__(self)

        self.resultQueue = resultQueue
        self.nodeBenchQueue = Queue()

        self.idGenerator = IDGenerator()
        self.server = ServerWrapper(self.idGenerator)
        self.nodes = {} 
        self.nodeId = ''
        
        self.charset = PrintableASCIIGeneratorUpper().getCharset()
        self.passwords = ['~~']
        self.length = 5
        self.benchLength = 3
        self.primer = []
        self.prefix = []
        self.hashFunction = 'lanman'
        
        self.results = Queue()
        self.runningWork = False
        self.finished = 0
        self.logger = Logger()
예제 #2
0
    def __init__(self):
        IObserver.__init__(self)
        self.logger = Logger()
        self.runningBench = False
        self.runningWork = False

        self.view = None
        self.port = 55555
        self.host = ''
        self.model = ''
        self.timeRunning = 0
        self.maxTime = 0
        self.benches = {}
        self.benchQueue = multiprocessing.Queue()
        self.resultQueue = multiprocessing.Queue()
        self.updates = multiprocessing.Queue()
 def __init__(self):
     IObserver.__init__(self)
     self.client = ClientWrapper()
     self.node = LocalNode()
     self.node.registerObserver(self)
     self.logger = Logger()