stomp.listener
index
/home/localhost/python/frymaster/stomp/stomp.py-2.0.1/stomp/listener.py

 
Classes
       
__builtin__.object
ConnectionListener
StatsListener

 
class ConnectionListener(__builtin__.object)
    This class should be used as a base class for objects registered
using Connection.set_listener().
 
  Methods defined here:
on_connected(self, headers, body)
Called by the STOMP connection when a CONNECTED frame is
received, that is after a connection has been established or
re-established.
 
\param headers a dictionary containing all headers sent by the
server as key/value pairs.
 
\param body the frame's payload. This is usually empty for
CONNECTED frames.
on_connecting(self, host_and_port)
Called by the STOMP connection once a TCP/IP connection to the
STOMP server has been established or re-established. Note that
at this point, no connection has been established on the STOMP
protocol level. For this, you need to invoke the "connect"
method on the connection.
 
\param host_and_port a tuple containing the host name and port
number to which the connection has been established.
on_disconnected(self)
Called by the STOMP connection when a TCP/IP connection to the
STOMP server has been lost.  No messages should be sent via
the connection until it has been reestablished.
on_error(self, headers, body)
Called by the STOMP connection when an ERROR frame is
received.
 
\param headers a dictionary containing all headers sent by the
server as key/value pairs.
 
\param body the frame's payload - usually a detailed error
description.
on_message(self, headers, body)
Called by the STOMP connection when a MESSAGE frame is
received.
 
\param headers a dictionary containing all headers sent by the
server as key/value pairs.
 
\param body the frame's payload - the message body.
on_receipt(self, headers, body)
Called by the STOMP connection when a RECEIPT frame is
received, sent by the server if requested by the client using
the 'receipt' header.
 
\param headers a dictionary containing all headers sent by the
server as key/value pairs.
 
\param body the frame's payload. This is usually empty for
RECEIPT frames.
on_send(self, headers, body)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class StatsListener(ConnectionListener)
    
Method resolution order:
StatsListener
ConnectionListener
__builtin__.object

Methods defined here:
__init__(self)
__str__(self)
on_connecting(self, host_and_port)
on_error(self, headers, message)
on_message(self, headers, message)
on_send(self, headers, message)

Methods inherited from ConnectionListener:
on_connected(self, headers, body)
Called by the STOMP connection when a CONNECTED frame is
received, that is after a connection has been established or
re-established.
 
\param headers a dictionary containing all headers sent by the
server as key/value pairs.
 
\param body the frame's payload. This is usually empty for
CONNECTED frames.
on_disconnected(self)
Called by the STOMP connection when a TCP/IP connection to the
STOMP server has been lost.  No messages should be sent via
the connection until it has been reestablished.
on_receipt(self, headers, body)
Called by the STOMP connection when a RECEIPT frame is
received, sent by the server if requested by the client using
the 'receipt' header.
 
\param headers a dictionary containing all headers sent by the
server as key/value pairs.
 
\param body the frame's payload. This is usually empty for
RECEIPT frames.

Data descriptors inherited from ConnectionListener:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)