Next: Plug/Unplug beta messages
Up: Beta message handling
Previous: Upfilter/Downfilter beta messages
These beta messages control status of individual filter methods.
Filter
, base class of every filter object, maintains filter
method names and their status. The filter method status can be
changed by sending enable or disable beta messages.
Each beta message takes filter method name as argument. The filter
object framework includes filterconf utility that
facilitates sending these messages to filter
objects. We now present the algorithm for sending and handling these messages.
Scenario: Sending Enable/Disable message
- Create
StaticAny
object representing filter method
name.
- Create
StaticRequest
object representing
appropriate beta message.
- Add the argument and invoke the
request.
Scenario: Handling Enable/Disable message
- Create server side request and read the filter method name
using it.
- If this is enable message, enable corresponding
filter method.
- Search Up/Down filter methods corresponding
to every client method to check if the filter method is part of
either Upfilter or Downfilter methods. If yes, change the status
of other methods to disabled. This ensures that at most one
Up/Down method is enabled for any client method.
- If this is
disable message, simply disable corresponding filter method.
Next: Plug/Unplug beta messages
Up: Beta message handling
Previous: Upfilter/Downfilter beta messages
R K Joshi
2003-05-30