The RegistryPluginFacade is implemented by IceGrid and can be used by plugins and filter implementations to retrieve information from IceGrid about the well-known objects or adapters.
More...
#include <IceGrid/IceGrid.h>
The RegistryPluginFacade is implemented by IceGrid and can be used by plugins and filter implementations to retrieve information from IceGrid about the well-known objects or adapters.
It's also used to register/unregister replica group and type filters.
◆ ~RegistryPluginFacade()
virtual IceGrid::RegistryPluginFacade::~RegistryPluginFacade |
( |
| ) |
|
|
virtual |
◆ addReplicaGroupFilter()
virtual void IceGrid::RegistryPluginFacade::addReplicaGroupFilter |
( |
const ::std::string & |
id, |
|
|
const ::std::shared_ptr< ReplicaGroupFilter > & |
filter |
|
) |
| |
|
pure virtualnoexcept |
Add a replica group filter.
- Parameters
-
id | The identifier of the filter. This identifier must match the value of the "filter" attribute specified in the replica group descriptor. To filter dynamically registered replica groups, you should use the empty filter id. |
filter | The filter implementation. |
◆ addTypeFilter()
virtual void IceGrid::RegistryPluginFacade::addTypeFilter |
( |
const ::std::string & |
type, |
|
|
const ::std::shared_ptr< TypeFilter > & |
filter |
|
) |
| |
|
pure virtualnoexcept |
Add a type filter.
- Parameters
-
type | The type to register this filter with. |
filter | The filter implementation. |
◆ getAdapterApplication()
virtual ::std::string IceGrid::RegistryPluginFacade::getAdapterApplication |
( |
const ::std::string & |
adapterId | ) |
const |
|
pure virtual |
Get the name of the application to which the given adapter belongs.
- Parameters
-
- Returns
- The application name or the empty string if the given identifier is not associated to a replica group or object adapter defined with an application descriptor.
- Exceptions
-
◆ getAdapterInfo()
Get the adapter information for the replica group or adapter with the given id.
- Parameters
-
- Returns
- A sequence of adapter information structures. If the given id refers to an adapter, this sequence will contain only one element. If the given id refers to a replica group, the sequence will contain the adapter information of each member of the replica group.
- Exceptions
-
◆ getAdapterNode()
virtual ::std::string IceGrid::RegistryPluginFacade::getAdapterNode |
( |
const ::std::string & |
adapterId | ) |
const |
|
pure virtual |
Get the name of the node to which the given adapter belongs.
- Parameters
-
- Returns
- The node name or the empty string if the given identifier is not associated to an object adapter defined with an application descriptor.
- Exceptions
-
◆ getAdapterServer()
virtual ::std::string IceGrid::RegistryPluginFacade::getAdapterServer |
( |
const ::std::string & |
adapterId | ) |
const |
|
pure virtual |
Get the ID of the server to which the given adapter belongs.
- Parameters
-
- Returns
- The server ID or the empty string if the given identifier is not associated to an object adapter defined with an application descriptor.
- Exceptions
-
◆ getApplicationInfo()
virtual ::IceGrid::ApplicationInfo IceGrid::RegistryPluginFacade::getApplicationInfo |
( |
const ::std::string & |
name | ) |
const |
|
pure virtual |
Get an application descriptor.
- Parameters
-
name | The application name. |
- Returns
- The application descriptor.
- Exceptions
-
◆ getNodeInfo()
virtual ::IceGrid::NodeInfo IceGrid::RegistryPluginFacade::getNodeInfo |
( |
const ::std::string & |
name | ) |
const |
|
pure virtual |
Get the node information for the node with the given name.
- Parameters
-
- Returns
- The node information.
- Exceptions
-
◆ getNodeLoad()
virtual ::IceGrid::LoadInfo IceGrid::RegistryPluginFacade::getNodeLoad |
( |
const ::std::string & |
name | ) |
const |
|
pure virtual |
Get the load averages of the node.
- Parameters
-
- Returns
- The node load information.
- Exceptions
-
◆ getObjectInfo()
Get the object info for the object with the given identity.
- Parameters
-
id | The identity of the object. |
- Returns
- The object info.
- Exceptions
-
◆ getPropertyForAdapter()
virtual ::std::string IceGrid::RegistryPluginFacade::getPropertyForAdapter |
( |
const ::std::string & |
adapterId, |
|
|
const ::std::string & |
name |
|
) |
| const |
|
pure virtual |
Get the property value for the given property and adapter.
The property is looked up in the server or service descriptor where the adapter is defined.
- Parameters
-
adapterId | The adapter ID |
name | The name of the property. |
- Returns
- The property value.
- Exceptions
-
◆ getServerInfo()
virtual ::IceGrid::ServerInfo IceGrid::RegistryPluginFacade::getServerInfo |
( |
const ::std::string & |
id | ) |
const |
|
pure virtual |
Get the server information for the server with the given id.
- Parameters
-
- Returns
- The server information.
- Exceptions
-
◆ removeReplicaGroupFilter()
virtual bool IceGrid::RegistryPluginFacade::removeReplicaGroupFilter |
( |
const ::std::string & |
id, |
|
|
const ::std::shared_ptr< ReplicaGroupFilter > & |
filter |
|
) |
| |
|
pure virtualnoexcept |
Remove a replica group filter.
- Parameters
-
id | The identifier of the filter. |
filter | The filter implementation. |
- Returns
- True of the filter was removed, false otherwise.
◆ removeTypeFilter()
virtual bool IceGrid::RegistryPluginFacade::removeTypeFilter |
( |
const ::std::string & |
type, |
|
|
const ::std::shared_ptr< TypeFilter > & |
filter |
|
) |
| |
|
pure virtualnoexcept |
Remove a type filter.
- Parameters
-
type | The type to register this filter with. |
filter | The filter implementation. |
- Returns
- True of the filter was removed, false otherwise.
The documentation for this class was generated from the following file: