Previous Table of Contents Next


23.3.11 Use Cases


   23.3.11.1 Infrastructure-Controlled Membership Style


Application

create_

object()

Reference

Replication Manager

Generic Factory


Property Manager

create_

object()

Invoked by

Replication

Manager on

Factory Objects

Fault

Notifier

G1
Object Group Gateway
G1 G2 S
G2
Gateway
Host Host
H2 H3
Object Replica Object Replica


S1

S2

Factory Fault Monitor Factory Fault Monitor
ORB ORB

   Figure 23-5 The Creation of an Object Group with the Infrastructure-Controlled MembershipStyle.

   23.3.11.2 Application-Controlled Membership Style

   The Replication Manager obtains the object reference for the factory, the_location, and the_criteria from the Factories property. The Replication Manager takes the_criteria passed to it by create_member(), appends the property with the name org.omg.ft.ObjectLocation and the_location value passed to it by create_member(), and appends the_criteria from the Factories property for the particular location. It then invokes the create_object() operation of the GenericFactory interface of the factory provided by the application to create a member at that location, passing in the type_id and the_criteria.

   The factory returns the object reference and the factory_creation_id for the new member, and records this identification information. The Replication Manager records the factory_creation_id, which allows it subsequently to invoke the delete_object() operation of the GenericFactory interface of the local factory to delete the member.

   7. For the COLD_PASSIVE or WARM_PASSIVE Replication Managers, the application determines which of the members is to be the primary and invokes the set_primary_member() operation of the ObjectGroupManager interface. The Replication Manager puts the TAG_FT_PRIMARY component in the appropriate profile of the object group reference and returns the object group reference to the application as the return value of set_primary_member().


   Application

   Application requeststhe creation of a memberat location Host H3

   create_ member()

   Replication Manager Generic Factory

   Object Group

Property

Manager


Fault

Notifier

Object

Reference

Group Manager S1 S2 S
create_ object() Invoked by Host H2 Host H3
Replication
Manager on
Factory Object Object Replica Object Replica
S1 S2
Fault Monitor Factory
ORB

   Figure 23-6 The Creation of a Member of an Object Group with the Application-Controlled Membership Style.

   23.3.11.3 Unreplicated Object Creation and Deletion

   Creation

   Deletion