summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h')
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h131
1 files changed, 29 insertions, 102 deletions
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h
index 22cfeb1d3e3..47fce3ecdf4 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h
@@ -53,65 +53,47 @@ public:
/// For the PUSH load monitoring style.
virtual void push_loads (const PortableGroup::Location & the_location,
- const CosLoadBalancing::LoadList & loads)
- ACE_THROW_SPEC ((CORBA::SystemException));
+ const CosLoadBalancing::LoadList & loads);
/// Return the raw loads at the given location.
virtual CosLoadBalancing::LoadList * get_loads (
- const PortableGroup::Location & the_location)
- ACE_THROW_SPEC ((CORBA::SystemException,
- CosLoadBalancing::LocationNotFound));
+ const PortableGroup::Location & the_location);
/// Inform member at given location of load alert condition.
- virtual void enable_alert (const PortableGroup::Location & the_location)
- ACE_THROW_SPEC ((CosLoadBalancing::LoadAlertNotFound));
+ virtual void enable_alert (const PortableGroup::Location & the_location);
/// Inform member at given location that load alert condition has
/// passed.
- virtual void disable_alert (const PortableGroup::Location & the_location)
- ACE_THROW_SPEC ((CosLoadBalancing::LoadAlertNotFound));
+ virtual void disable_alert (const PortableGroup::Location & the_location);
/// Register a LoadAlert object for the member at the given
/// location.
virtual void register_load_alert (
const PortableGroup::Location & the_location,
- CosLoadBalancing::LoadAlert_ptr load_alert)
- ACE_THROW_SPEC ((CORBA::SystemException,
- CosLoadBalancing::LoadAlertAlreadyPresent,
- CosLoadBalancing::LoadAlertNotAdded));
+ CosLoadBalancing::LoadAlert_ptr load_alert);
/// Retrieve the LoadAlert object for the member at the given
/// location.
virtual CosLoadBalancing::LoadAlert_ptr get_load_alert (
- const PortableGroup::Location & the_location)
- ACE_THROW_SPEC ((CORBA::SystemException,
- CosLoadBalancing::LoadAlertNotFound));
+ const PortableGroup::Location & the_location);
/// Remove (de-register) the LoadAlert object for the member at the
/// given location.
- virtual void remove_load_alert (const PortableGroup::Location & the_location)
- ACE_THROW_SPEC ((CORBA::SystemException,
- CosLoadBalancing::LoadAlertNotFound));
+ virtual void remove_load_alert (const PortableGroup::Location & the_location);
/// Register a load monitor with the load balancer.
virtual void register_load_monitor (
const PortableGroup::Location & the_location,
- CosLoadBalancing::LoadMonitor_ptr load_monitor)
- ACE_THROW_SPEC ((CORBA::SystemException,
- CosLoadBalancing::MonitorAlreadyPresent));
+ CosLoadBalancing::LoadMonitor_ptr load_monitor);
/// Return a reference to the load monitor at the given location.
virtual CosLoadBalancing::LoadMonitor_ptr get_load_monitor (
- const PortableGroup::Location & the_location)
- ACE_THROW_SPEC ((CORBA::SystemException,
- CosLoadBalancing::LocationNotFound));
+ const PortableGroup::Location & the_location);
/// Remove a load monitor at the given location from the load
/// balancer.
virtual void remove_load_monitor (
- const PortableGroup::Location & the_location)
- ACE_THROW_SPEC ((CORBA::SystemException,
- CosLoadBalancing::LocationNotFound));
+ const PortableGroup::Location & the_location);
//@}
@@ -124,30 +106,20 @@ public:
/// Set the default properties to be used by all object groups.
virtual void set_default_properties (
- const PortableGroup::Properties & props)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::InvalidProperty,
- PortableGroup::UnsupportedProperty));
+ const PortableGroup::Properties & props);
/// Get the default properties used by all object groups.
- virtual PortableGroup::Properties * get_default_properties ()
- ACE_THROW_SPEC ((CORBA::SystemException));
+ virtual PortableGroup::Properties * get_default_properties ();
/// Remove default properties.
virtual void remove_default_properties (
- const PortableGroup::Properties & props)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::InvalidProperty,
- PortableGroup::UnsupportedProperty));
+ const PortableGroup::Properties & props);
/// Set properties associated with a given Replica type. These
/// properties override the default properties.
virtual void set_type_properties (
const char * type_id,
- const PortableGroup::Properties & overrides)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::InvalidProperty,
- PortableGroup::UnsupportedProperty));
+ const PortableGroup::Properties & overrides);
/**
* Return the properties associated with a give Replica type. These
@@ -155,16 +127,12 @@ public:
* addition to the default properties that were not overridden.
*/
virtual PortableGroup::Properties * get_type_properties (
- const char * type_id)
- ACE_THROW_SPEC ((CORBA::SystemException));
+ const char * type_id);
/// Remove the given properties associated with the Replica type ID.
virtual void remove_type_properties (
const char * type_id,
- const PortableGroup::Properties & props)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::InvalidProperty,
- PortableGroup::UnsupportedProperty));
+ const PortableGroup::Properties & props);
/**
* Dynamically set the properties associated with a given object
@@ -174,11 +142,7 @@ public:
*/
virtual void set_properties_dynamically (
PortableGroup::ObjectGroup_ptr object_group,
- const PortableGroup::Properties & overrides)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::ObjectGroupNotFound,
- PortableGroup::InvalidProperty,
- PortableGroup::UnsupportedProperty));
+ const PortableGroup::Properties & overrides);
/**
* Return the properties currently in use by the given object
@@ -188,9 +152,7 @@ public:
* that weren't overridden.
*/
virtual PortableGroup::Properties * get_properties (
- PortableGroup::ObjectGroup_ptr object_group)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::ObjectGroupNotFound));
+ PortableGroup::ObjectGroup_ptr object_group);
//@}
@@ -208,24 +170,13 @@ public:
PortableGroup::ObjectGroup_ptr object_group,
const PortableGroup::Location & the_location,
const char * type_id,
- const PortableGroup::Criteria & the_criteria)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::ObjectGroupNotFound,
- PortableGroup::MemberAlreadyPresent,
- PortableGroup::NoFactory,
- PortableGroup::ObjectNotCreated,
- PortableGroup::InvalidCriteria,
- PortableGroup::CannotMeetCriteria));
+ const PortableGroup::Criteria & the_criteria);
/// Add an existing object to the ObjectGroup.
virtual PortableGroup::ObjectGroup_ptr add_member (
PortableGroup::ObjectGroup_ptr object_group,
const PortableGroup::Location & the_location,
- CORBA::Object_ptr member)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::ObjectGroupNotFound,
- PortableGroup::MemberAlreadyPresent,
- PortableGroup::ObjectNotAdded));
+ CORBA::Object_ptr member);
/**
* Remove an object at a specific location from the given
@@ -236,49 +187,33 @@ public:
*/
virtual PortableGroup::ObjectGroup_ptr remove_member (
PortableGroup::ObjectGroup_ptr object_group,
- const PortableGroup::Location & the_location)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::ObjectGroupNotFound,
- PortableGroup::MemberNotFound));
+ const PortableGroup::Location & the_location);
/// Return the locations of the members in the given ObjectGroup.
virtual PortableGroup::Locations * locations_of_members (
- PortableGroup::ObjectGroup_ptr object_group)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::ObjectGroupNotFound));
+ PortableGroup::ObjectGroup_ptr object_group);
/// Return the locations of the members in the given ObjectGroup.
virtual PortableGroup::ObjectGroups * groups_at_location (
- const PortableGroup::Location & the_location)
- ACE_THROW_SPEC ((CORBA::SystemException));
+ const PortableGroup::Location & the_location);
/// Return the ObjectGroupId for the given ObjectGroup.
virtual PortableGroup::ObjectGroupId get_object_group_id (
- PortableGroup::ObjectGroup_ptr object_group)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::ObjectGroupNotFound));
+ PortableGroup::ObjectGroup_ptr object_group);
/// @note Does this method make sense for load balanced objects?
virtual PortableGroup::ObjectGroup_ptr get_object_group_ref (
- PortableGroup::ObjectGroup_ptr object_group)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::ObjectGroupNotFound));
+ PortableGroup::ObjectGroup_ptr object_group);
/// TAO specific method
virtual PortableGroup::ObjectGroup_ptr get_object_group_ref_from_id (
- PortableGroup::ObjectGroupId group_id)
- ACE_THROW_SPEC((
- CORBA::SystemException,
- PortableGroup::ObjectGroupNotFound));
+ PortableGroup::ObjectGroupId group_id);
/// Return the reference corresponding to the Replica of a given
/// ObjectGroup at the given location.
virtual CORBA::Object_ptr get_member_ref (
PortableGroup::ObjectGroup_ptr object_group,
- const PortableGroup::Location & loc)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::ObjectGroupNotFound,
- PortableGroup::MemberNotFound));
+ const PortableGroup::Location & loc);
//@}
@@ -299,13 +234,7 @@ public:
const char * type_id,
const PortableGroup::Criteria & the_criteria,
PortableGroup::GenericFactory::FactoryCreationId_out
- factory_creation_id)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::NoFactory,
- PortableGroup::ObjectNotCreated,
- PortableGroup::InvalidCriteria,
- PortableGroup::InvalidProperty,
- PortableGroup::CannotMeetCriteria));
+ factory_creation_id);
/**
* Delete the object corresponding to the provided
@@ -315,9 +244,7 @@ public:
*/
virtual void delete_object (
const PortableGroup::GenericFactory::FactoryCreationId &
- factory_creation_id)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableGroup::ObjectNotFound));
+ factory_creation_id);
//@}