next up previous
Next: Plug/Unplug beta messages Up: Beta message handling Previous: Upfilter/Downfilter beta messages

Enable/Disable 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
  1. Create StaticAny object representing filter method name.
  2. Create StaticRequest object representing appropriate beta message.
  3. Add the argument and invoke the request.
Scenario: Handling Enable/Disable message
  1. Create server side request and read the filter method name using it.
  2. If this is enable message, enable corresponding filter method.
  3. 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.
  4. If this is disable message, simply disable corresponding filter method.


next up previous
Next: Plug/Unplug beta messages Up: Beta message handling Previous: Upfilter/Downfilter beta messages
R K Joshi 2003-05-30