示例#1
0
    def __init__( self, queue, options, send=None, name=None ):
        '''
        Constructor
        args:
        :param queue: Queue for sending data between threads
        :type HMQueue:
        :param options: options from the command line
        :type dict:
        :param send: optional argument used for test
        :type COSMSend:
        :returns: None
        :raises: None

        '''
        self._queue = queue
        if ( send == None ):
            self._cosm_send = COSMSend( options )
        else:
            self._cosm_send = send
        super( COSMOutputThread, self ).__init__()

        threading.Thread.__init__( self )