52 PRE_ON_DEACTIVATED = 5
57 PRE_ON_STATE_UPDATE = 10
58 PRE_ON_RATE_CHANGED = 11
59 PRE_COMPONENT_ACTION_LISTENER_NUM = 12
138 typeString = [
"PRE_ON_INITIALIZE",
143 "PRE_ON_DEACTIVATED",
148 "PRE_ON_STATE_UPDATE",
149 "PRE_ON_RATE_CHANGED",
150 "PRE_COMPONENT_ACTION_LISTENER_NUM"]
151 if type < PreComponentActionListenerType.PRE_COMPONENT_ACTION_LISTENER_NUM:
152 return typeString[type]
155 toString = staticmethod(toString)
208 class PostComponentActionListenerType:
214 POST_ON_INITIALIZE = 0
218 POST_ON_ACTIVATED = 4
219 POST_ON_DEACTIVATED = 5
224 POST_ON_STATE_UPDATE = 10
225 POST_ON_RATE_CHANGED = 11
226 POST_COMPONENT_ACTION_LISTENER_NUM = 12
306 typeString = [
"POST_ON_INITIALIZE",
311 "POST_ON_DEACTIVATED",
316 "POST_ON_STATE_UPDATE",
317 "POST_ON_RATE_CHANGED",
318 "POST_COMPONENT_ACTION_LISTENER_NUM"]
319 if type < PostComponentActionListenerType.POST_COMPONENT_ACTION_LISTENER_NUM:
320 return typeString[type]
323 toString = staticmethod(toString)
367 class PortActionListenerType:
376 PORT_ACTION_LISTENER_NUM = 2
430 typeString = [
"ADD_PORT",
432 "PORT_ACTION_LISTENER_NUM"]
433 if type < PortActionListenerType.PORT_ACTION_LISTENER_NUM:
434 return typeString[type]
437 toString = staticmethod(toString)
480 class ExecutionContextActionListenerType:
488 EC_ACTION_LISTENER_NUM = 2
541 typeString = [
"ATTACH_EC",
543 "EC_ACTION_LISTENER_NUM"]
544 if type < ExecutionContextActionListenerType.EC_ACTION_LISTENER_NUM:
545 return typeString[type]
548 toString = staticmethod(toString)
624 for (idx, listener)
in enumerate(self.
_listeners):
625 if listener.autoclean:
651 self._listeners.append(
Entry(listener, autoclean))
673 for i
in range(len_):
701 listener.listener(ec_id)
743 for (idx, listener)
in enumerate(self.
_listeners):
744 if listener.autoclean:
770 self._listeners.append(
Entry(listener, autoclean))
792 for i
in range(len_):
823 listener.listener(ec_id, ret)
866 for (idx, listener)
in enumerate(self.
_listeners):
867 if listener.autoclean:
893 self._listeners.append(
Entry(listener, autoclean))
916 for i
in range(len_):
946 listener.listener(pprofile)
988 for (idx, listener)
in enumerate(self.
_listeners):
989 if listener.autoclean:
1016 self._listeners.append(
Entry(listener, autoclean))
1039 for i
in range(len_):
1040 idx = (len_ - 1) - i
1041 if self.
_listeners[idx].listener == listener:
1070 listener.listener(ec_id)
1102 preaction_num = PreComponentActionListenerType.PRE_COMPONENT_ACTION_LISTENER_NUM
1104 for i
in range(preaction_num)]
1114 postaction_num = PostComponentActionListenerType.POST_COMPONENT_ACTION_LISTENER_NUM
1116 for i
in range(postaction_num)]
1126 portaction_num = PortActionListenerType.PORT_ACTION_LISTENER_NUM
1128 for i
in range(portaction_num)]
1138 ecaction_num = ExecutionContextActionListenerType.EC_ACTION_LISTENER_NUM
1140 for i
in range(ecaction_num)]
PostComponentActionListener class.
PreComponentActionListener holder class.
def removeListener(self, listener)
Remove the listener.
def addListener(self, listener, autoclean)
Add the listener.
def __del__(self)
Destructor virtual ~PortActionListener();.
PreComponentActionListener class.
def addListener(self, listener, autoclean)
Add the listener.
PostComponentActionListener holder class.
def __del__(self)
Destructor.
def __call__(self, ec_id)
Virtual Callback function.
def __call__(self, ec_id, ret)
Virtual Callback function.
def __init__(self)
Constructor.
def __del__(self)
Destructor.
def __init__(self)
Constructor.
def notify(self, ec_id)
Notify listeners.
PortActionListener class.
def removeListener(self, listener)
Remove the listener.
def notify(self, ec_id, ret)
Notify listeners.
The types of ConnectorDataListener.
ExecutionContextActionListener holder class.
def notify(self, ec_id)
Notify listeners.
def __call__(self, pprof)
Virtual Callback function.
def removeListener(self, listener)
Remove the listener.
PortActionListener holder class.
def removeListener(self, listener)
Remove the listener.
def __del__(self)
Destructor.
ExecutionContextActionListener class.
def __init__(self)
Constructor.
def __del__(self)
Destructor.
def __del__(self)
Destructor.
def __del__(self)
Destructor.
def __init__(self, listener, autoclean)
ComponentActionListeners class.
def __call__(self, ec_id)
Virtual Callback function.
def addListener(self, listener, autoclean)
Add the listener.
def __init__(self)
Constructor.
def addListener(self, listener, autoclean)
Add the listener.
def notify(self, pprofile)
Notify listeners.
def __del__(self)
Destructor.