Efficient web services application status self-control system on image-forming device
First Claim
1. A computer-implemented method for managing a web services application, the method comprising:
- a particular web services application determining that first data is cacheable data due to the first data being at least one of;
(a) a manufacturer of a device on which the particular web services application executes, (b) a model of said device, (c) a list of capabilities of said device, (d) a physical location of said device, (e) a default print ticket, or (f) a default scan ticket;
in response to determining that the first data is cacheable data, the particular web services application (1) requesting, from a memory pool manager resident on said device, a first data structure of a kind whose memory the memory pool manager does not free, (2) populating said first data structure with said first data, and (3) inserting the populated first data structure into a cache that is accessible by said particular web services application but no other web services application executing said device;
said particular web services application determining that second data is not cacheable due to the second data not being at least one of;
(a) the manufacturer of a device on which the particular web services application executes, (b) the model of said device, (c) the list of capabilities of said device, (d) the physical location of said device, (e) the default print ticket, or (f) the default scan ticket;
in response to determining that the second data is not cacheable data, the particular web services application requesting, from said memory pool manager, a second data structure that was returned to a memory pool after being used by another web services application executing on said device, and populating said second data structure with said second data without ever inserting said second data structure into said cache;
receiving, at the particular web services application, a request for particular data;
in response to receiving the request for the particular data, the particular web services application determining whether the particular data is contained in the cache of the particular web services application; and
in response to the particular web services application determining that the particular data is contained in the cache, the particular web services application responding to the request with the particular data that is contained in the cache;
wherein the method is performed by one or more computing devices.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques and systems for controlling resources used by a device'"'"'s web services applications are disclosed. In one technique, web services applications release their allocated resources and enter a “sleep mode” after being inactive for a specified period of time. In one technique, a device maintains a shared pool of memory resources. The pool contains data structures that web services applications are likely to re-use. Before allocating a new instance of a needed data structure from free memory, a web services application first determines whether the shared pool already contains a currently unused but allocated instance of a data structure of the needed type, and, if the shared pool does, then the web service application uses that instance, overwriting existing data in the instance as needed. Web services applications return such data structures to the shared pool when those web services applications are finished using those data structures.
-
Citations
18 Claims
-
1. A computer-implemented method for managing a web services application, the method comprising:
-
a particular web services application determining that first data is cacheable data due to the first data being at least one of;
(a) a manufacturer of a device on which the particular web services application executes, (b) a model of said device, (c) a list of capabilities of said device, (d) a physical location of said device, (e) a default print ticket, or (f) a default scan ticket;in response to determining that the first data is cacheable data, the particular web services application (1) requesting, from a memory pool manager resident on said device, a first data structure of a kind whose memory the memory pool manager does not free, (2) populating said first data structure with said first data, and (3) inserting the populated first data structure into a cache that is accessible by said particular web services application but no other web services application executing said device; said particular web services application determining that second data is not cacheable due to the second data not being at least one of;
(a) the manufacturer of a device on which the particular web services application executes, (b) the model of said device, (c) the list of capabilities of said device, (d) the physical location of said device, (e) the default print ticket, or (f) the default scan ticket;in response to determining that the second data is not cacheable data, the particular web services application requesting, from said memory pool manager, a second data structure that was returned to a memory pool after being used by another web services application executing on said device, and populating said second data structure with said second data without ever inserting said second data structure into said cache; receiving, at the particular web services application, a request for particular data; in response to receiving the request for the particular data, the particular web services application determining whether the particular data is contained in the cache of the particular web services application; and in response to the particular web services application determining that the particular data is contained in the cache, the particular web services application responding to the request with the particular data that is contained in the cache; wherein the method is performed by one or more computing devices. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory computer-readable medium carrying one or more sequences of instructions, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
a particular web services application determining that first data is cacheable data due to the first data being inserting, into a cache of a particular web services application, metadata indicating at least one of;
(a) a manufacturer of a device on which the particular web services application executes, (b) a model of said device, (c) a list of capabilities of said device, (d) a physical location of said device, (e) a default print ticket, or (f) a default scan ticket;in response to determining that the first data is cacheable data, the particular web services application (1) requesting, from a memory pool manager resident on said device, a first data structure of a kind whose memory the memory pool manager does not free, (2) populating said first data structure with said first data, and (3) inserting the populated first data structure into a cache that is accessible by said particular web services application but no other web services application executing said device; said particular web services application determining that second data is not cacheable due to the second data not being at least one of;
(a) the manufacturer of a device on which the particular web services application executes, (b) the model of said device, (c) the list of capabilities of said device, (d) the physical location of said device, (e) the default print ticket, or (f) the default scan ticket;in response to determining that the second data is not cacheable data, the particular web services application requesting, from said memory pool manager, a second data structure that was returned to a memory pool after being used by another web services application executing on said device, and populating said second data structure with said second data without ever inserting said second data structure into said cache; receiving, at the particular web services application, a request for particular data;
in response to receiving the request for particular data, the particular web services application determining whether the particular data is contained in the cache of the particular web services application; andin response to the particular web services application determining that the particular data is contained in the cache, the particular web services application responding to the request with the particular data that is contained in the cache. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
Specification