import "acsdaemon.idl";
List of all members.
Detailed Description
Allows a client of a services daemon to first define the setup of ACS services and later to start all these services. The various add_ methods can be invoked in arbitrary order because the correct parallel/serial startup of the selected services is the responsibility of ServicesDaemon#start_services. For the different options to start ACS services, see the description of ServicesDaemon.
Note that clients must call close when done with an object of this type.
Member Function Documentation
Starts an ACSLog service (used by Python components and any corba-aware scripts to contribute log records to central logging).
- Parameters:
-
- Returns:
- void
Starts an alarm service.
- Parameters:
-
- Returns:
- void
void acsdaemon::ServiceDefinitionBuilder::add_interface_repository |
( |
in string |
host, |
|
|
in boolean |
load, |
|
|
in boolean |
wait_load | |
|
) |
| | raises (ACSErrTypeCommon::BadParameterEx) |
Starts an interface repository.
- Parameters:
-
| host | Hostname |
| load | If true, the IFR is not only started, but also the loading with all IDL files is triggered. Otherwise the IFR stays empty and should be loaded by an explicit execution of "acsstartupLoadIFR". This parameter has the opposite meaning of the flag "-noloadifr" in the acsStart script. |
| wait_load | If true and load==true, then ServicesDaemon#start_services will wait for the IFR loading to finish. This is the opposite of the flag "-nowaitifr" in the acsStart script. |
- Returns:
- void
Starts a logging service.
- Parameters:
-
| host | Hostname |
| name | name of the log service. If name is null, then "Log" will be used. |
- Returns:
- void
Starts a manager.
- Parameters:
-
| host | Hostname |
| domain | The manager's domain. Should be empty or null if manager federation is not enabled. |
| recovery | if true then use recovery information from previous run. |
- Returns:
- void
Starts a naming service.
- Parameters:
-
- Returns:
- void
Starts a notification service.
- Parameters:
-
| name | Notification service name, either one of the systemNotificationServiceXyz string constants or the name of an optional notification service. |
| host | Hostname |
- Returns:
- void
Allows adding existing definitions, which should be obtained from a previous call to get_services_definition. These definitions will be merged with those from the other add_ method calls. The ACS instance number of the given definition will be ignored, i.e., acs_instance_number remains unchanged.
Note that this method can be used to convert a preconfigured services description to a different ACS instance: just create a new ServiceDefinitionBuilder instance with the desired ACS instance, and feed the existing service description.
- Todo:
- Should we specify that illegal duplicate services will be stripped off automatically? If not, then this method would be useless for merging real configurations with one naming service each, but still could be useful to add a setup snippet about optional notification services etc. Perhaps the typical usage will be for system integrators to dynamically construct a services description from a few disjoint building blocks, in order to reuse commonalities among operational and testing environments while having some services run differently.
Starts a CDB service. About the TMCDB, see ServicesDaemon::start_xml_cdb
- Parameters:
-
| host | Hostname |
| recovery | if true then use recovery information from previous run. |
| xml_cdb_dir | the directory which contains the CDB directory, see env var ACS_CDB. |
- Returns:
- void
void acsdaemon::ServiceDefinitionBuilder::close |
( |
|
) |
|
boolean acsdaemon::ServiceDefinitionBuilder::is_valid |
( |
out string |
error_description |
) |
|
Validates the services definition that has been built up. This method can be used for error display by interactive clients, or to log errors when using preconfigured service definitions. Note that get_services_definition() will not enforce a valid service description!
- Parameters:
-
| error_description | Empty if the current definition is valid. Otherwise a description about the problems, e.g. "Missing services: CDB, manager. Illegal multiple definition of: naming" |
- Returns:
- true if the services definition is valid.
Member Data Documentation
The ACS instance number as specified in the factory method.
The documentation for this interface was generated from the following file: