Client Prioritization Presented by Ramaswamy KrishnanChittur Contents 1
Client Prioritization Presented by: Ramaswamy Krishnan-Chittur
Contents 1. 2. 3. 4. 5. 6. 7. Introduction Client prioritization: module layout Client prioritization: class layout Config files: My. Client. exe. config Config files: My. Server. exe. config The priority file residing at the server Reference
1] Introduction n In the following slides, let us see the architecture for a client prioritization experiment. n Goal: The server processes the clients based on their priorities; The server interceptor makes sure that the messages from high priority clients are sent to the high priority queue, and those from low priority clients go to the low priority queue. n We develop two custom Formatter sinks, one at the client-side and the other at the server-side n The priority of the clients are set in an XML file residing at the server.
2] Client prioritization: module layout
3] Client prioritization: class layout
4] Config files: My. Client. exe. config <configuration> <system. runtime. remoting> <application> <channels> <channel ref = "http" > <client. Providers> <formatter type="Client. Interceptor. My. Formatter. Client. Sink. Provider, Client. Interceptor"/> </client. Providers> </channels> </application> </system. runtime. remoting> </configuration>
5] Config files: My. Server. exe. config <configuration> <system. runtime. remoting> <application name="Client_Prioritization"> <service> <wellknown mode = "Singleton" type="Remote. Queue. Message. Receiver, Remote. Queue" object. Uri = "Message. Receiver" /> </service> <channels> <channel ref="http" port="220"> <server. Providers> <formatter type="Server. Interceptor. My. Formatter. Server. Sink. Provider, Server. Interceptor"/> </server. Providers> </channels> </application> </system. runtime. remoting> </configuration>
6] The priority file residing at the Client 127. 0. 0. 1 has a “ 1” server priority - <Clients> <Client>127. 0. 0. 1: 1</Client> <Client>127. 2. 3. 4: 0</Client> </Clients> Client 127. 2. 3. 4 has a “ 0” priority 1 – high priority 0 – low priority Any client NOT listed in the file has a low priority
7] Reference 1. 2. 3. 4. 5. 6. 7. Remoting with C# and. NET - David Conger http: //www. msdn. microsoft. com/msdnmag/issues/ 03/11/Remoting. Channel. Sinks/print. asp MSDN documentation Advanced. NET Remoting - Ingo Rammer Microsoft. NET Remoting - Scott Mc. Lean, James Naftel, Kim Williams Essential. NET, volume 1 - Don Box, Chris Sells Programming Microsoft. NET – Jeff Prosise
- Slides: 9