Worker This is a subclass of thread that submits commands to the server and stores the result in a thread-safe queue. More...
Public Member Functions | |
def | __init__ |
def | run |
Private Attributes | |
__host | |
__perfcmds | |
__port | |
__queue |
Worker This is a subclass of thread that submits commands to the server and stores the result in a thread-safe queue.
Definition at line 246 of file cmsPerfClient.py.
def cmsPerfClient::Worker::__init__ | ( | self, | |
host, | |||
port, | |||
perfcmds, | |||
queue | |||
) |
Definition at line 248 of file cmsPerfClient.py.
def cmsPerfClient::Worker::run | ( | self | ) |
Definition at line 255 of file cmsPerfClient.py.
00256 : 00257 try: 00258 data = request_benchmark(self.__perfcmds, self.__host, self.__port) 00259 #Debugging 00260 print "data is %s"%data 00261 print "Puttin it in the queue as (%s,%s)"%(self.__host,data) 00262 self.__queue.put((self.__host, data)) 00263 except (exceptions.Exception, xmlrpclib.Fault), detail: 00264 print "Exception was thrown when receiving/submitting job information to host", self.__host, ". Exception information:" 00265 print detail 00266 sys.stdout.flush()
cmsPerfClient::Worker::__host [private] |
Definition at line 248 of file cmsPerfClient.py.
cmsPerfClient::Worker::__perfcmds [private] |
Definition at line 248 of file cmsPerfClient.py.
cmsPerfClient::Worker::__port [private] |
Definition at line 248 of file cmsPerfClient.py.
cmsPerfClient::Worker::__queue [private] |
Definition at line 248 of file cmsPerfClient.py.