|
VisiBroker for Java |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContainerOperations
Represents a ServerManager Container.
Method Summary | |
---|---|
void |
add_container(NamedContainer container)
Adds a container specified into this container. |
void |
add_property(Property prop)
Adds a property into the container. |
Any |
do_operation(Operation op)
Executes an operation specified in "op". |
NamedContainer[] |
get_all_containers()
Returns the sequence of all named containers contained in this container. |
Operation[] |
get_all_operations()
Returns all the operations defined for this container. |
Property[] |
get_all_properties()
Returns all the properties known to the container. |
Property[] |
get_changed_properties()
|
NamedContainer |
get_container(java.lang.String name)
Returns the named container contained in this container specified by the "name". |
Operation |
get_operation(java.lang.String name)
Returns an operation specified by the name. |
Property |
get_property(java.lang.String name)
Returns the property specified by the name . |
Storage |
get_storage()
Returns the current storage that is set on the container. |
java.lang.String[] |
get_value_chain(java.lang.String propertyName)
Returns all the values for a property overridden at different levels. |
java.lang.String[] |
list_all_containers()
Returns the names of all Containers contained inside this container. |
java.lang.String[] |
list_all_operations()
Returns the names of all operations defined for this container. |
java.lang.String[] |
list_all_properties()
Returns the names of all the properties known to the container. |
void |
persist_properties(boolean recurse)
Saves the properties contained in this container into the persistent storage. |
void |
restore_properties(boolean recurse)
Restores the container properties from the storage, overwriting the existing values. |
void |
set_container(java.lang.String name,
Container value)
Sets (replaces) an already existing container. |
void |
set_properties(Property[] propSeq)
Sets the value of existing properties. |
void |
set_property(java.lang.String name,
Any value)
Sets the value of an existing property. |
void |
set_storage(Storage s,
boolean recurse)
Sets the storage on the container. |
VersionInfo |
version()
Returns the version info for this container. |
Method Detail |
---|
Property[] get_changed_properties()
VersionInfo version()
Storage get_storage()
void set_storage(Storage s, boolean recurse)
s
- Storage to be set.recurse
- If true
then the storage also gets set on all the contained containers recursively.void set_container(java.lang.String name, Container value) throws NameInvalid, ValueInvalid, ValueNotSettable
name
- Name of the container to be replaced.value
- The new container.
NameInvalid
- If no conatiner with the specified name exists.
ValueNotSettable
- If the container could not be replace, for example, if the is_replaceable
flag on the original container was false
ValueInvalid
- If the named container value is invalid.void add_container(NamedContainer container) throws NameAlreadyPresent, ValueInvalid
container
- The NamedContainer to be added.
NameAlreadyPresent
- If a container with the specified name already exists.
ValueInvalid
- If the named container value is invalid.NamedContainer get_container(java.lang.String name) throws NameInvalid
name
- Name of the container.
NameInvalid
- If no conatiner with the specified name exists.NamedContainer[] get_all_containers()
NamedContainer
.java.lang.String[] list_all_containers()
Any do_operation(Operation op) throws NameInvalid, ValueInvalid, OperationFailed
op
- The operation to execute.
CORBA::Any
NameInvalid
- If the operation is not defined on the container.
OperationFailed
- If the operation failed to execute, for example, some exception occurred.
ValueInvalid
- If the value for any of the parameter is not of expected type.Operation get_operation(java.lang.String name) throws NameInvalid
name
- Name of the operation.
NameInvalid
- If the operation is not defined on the container.Operation[] get_all_operations()
Operation
containing info about the operations.java.lang.String[] list_all_operations()
void restore_properties(boolean recurse) throws StorageException
recurse
- If true
then call this method on all the containers contained in this
container recursively.
StorageException
- if some error occurs while persisting the properties, like an I/O error.void persist_properties(boolean recurse) throws StorageException
recurse
- If true
then call this method on all the containers contained in this
container recursively.
StorageException
- if some error occurs while persisting the properties, like an I/O error.java.lang.String[] get_value_chain(java.lang.String propertyName) throws NameInvalid
propertyName
- Name of the property.
NameInvalid
- If the property name is invalid, e.g. property does not exist in the container.void set_properties(Property[] propSeq) throws NameInvalid, ValueInvalid, ValueNotSettable
propSeq
- Array containing Property
structures for the properties to be set.
Note:
property[1]
, an exception (say NameInvalid
) got thrown.
The end result is: property[0]
got set, property[1]
and property[2]
don't get set.NameInvalid
- If the property name is invalid, e.g. 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, the property is read-only.void set_property(java.lang.String name, Any value) throws NameInvalid, ValueInvalid, ValueNotSettable
name
- Name of the property.value
- Value of the property stored inside a CORBA::Any
NameInvalid
- If the property name is invalid, e.g. 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, the property is read-only.void add_property(Property prop) throws NameAlreadyPresent, NameInvalid, ValueInvalid
prop
- Property to be added.
NameAlreadyPresent
- If a property by same name already exists.
NameInvalid
- If the property name is Inavlid.
ValueInvalid
- If the property value is not valid.Property get_property(java.lang.String name) throws NameInvalid
name
. If the property is not known to the
container, a NameInvalid exception is thrown.
name
- Name of the property.
Property
structure cotaining the property information.
NameInvalid
Property[] get_all_properties()
Property
structure containing information about each property.java.lang.String[] list_all_properties()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |