Creating multiple mbeans from a factory mbean
AssigneeInternational Business Machines Corporation
InventorJames M. McArdle
Life of this patent
Estimating the term…
Abstract
Provided are techniques for creating a unique class of Mbean in which a “parent” Mbean generates and manages multiple “child” Mbeans. When a user requests the functionality of a particular Mbean, a specific type of Mbean, or parent Mbean, is called. The parent Mbean is a factory method that, rather than executing the request, generates a child Mbean to execute the request. The child Mbean is assigned a name that distinguishes the child from other children of the same parent and the process that called the parent is provided with the name. In this manner, the calling process may use the assigned name to access the specific child Mbean for future requests and the child Mbean is employed to store client state information.
Claims20
A method, comprising:
- allocating non-transitory memory for a parent class object based upon a parent class object description;
- generating, by the parent class object, a first child class object based upon a child class object description;
- assigning the first child class object a first identifier;
- generating, by the parent class object, a second child class object based upon a child class object description;
- assigning the second child class object a second identifier, unique from the first identifier;
- accessing the first child class object using the first identifier;
- and
- accessing the second child class object using the second identifier.
An apparatus, comprising:
- a processor;
- a computer-readable storage medium, coupled to the processor;
- and
- logic, stored on the computer readable-storage medium and executed on the processor, for:
- allocating non-transitory memory for a parent class object based upon a parent class object description;
- generating, by the parent class object, a first child class object based upon a child class object description;
- assigning the first child class object a first identifier;
- generating, by the parent class object, a second child class object based upon a child class object description;
- assigning the second child class object a second identifier, unique from the first identifier;
- accessing the first child class object using the first identifier;
- and
- accessing the second child class object using the second identifier.
A computer programming product, comprising:
- a computer-readable storage medium;
- and
- logic, stored on the computer readable-storage medium for execution on a processor, for:
- allocating non-transitory memory for a parent class object based upon a parent class object description;
- generating, by the parent class object, a first child class object based upon a child class object description;
- assigning the first child class object a first identifier;
- generating, by the parent class object, a second child class object based upon a child class object description;
- assigning the second child class object a second identifier, unique from the first identifier;
- accessing the first child class object using the first identifier;
- and
- accessing the second child class object using the second identifier.
Dependencies are inferred from the claim text.