added a bootstrap script for queue interaction

This commit is contained in:
Stephen Mardson McQuay 2011-04-01 14:25:27 -06:00
parent dbba5c4044
commit ba1fd5e3a4

10
bin/interactq.py Normal file
View File

@ -0,0 +1,10 @@
import interp.bootstrap
from multiprocessing.managers import BaseManager
class QueueManager(BaseManager): pass
QueueManager.register('get_inqueue' )
QueueManager.register('get_outqueue')
m = QueueManager(address=('localhost', 6666), authkey='asdf')
m.connect()
m.get_outqueue()
oq = m.get_outqueue()
iq = m.get_inqueue()