Execution of a method at a cluster of nodes
AssigneeRed Hat, Inc.
InventorsLenka Vaskova, Martin Vecera
Life of this patent
Estimating the term…
Abstract
Systems and methods are disclosed for executing a clustered method at a cluster of nodes. An example method includes identifying an annotated class included in an application that is deployed on the cluster of nodes. An annotation of the class indicates that a clustered method associated with the annotated class is executed at each node in the cluster. The method also includes creating an instance of the annotated class and coordinating execution of the clustered method with one or more other nodes in the cluster. The method further includes executing, based on the coordinating, the clustered method using the respective node's instance of the annotated class.
Claims20
A method of executing a clustered method at a cluster of nodes, comprising:
- at each node in a cluster of nodes:
- identifying an annotated class included in an application that is deployed on the cluster of nodes, an annotation of the class indicating that a clustered method associated with the annotated class is executed at each node in the cluster;
- creating an instance of the annotated class;
- coordinating execution of the clustered method with one or more other nodes in the cluster;
- and
- executing, based on the coordinating, the clustered method using the respective node's instance of the annotated class.
A system for executing a clustered method at a cluster of nodes, comprising:
- a cluster of nodes including a first node and a second node, wherein an application is deployed on the cluster of nodes;
- wherein the first node identifies an annotated class included in the application, creates a first instance of the annotated class, coordinates execution of the clustered method with the second node, and executes, based on the coordinating, the clustered method using the first instance of the annotated class, wherein an annotation of the class indicates that a clustered method associated with the annotated class is executed at each node in the cluster;
- and
- wherein the second node identifies the annotated class included in the application, creates a second instance of the annotated class, and executes, based on the coordinating, the clustered method using the second instance of the annotated class.
A machine-readable medium comprising a plurality of machine-readable instructions that when executed by one or more processors is adapted to cause the one or more processors to perform a method comprising:
- at each node in a cluster of nodes:
- identifying an annotated class included in an application that is deployed on the cluster of nodes, an annotation of the class indicating that a clustered method associated with the annotated class is executed at each node in the cluster;
- creating an instance of the annotated class;
- coordinating execution of the clustered method with one or more other nodes in the cluster;
- and
- executing, based on the coordinating, the clustered method using the respective node's instance of the annotated class.
Dependencies are inferred from the claim text.