blob: d42fa98db99227968fd044f34d1b6d4e01108e24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
/* -*- C++ -*- */
// $Id$
//
// ============================================================================
//
// = LIBRARY
// ORBSVCS Notification
//
// = FILENAME
// Notify_Event_Processor.h
//
// = DESCRIPTION
// The QoS properties of "Order Policy" and "Discard Policy" can be set
// per proxy.To accomodate this we now have an ACE_Task per proxy.
// The TAO_Notify_Event_Processor asks each event listener and source
// for the task object to send commands to.
//
// = AUTHOR
// Pradeep Gore <pradeep@cs.wustl.edu>
//
// ============================================================================
//
#ifndef TAO_NOTIFY_EVENT_PROCESSOR_H
#define TAO_NOTIFY_EVENT_PROCESSOR_H
#include "ace/pre.h"
#include "ace/Module.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Stream.h"
#include "ace/streams.h"
#include "tao/corba.h"
#include "notify_export.h"
class TAO_Notify_Event;
class TAO_Notify_Event_Manager;
class TAO_Notify_EventSource;
class TAO_Notify_Worker_Task;
class TAO_Notify_EMO_Factory;
class TAO_Notify_EventListener;
class TAO_Notify_Export TAO_Notify_Event_Processor
{
// = TITLE
// TAO_Notify_Event_Processor
//
// = DESCRIPTION
// The Event Processor.
//
public:
// = Initialialization and termination code.
TAO_Notify_Event_Processor (TAO_Notify_Event_Manager* event_manager);
virtual ~TAO_Notify_Event_Processor ();
void init (CORBA::Environment& ACE_TRY_ENV);
// Init
void shutdown (CORBA::Environment &ACE_TRY_ENV);
// Shutdown operations.
void evaluate_source_filter (TAO_Notify_Event* event,
TAO_Notify_EventSource* event_source,
CORBA::Environment& ACE_TRY_ENV);
// Event processing entry point.
// = Callbacks for Source/Event Listeners.
void lookup_subscriptions (TAO_Notify_Event* event,
TAO_Notify_EventSource* event_source,
CORBA::Environment &ACE_TRY_ENV);
// This method is called by an Event_Source after it has
// successfully evaluated its filter.
void evaluate_listener_filter (TAO_Notify_Event* event,
TAO_Notify_EventListener* event_listener,
CORBA::Boolean eval_parent,
CORBA::Environment &ACE_TRY_ENV);
// This method is called by the subscription lookup command asking
// that <event> be delivered to <event_listener>.
void dispatch_event (TAO_Notify_Event* event,
TAO_Notify_EventListener* event_listener,
CORBA::Environment &ACE_TRY_ENV);
// This method is called by an Event_Listener after it has
// successfully evaluated its filter.
protected:
// = Data Members
TAO_Notify_Event_Manager* event_manager_;
// The Event Manager
TAO_Notify_Worker_Task* lookup_task_;
TAO_Notify_EMO_Factory* emo_factory_;
// Factory for manager ojects
};
#include "ace/post.h"
#endif /* TAO_NOTIFY_EVENT_PROCESSOR_H */
|