TAO_PortableGroup
2.2.6
|
#include <PG_Object_Group_Storable.h>
Public Member Functions | |
PG_Object_Group_Storable (CORBA::ORB_ptr orb, PortableGroup::FactoryRegistry_ptr factory_registry, TAO::PG_Object_Group_Manipulator &manipulator, CORBA::Object_ptr empty_group, const PortableGroup::TagGroupTaggedComponent &tagged_component, const char *type_id, const PortableGroup::Criteria &the_criteria, const TAO::PG_Property_Set_var &type_properties, TAO::Storable_Factory &storable_factory) | |
PG_Object_Group_Storable (PortableGroup::ObjectGroupId group_id, CORBA::ORB_ptr orb, PortableGroup::FactoryRegistry_ptr factory_registry, TAO::PG_Object_Group_Manipulator &manipulator, TAO::Storable_Factory &storable_factory) | |
~PG_Object_Group_Storable () | |
Destructor. More... | |
void | set_destroyed (bool destroyed) |
virtual void | stale (bool is_stale) |
virtual bool | stale () |
virtual const PortableGroup::Location & | get_primary_location () |
virtual void | add_member (const PortableGroup::Location &the_location, CORBA::Object_ptr member) |
virtual int | set_primary_member (TAO_IOP::TAO_IOR_Property *prop, const PortableGroup::Location &the_location) |
virtual void | remove_member (const PortableGroup::Location &the_location) |
virtual void | create_member (const PortableGroup::Location &the_location, const char *type_id, const PortableGroup::Criteria &the_criteria) |
virtual PortableGroup::Locations * | locations_of_members (void) |
virtual CORBA::Object_ptr | get_member_reference (const PortableGroup::Location &the_location) |
virtual void | initial_populate (void) |
virtual void | minimum_populate (void) |
virtual int | has_member_at (const PortableGroup::Location &location) |
virtual void | distribute (int value) |
virtual void | set_name (const char *group_name) |
virtual const char * | get_name (void) |
virtual PortableGroup::ObjectGroupId | get_object_group_id () const |
![]() | |
PG_Object_Group (CORBA::ORB_ptr orb, PortableGroup::FactoryRegistry_ptr factory_registry, TAO::PG_Object_Group_Manipulator &manipulator, CORBA::Object_ptr empty_group, const PortableGroup::TagGroupTaggedComponent &tagged_component, const char *type_id, const PortableGroup::Criteria &the_criteria, const TAO::PG_Property_Set_var &type_properties) | |
PG_Object_Group (CORBA::ORB_ptr orb, PortableGroup::FactoryRegistry_ptr factory_registry, TAO::PG_Object_Group_Manipulator &manipulator) | |
virtual | ~PG_Object_Group () |
Destructor. More... | |
PortableGroup::ObjectGroup_ptr | reference () const |
return a duplicated reference to this group (IOGR) More... | |
void | get_group_specific_factories (PortableGroup::FactoryInfos &result) const |
PortableGroup::TypeId | get_type_id () const |
PortableGroup::MembershipStyleValue | get_membership_style () const |
PortableGroup::MinimumNumberMembersValue | get_minimum_number_members () const |
PortableGroup::InitialNumberMembersValue | get_initial_number_members () const |
void | set_properties_dynamically (const PortableGroup::Properties &overrides) |
void | get_properties (PortableGroup::Properties_var &result) const |
Protected Member Functions | |
virtual void | state_written (void) |
virtual bool | is_obsolete (time_t stored_time) |
![]() | |
virtual PortableGroup::ObjectGroup_ptr | add_member_to_iogr (CORBA::Object_ptr member) |
void | clear_members_map (void) |
Protected Attributes | |
bool | loaded_from_stream_ |
bool | destroyed_ |
bool | write_occurred_ |
To set when state written out. More... | |
TAO_SYNCH_MUTEX | lock_ |
![]() | |
CORBA::ORB_var | orb_ |
TAO::PG_Object_Group_Manipulator & | manipulator_ |
int | distribute_ |
boolean true if updates should be distributed More... | |
int | empty_ |
boolean true if empty group More... | |
ACE_CString | role_ |
PortableGroup::TypeId_var | type_id_ |
PortableGroup::TagGroupTaggedComponent | tagged_component_ |
PortableGroup::ObjectGroup_var | reference_ |
PortableServer::ObjectId_var | object_id_ |
char * | group_name_ |
MemberMap | members_ |
PortableGroup::Location | primary_location_ |
TAO::PG_Property_Set | properties_ |
PortableGroup::InitialNumberMembersValue | initial_number_members_ |
PortableGroup::MinimumNumberMembersValue | minimum_number_members_ |
PortableGroup::FactoryInfos | group_specific_factories_ |
Private Member Functions | |
PG_Object_Group_Storable () | |
PG_Object_Group_Storable (const PG_Object_Group_Storable &rhs) | |
PG_Object_Group_Storable & | operator= (const PG_Object_Group_Storable &rhs) |
TAO::Storable_Base * | create_stream (const char *mode) |
void | read (TAO::Storable_Base &stream) |
void | write (TAO::Storable_Base &stream) |
Private Attributes | |
bool | group_previously_stored_ |
Indicate if instance of object group has been restored from store. More... | |
PortableGroup::ObjectGroupId | group_id_previously_stored_ |
TAO::Storable_Factory & | storable_factory_ |
time_t | last_changed_ |
Friends | |
class | Object_Group_File_Guard |
Additional Inherited Members | |
![]() | |
typedef TAO_SYNCH_MUTEX | MemberMapMutex |
typedef ACE_Hash_Map_Manager_Ex < PortableGroup::Location, MemberInfo *, TAO_PG_Location_Hash, TAO_PG_Location_Equal_To, MemberMapMutex > | MemberMap |
typedef ACE_Hash_Map_Entry < PortableGroup::Location, MemberInfo * > | MemberMap_Entry |
typedef ACE_Hash_Map_Iterator_Ex < PortableGroup::Location, MemberInfo *, TAO_PG_Location_Hash, TAO_PG_Location_Equal_To, MemberMapMutex > | MemberMap_Iterator |
An object group whose state persists to a stream so that its state can be saved/retrieved between processes that use the group.
TAO::PG_Object_Group_Storable::PG_Object_Group_Storable | ( | CORBA::ORB_ptr | orb, |
PortableGroup::FactoryRegistry_ptr | factory_registry, | ||
TAO::PG_Object_Group_Manipulator & | manipulator, | ||
CORBA::Object_ptr | empty_group, | ||
const PortableGroup::TagGroupTaggedComponent & | tagged_component, | ||
const char * | type_id, | ||
const PortableGroup::Criteria & | the_criteria, | ||
const TAO::PG_Property_Set_var & | type_properties, | ||
TAO::Storable_Factory & | storable_factory | ||
) |
This constructor is suitable for creating an object group from scratch.
TAO::PG_Object_Group_Storable::PG_Object_Group_Storable | ( | PortableGroup::ObjectGroupId | group_id, |
CORBA::ORB_ptr | orb, | ||
PortableGroup::FactoryRegistry_ptr | factory_registry, | ||
TAO::PG_Object_Group_Manipulator & | manipulator, | ||
TAO::Storable_Factory & | storable_factory | ||
) |
This constructor is suitable for creating an object group from persistent store.
TAO::PG_Object_Group_Storable::~PG_Object_Group_Storable | ( | void | ) |
Destructor.
|
private |
|
private |
|
virtual |
Add a new member to the group.
the_location | the location for the new member |
member | the member to be added |
Reimplemented from TAO::PG_Object_Group.
|
virtual |
@TODO DOC
Reimplemented from TAO::PG_Object_Group.
|
private |
|
virtual |
Tell the object group that it should distribute updates to the object group state.
Reimplemented from TAO::PG_Object_Group.
|
virtual |
@TODO DOC
Reimplemented from TAO::PG_Object_Group.
|
virtual |
Reimplemented from TAO::PG_Object_Group.
|
virtual |
@TODO DOC
Reimplemented from TAO::PG_Object_Group.
|
virtual |
get location of primary member
Reimplemented from TAO::PG_Object_Group.
|
virtual |
@TODO DOC
Reimplemented from TAO::PG_Object_Group.
|
virtual |
@TODO DOC
Reimplemented from TAO::PG_Object_Group.
|
protectedvirtual |
A callback invoked by the object group file guard to determine if this context is obsolete with respect to the peristent store.
|
virtual |
@TODO DOC
Reimplemented from TAO::PG_Object_Group.
|
virtual |
@TODO DOC
Reimplemented from TAO::PG_Object_Group.
|
private |
|
private |
|
virtual |
@TODO DOC
Reimplemented from TAO::PG_Object_Group.
void TAO::PG_Object_Group_Storable::set_destroyed | ( | bool | destroyed | ) |
Indicate that this object group is to be permanently destroyed. During destruction the persistent store for this will then be removed. This is to distinguish between deletion from a process shutdown verses deletion from a destroy request.
|
virtual |
Reimplemented from TAO::PG_Object_Group.
|
virtual |
set the replica at the given location to be primary. Note: This should return void and throw FT::PrimaryNotSet but to avoid dependancies between PortableGroup and FaultTolerance it returns a boolean result. A false return means caller should throw FT::PrimaryNot_Set.
Reimplemented from TAO::PG_Object_Group.
|
virtual |
Allow for replication persistence support by derived classes.
|
virtual |
|
protectedvirtual |
Signals that this context was updated.
|
private |
|
friend |
|
protected |
|
private |
|
private |
Indicate if instance of object group has been restored from store.
|
private |
|
protected |
|
protected |
|
private |
|
protected |
To set when state written out.