Package proton :: Module _events :: Class Event
[frames] | no frames]

Class Event

source code

object --+    
         |    
 EventBase --+
             |
            Event

Instance Methods
 
__init__(self, impl, number, clsname, context)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getattr__(self, name)
This will look for a property of the event as an attached context object of the same type as the property (but lowercase)
source code

Inherited from EventBase: __repr__, dispatch

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
wrap(impl) source code
Class Variables
  TIMER_TASK = EventType(name=PN_TIMER_TASK, number=4)
  CONNECTION_INIT = EventType(name=PN_CONNECTION_INIT, number=5)
  CONNECTION_BOUND = EventType(name=PN_CONNECTION_BOUND, number=6)
  CONNECTION_UNBOUND = EventType(name=PN_CONNECTION_UNBOUND, num...
  CONNECTION_LOCAL_OPEN = EventType(name=PN_CONNECTION_LOCAL_OPE...
  CONNECTION_LOCAL_CLOSE = EventType(name=PN_CONNECTION_LOCAL_CL...
  CONNECTION_REMOTE_OPEN = EventType(name=PN_CONNECTION_REMOTE_O...
  CONNECTION_REMOTE_CLOSE = EventType(name=PN_CONNECTION_REMOTE_...
  CONNECTION_FINAL = EventType(name=PN_CONNECTION_FINAL, number=12)
  SESSION_INIT = EventType(name=PN_SESSION_INIT, number=13)
  SESSION_LOCAL_OPEN = EventType(name=PN_SESSION_LOCAL_OPEN, num...
  SESSION_LOCAL_CLOSE = EventType(name=PN_SESSION_LOCAL_CLOSE, n...
  SESSION_REMOTE_OPEN = EventType(name=PN_SESSION_REMOTE_OPEN, n...
  SESSION_REMOTE_CLOSE = EventType(name=PN_SESSION_REMOTE_CLOSE,...
  SESSION_FINAL = EventType(name=PN_SESSION_FINAL, number=18)
  LINK_INIT = EventType(name=PN_LINK_INIT, number=19)
  LINK_LOCAL_OPEN = EventType(name=PN_LINK_LOCAL_OPEN, number=20)
  LINK_LOCAL_CLOSE = EventType(name=PN_LINK_LOCAL_CLOSE, number=22)
  LINK_LOCAL_DETACH = EventType(name=PN_LINK_LOCAL_DETACH, numbe...
  LINK_REMOTE_OPEN = EventType(name=PN_LINK_REMOTE_OPEN, number=21)
  LINK_REMOTE_CLOSE = EventType(name=PN_LINK_REMOTE_CLOSE, numbe...
  LINK_REMOTE_DETACH = EventType(name=PN_LINK_REMOTE_DETACH, num...
  LINK_FLOW = EventType(name=PN_LINK_FLOW, number=26)
  LINK_FINAL = EventType(name=PN_LINK_FINAL, number=27)
  DELIVERY = EventType(name=PN_DELIVERY, number=28)
  TRANSPORT = EventType(name=PN_TRANSPORT, number=29)
  TRANSPORT_ERROR = EventType(name=PN_TRANSPORT_ERROR, number=31)
  TRANSPORT_HEAD_CLOSED = EventType(name=PN_TRANSPORT_HEAD_CLOSE...
  TRANSPORT_TAIL_CLOSED = EventType(name=PN_TRANSPORT_TAIL_CLOSE...
  TRANSPORT_CLOSED = EventType(name=PN_TRANSPORT_CLOSED, number=34)
  REACTOR_INIT = EventType(name=reactor_init, number=10000)
  REACTOR_QUIESCED = EventType(name=reactor_quiesced, number=10001)
  REACTOR_FINAL = EventType(name=reactor_final, number=10002)
  SELECTABLE_INIT = EventType(name=selectable_init, number=10003)
  SELECTABLE_UPDATED = EventType(name=selectable_updated, number...
  SELECTABLE_READABLE = EventType(name=selectable_readable, numb...
  SELECTABLE_WRITABLE = EventType(name=selectable_writable, numb...
  SELECTABLE_EXPIRED = EventType(name=selectable_expired, number...
  SELECTABLE_ERROR = EventType(name=selectable_error, number=10008)
  SELECTABLE_FINAL = EventType(name=selectable_final, number=10009)
Properties
  clazz
  context
Returns the context object associated with the event.
  handler
  reactor
Deprecated: Returns the container (was reactor) associated with the event.
  container
Returns the container associated with the event.
  transport
Returns the transport associated with the event, or null if none is associated with it.
  connection
Returns the connection associated with the event, or null if none is associated with it.
  session
Returns the session associated with the event, or null if none is associated with it.
  link
Returns the link associated with the event, or null if none is associated with it.
  sender
Returns the sender link associated with the event, or null if none is associated with it.
  receiver
Returns the receiver link associated with the event, or null if none is associated with it.
  delivery
Returns the delivery associated with the event, or null if none is associated with it.

Inherited from EventBase: type

Inherited from object: __class__

Method Details

__init__(self, impl, number, clsname, context)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details

CONNECTION_UNBOUND

Value:
EventType(name=PN_CONNECTION_UNBOUND, number=7)

CONNECTION_LOCAL_OPEN

Value:
EventType(name=PN_CONNECTION_LOCAL_OPEN, number=8)

CONNECTION_LOCAL_CLOSE

Value:
EventType(name=PN_CONNECTION_LOCAL_CLOSE, number=10)

CONNECTION_REMOTE_OPEN

Value:
EventType(name=PN_CONNECTION_REMOTE_OPEN, number=9)

CONNECTION_REMOTE_CLOSE

Value:
EventType(name=PN_CONNECTION_REMOTE_CLOSE, number=11)

SESSION_LOCAL_OPEN

Value:
EventType(name=PN_SESSION_LOCAL_OPEN, number=14)

SESSION_LOCAL_CLOSE

Value:
EventType(name=PN_SESSION_LOCAL_CLOSE, number=16)

SESSION_REMOTE_OPEN

Value:
EventType(name=PN_SESSION_REMOTE_OPEN, number=15)

SESSION_REMOTE_CLOSE

Value:
EventType(name=PN_SESSION_REMOTE_CLOSE, number=17)

LINK_LOCAL_DETACH

Value:
EventType(name=PN_LINK_LOCAL_DETACH, number=24)

LINK_REMOTE_CLOSE

Value:
EventType(name=PN_LINK_REMOTE_CLOSE, number=23)

LINK_REMOTE_DETACH

Value:
EventType(name=PN_LINK_REMOTE_DETACH, number=25)

TRANSPORT_HEAD_CLOSED

Value:
EventType(name=PN_TRANSPORT_HEAD_CLOSED, number=32)

TRANSPORT_TAIL_CLOSED

Value:
EventType(name=PN_TRANSPORT_TAIL_CLOSED, number=33)

SELECTABLE_UPDATED

Value:
EventType(name=selectable_updated, number=10004)

SELECTABLE_READABLE

Value:
EventType(name=selectable_readable, number=10005)

SELECTABLE_WRITABLE

Value:
EventType(name=selectable_writable, number=10006)

SELECTABLE_EXPIRED

Value:
EventType(name=selectable_expired, number=10007)

Property Details

clazz

Get Method:
unreachable.clazz(self)

context

Returns the context object associated with the event. The type of this depends on the type of event.

Get Method:
unreachable.context(self) - Returns the context object associated with the event.

handler

Get Method:
unreachable.handler(self)

reactor

Deprecated: Returns the container (was reactor) associated with the event.

Get Method:
unreachable.reactor(self) - Deprecated: Returns the container (was reactor) associated with the event.

container

Returns the container associated with the event.

Get Method:
unreachable.container(self) - Returns the container associated with the event.

transport

Returns the transport associated with the event, or null if none is associated with it.

Get Method:
unreachable.transport(self) - Returns the transport associated with the event, or null if none is associated with it.

connection

Returns the connection associated with the event, or null if none is associated with it.

Get Method:
unreachable.connection(self) - Returns the connection associated with the event, or null if none is associated with it.

session

Returns the session associated with the event, or null if none is associated with it.

Get Method:
unreachable.session(self) - Returns the session associated with the event, or null if none is associated with it.

link

Returns the link associated with the event, or null if none is associated with it.

Get Method:
unreachable.link(self) - Returns the link associated with the event, or null if none is associated with it.

sender

Returns the sender link associated with the event, or null if none is associated with it. This is essentially an alias for link(), that does an additional check on the type of the link.

Get Method:
unreachable.sender(self) - Returns the sender link associated with the event, or null if none is associated with it.

receiver

Returns the receiver link associated with the event, or null if none is associated with it. This is essentially an alias for link(), that does an additional check on the type of the link.

Get Method:
unreachable.receiver(self) - Returns the receiver link associated with the event, or null if none is associated with it.

delivery

Returns the delivery associated with the event, or null if none is associated with it.

Get Method:
unreachable.delivery(self) - Returns the delivery associated with the event, or null if none is associated with it.