Patent ID: 7856626

Claim:
A computer implemented method of refactoring methods of an application, the method comprising: identifying a rating for a method within a first application to form a rated method, wherein the method comprises a callable section of code within a class or an object used to perform a specified task, and wherein the rating describes a priority of an element expressed in a form of a critical rating; placing the rated method in a grouping based on the rating identified for the method; designating a first data processing system in a plurality of data processing systems to process the grouping, wherein the grouping contains other methods having a selected rating within a range of ratings, wherein other methods are selected from a second application; deploying the grouping to the first data processing system; responsive to placing the rated method in the grouping based on the rating identified for the method, creating a new class from the grouping, wherein calculating a rating for the new class further comprises: calculating the rating for the new class based on an average of rating values of a plurality of methods within the grouping grouped within the new class; designating a second data processing system in the plurality of data processing systems to process the new class based on the rating for the new class; updating, at the first data processing system, metadata for the method in the new class containing an identity of the second data processing system and call routing information for routing a future call to the method to the second data processing system; and deploying the new class to the second data processing system of the plurality of data processing systems, wherein deploying each new class to a data processing system based on the rating for the class allows refactoring of methods in an application to dynamically increase performance.