2 Replies Latest reply: Jan 4, 2006 3:23 PM by 207512 RSS

    Custom Dispatcher

    mauro.pelucchi
      Is there a how to for implementing custom dispatcher?

      Thanks

      Mauro Pelucchi
        • 1. Re: Custom Dispatcher
          432524
          Hi Mauro!
          In the documents provided with the Edge Server there is a developers guide. Different methods are described in there.

          cu
          Andreas
          • 2. Re: Custom Dispatcher
            207512
            I assume you have tried all the internal dispatchers and they didn't met your requirements?
            I'm curious to what those requirements are btw.

            I have a tutorial on writing a driver, I think it's posted in GX.
            For writing a dispatcher, all you have to do is:
            - Subclass from SimpleDispatcher (10.1.3.0)
            - Implement onEvent, which is called whenever the drivers sends you an event for dispatching (outbound)
            - Call sendEvent if you want to send events to the drivers/filters

            Optionally you can implement:
            - Implement doInit if you need to do initialization
            - Implement start() if you need to initialize before the thread starts
            - Implement stop() if you want to be called before your thread is killed