This section describes the VisiBroker for C++ Server Manager interfaces and classes. For additional information about the Server Manager, see “Using the VisiBroker Server Manager” in the VisiBroker for C++ Developer's Guide.Include the file servermgr_c.hh when using this class.Returns the names of all the properties in the container as a StringSequence.Returns the PropertySequence containing the names, values, and read-write status of all the properties in the container.Returns the value of the property name passed as an input parameter.
It throws NameInvalid exception if the parameter passed is not a valid property name.
The property value as Any type.
• NameInvalid if the property name is invalid, for example if the property does not exist in the container.
• ValueInvalid if the property value is not valid.
• ValueNotSettable if the property value cannot be set, for example if the property is read-only.Causes the container to actually store its properties to the associated “Storage Interface Methods for C++”. If no storage is associated with the container, a StorageException will be raised. When it is invoked with the parameter recurse=true, the properties of the children containers are also stored into the storage. It is up to the container to decide if it has to store all the properties or only the changed properties.
Indicates whether the sub-containers' persist_properties should be called recursively.It throws StorageException exception if an error occurs while persisting the properties.
Indicates whether the sub-containers' restore_properties should be called recursively.It throws StorageException exception if an error occurs while restoring the properties.Returns the parameter information of the operation specified by name which can be used to invoke the operation.
It can throw NameInvalid exception if the parameter specifies an operation which is not supported.
• NameInvalid if the operation is not defined on the container.
• OperationFailed if the operation failed to execute.
• ValueInvalid if the value for any of the parameter is not of the expected type.Returns the named child container identified by the name parameter.
If there is no child container with this name, a NameInvalid exception is raised.virtual void add_container(const NamedContainer& container);
It throws NameAlreadyPresent exception if a container with the specified name already exists. It throws ValueInvalid exception if the named container value is invalid.
• NameInvalid if no container with the specified name exists.
• ValueNotSettable if the i the container could not be replaced, for example if the original container is created to be irreplaceable.
• ValueInvalid if the named container value is invalid.Sets the storage of this container. If recurse=true, it also sets the storage for all its children as well.
The Server Manager provides an abstract notion of storage that can be implemented in any fashion. Individual containers may choose to store their properties in databases, flat files, or some other means. The storage implementation included with the VisiBroker ORB uses a flat-file-based approach.Include the file servermgr_c.hh when using this class.It can throw StorageException if the storage could not be opened for any reasons.Closes the storage. This method also updates the storage with any properties that have been changed since the last Container::persist_properties call. In database implementations, this method closes the database connection.It can throw StorageException if the closing fails for any reasons.Reads all the properties from the storage. It can throw StorageException if the properties could not be read from the Storage.virtual Container::Property* read_property(const char * propertyName);Returns the property value for propertyName read from the storage.
It throws NameInvalid. exception if the property name is not known to the container. It throws StorageException if an error occurs while reading the property from the storage.
It can throw StorageException if an error occurs while writing the properties to storage.
It can throw StorageException if an error occurs while writing the property to storage.