 |
Use Cases for WSRP 2.0 Leasing
Introduction
Leasing is a concept of scheduled suspension and destruction of Registration and Portlet handles. Consumers can specify a lifetime parameter during the registration/portlet management operations that denotes the period for which the registration/portlet is active. If accessed after the period, a ResourceSuspended? Exception would be thrown from the Producer. The Admin user can either make the portlet unavailable for lease (thereby rendering it permanently available) or can let the consumer specify the leasing period.
Use Cases
Use Case 1: Admin User disallows Leasing
1. While creating consumer registrations for a producer, the admin user does not let consumers define the leasing period.
2. Consumer registers itself to the Producer supplying a lifetime paramter.
3. Producer returns a registrationHandle to the producer in which it indicates an infiinite lifetime parameter in the RegistrationHandle?.
Use Case 2: Admin User allows Leasing (LT1)- Consumer specifies Leasing period (LT2 < LT1)
1. While creating consumer registrations for a producer, the admin user allows leasing and specifies a lifetime paramter - LT1
2. Consumer registers itself to the Producer supplying a lifetime paramter LT2 that is less than LT1.
3. Producer returns a registrationHandle to the producer in which it indicates LT2 as Lifetime in the RegistrationHandle?.
4. When Consumer requests the portlet after the period specified by LT2, a ResourceSuspended? Fault is thrown from the Producer.
5. After a period LT2, the admin user can choose to expunge the suspended portlets - an operation that clears up the expired portlets from the database.
Use Case 3: Admin User allows Leasing (LT1)- Consumer specifies Leasing period (LT2 >LT1)
1. While creating consumer registrations for a producer, the admin user allows leasing and specifies a lifetime paramter - LT1
2. Consumer registers itself to the Producer supplying a lifetime paramter LT2 that is greater than LT1.
3. Producer returns a registrationHandle to the producer in which it indicates LT1 as Lifetime in the RegistrationHandle?.
4. When Consumer requests the portlet after the period specified by LT1, a ResourceSuspended? Fault is thrown from the Producer.
5. After a period LT1, the admin user can choose to expunge the suspended portlets - an operation that clears up the expired portlets from the database.
Note : Usecases 2 and 3 are not yet implemented.
-- Main.nithya_s - 10 Jan 2008
|