class documentation

class DummyQueue:

Constructor: DummyQueue(directory)

View In Hierarchy

A fake relay queue to use for testing.

This queue doesn't keep track of which messages are waiting to be relayed or are in the process of being relayed.

Method __init__ No summary
Method createNewMessage Create a new message in the queue.
Method done Remove a message from the queue.
Method getEnvelopeFile Get the envelope file for a message in the queue.
Method getPath Return the full base pathname of a message in the queue.
Method setWaiting Ignore the request to mark a message as waiting to be relayed.
Instance Variable directory See __init__.
def __init__(self, directory):
Parameters
directory:bytesThe pathname of the directory holding messages in the queue.
def createNewMessage(self):

Create a new message in the queue.

Returns
2-tuple of (1) file, (2) FileMessageThe envelope file and a message receiver for a new message in the queue.
def done(self, message):

Remove a message from the queue.

Parameters
message:bytesThe base filename of a message.
def getEnvelopeFile(self, message):

Get the envelope file for a message in the queue.

Parameters
message:bytesThe base filename of a message.
Returns
fileThe envelope file for the message.
def getPath(self, message):

Return the full base pathname of a message in the queue.

Parameters
message:bytesThe base filename of a message.
Returns
bytesThe full base pathname of the message.
def setWaiting(self, message):

Ignore the request to mark a message as waiting to be relayed.

Parameters
message:bytesThe base filename of a message.
directory =