# US 2015/0106428 A1 · System and method for collaborative processing of service requests

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0106428 A1
- Document ID: US20150106428A1
- Status: Published application
- Kind: A1
- Application number: 14/054,007
- Filed: 2013-10-15
- Published: 2015-04-16
- Earliest claimed: 2013-10-15
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Filip Eliás; Filip Nguyen
- Web page: https://patentgrep.com/patent/US20150106428A1

## CPC

- H04L 67/1008: based on parameters of servers, e.g. available memory or workload (monitoring of computer activity G06F11/30)
- G06F 9/5061: {Partitioning or combining of resources}
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method of collaborative processing of service requests includes receiving a service request at an application server, beginning execution of a proxy member function of a proxy class, and determining whether a movable member function in a movable class is to be executed at a client. When the movable member function is to be executed at the client, the method further includes creating a partial response including code for the movable class and information for invoking the movable member function and transmitting the partial response to the client fore execution of the movable member function. When the movable member function is not to be executed at the client, the method further includes executing the movable member function in the application server and returning a result of the movable member function as a result of the proxy member function. The proxy member function replaces the movable member function.

## Claims

### Claim 1

A method of processing a service request, the method comprising:
receiving the service request at an application server running on a computer server, the service request being received from a client;
beginning execution of a proxy member function of a proxy class, the proxy member function replacing a corresponding movable member function in a movable class;
determining whether the movable member function is to be executed at the client;
when the movable member function is to be executed at the client:
creating a partial response comprising executable code for the movable class and information for invoking the movable member function; and
transmitting the partial response to the client to allow the client to execute the movable member function;
when the movable member function is not to be executed at the client:
accessing the movable member function in movable class storage of the application server;
executing the movable member function from the movable class storage; and
returning a result of the movable member function as a result of the proxy member function.

### Claim 2 (depends on 1)

The method of claim 1 wherein:
the movable class and the proxy class have a same class name; and
the movable member function and the proxy member function have a same signature.

### Claim 3 (depends on 1)

The method of claim 1 wherein when the movable member function is to be executed at the client, the method further comprises:
receiving a continuing request from the client;
extracting the result of the movable member function from the continuing request; and
returning the result of the movable member function as the result of the proxy member function.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
completing processing of the service request; and
returning a result of the service request to the client.

### Claim 5 (depends on 4)

The method of claim 4 wherein determining whether the movable member function is to be executed at the client comprises:
determining whether the client is movable ready;
determining whether the computer server is overloaded; and
determining that the movable member function is to be executed at the client when the client is movable ready and the computer server is overloaded.

### Claim 6 (depends on 5)

The method of claim 5 wherein determining whether the client is movable ready comprises determining whether the service request includes a movable ready status indicator.

### Claim 7 (depends on 5)

The method of claim 5 wherein determining whether the client is movable ready comprises determining whether the client has previously registered with the application server that the client is movable ready.

### Claim 8 (depends on 5)

The method of claim 5 wherein determining whether the computer server is overloaded comprises monitoring usage of one or more resources of the computer server.

### Claim 9 (depends on 8)

The method of claim 8 wherein determining whether the computer server is overloaded further comprises evaluating one or more rules based on the monitored usage.

### Claim 10 (depends on 1)

The method of claim 1 wherein when the movable member function is to be executed at the client, the method further comprises:
including a final indicator in the continuing request to indicate that the result from the movable member function is a result of the service request; and
completing processing of the service request without further processing at the application server.

### Claim 11 (depends on 1)

The method of claim 1 wherein creating the partial response comprises:
serializing any parameters of the proxy member function; and
including the serialized parameters in the partial response.

### Claim 12 (depends on 1)

The method of claim 1 wherein creating the partial response comprises including a uniform resource locator associated with a by reference parameter of the proxy member function in the partial response.

### Claim 13

A method of processing a service request, the method comprising:
receiving a service for deployment by an application server running on a computer server;
detecting that the service includes a movable class;
extracting the movable class from the service;
moving the movable class to movable class storage of the application server;
creating a proxy class for the movable class, the proxy class having a same class name as the movable class and a same public interface as the movable class;
replacing the movable class with the proxy class in the service;
receiving the service request for the service at the application server, the service request being received from a client;
beginning execution of a proxy member function of the proxy class, the proxy member function replacing a corresponding movable member function in the movable class;
determining whether the movable member function is to be executed at the client;
when the movable member function is to be executed at the client:
creating a partial response comprising executable code for the movable class and information for invoking the movable member function; and
transmitting the partial response to the client to allow the client to execute the movable member function;
when the movable member function is not to be executed at the client:
accessing the movable member function in a movable class storage of the application server;
executing the movable member function from the movable class storage; and
returning a result of the movable member function as a result of the proxy member function.

### Claim 14 (depends on 13)

The method claim 13, further comprising modifying an interface description for the service that is made available by the application server.

### Claim 15 (depends on 13)

The method claim 13 wherein detecting that the service includes the movable class comprises detecting a movable class identifying tag that is associated with the movable class.

### Claim 16 (depends on 13)

The method claim 13 wherein detecting that the service includes the movable class comprises examining metadata information included in the service that identifies the movable class as movable.

### Claim 17 (depends on 13)

The method claim 13 wherein moving the movable class to the movable class storage comprises updating one or more data structures for identifying and locating the movable class in the movable class storage based on a service name and a class name.

### Claim 18

A non-transitory machine-readable medium comprising a first plurality of machine-readable instructions which when executed by one or more processors associated with an application server are adapted to cause the one or more processors to perform a method comprising:
receiving a service request for a service at the application server, the service request being received from a client;
beginning execution of a proxy member function of a proxy class, the proxy member function replacing a corresponding movable member function in a movable class;
determining whether the movable member function is to be executed at the client;
when the movable member function is to be executed at the client:
creating a partial response comprising executable code for the movable class and information for invoking the movable member function; and
transmitting the partial response to the client to allow the client to execute the movable member function;
when the movable member function is not to be executed at the client:
accessing the movable member function in movable class storage of the application server;
executing the movable member function from the movable class storage; and
returning a result of the movable member function as a result of the proxy member function.

### Claim 19 (depends on 18)

The non-transitory machine-readable medium of claim 18, further comprising a second plurality of machine-readable instructions which when executed by the one or more processors are adapted to cause the one or more processors to perform a method comprising:
when the movable member function is to be executed at the client:
receiving a continuing request from the client;
extracting the result of the movable member function from the continuing request; and
returning the result of the movable member function as the result of the proxy member function.

### Claim 20 (depends on 18)

The non-transitory machine-readable medium of claim 18, further comprising a second plurality of machine-readable instructions which when executed by the one or more processors are adapted to cause the one or more processors to perform a method comprising:
receiving the service for deployment by the application server;
detecting that the service includes the movable class;
extracting the movable class from the service;
moving the movable class to the movable class storage;
creating the proxy class for the movable class, the proxy class having a same class name as the movable class and a same public interface as the movable class; and
replacing the movable class with the proxy class in the service.
