Next: Filtered method invocation
Up: Beta message handling
Previous: Enable/Disable beta messages
These beta messages allow plugging and unplugging of filters from
their clients. ORB
provides a public interface-plug
and unplug-for this purpose. This interface in turn makes
use of private interface of Object
, which stores a list of
plugged filters. The filter object framework includes
filterconf utility that facilitates sending these messages
to client objects. We now present the algorithm for sending and
handling these messages.
Scenario: Sending Plug/Unplug message
- Convert a filter object reference to string.
- Create
StaticAny
object representing stringified filter object
reference.
- Create
StaticRequest
object representing
appropriate beta message.
- Add the argument and invoke the
request.
Scenario: Handling Plug/Unplug message
- Create server side request and read the stringified
reference using it.
- Convert the stringified reference to
object reference and narrow it to the filter reference.
- If
this is plug message, add the filter reference to filters list if
it didn't exist already.
- If this is unplug message, simply
remove the filter reference from filters list if it exists.
R K Joshi
2003-05-30