|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Configurable
Methods to be supported by a Transporter or Component, wherever possible, for run-time query and update of configuration parameters.
Method Summary | |
---|---|
boolean |
canUpdateWhileRunning(java.lang.String propertyName)
Returns true if the given parameter can be updated while the transporter is running. |
SuperProperties |
getAsProperties(java.lang.String prefix)
Returns status of parameters as a property list. |
void |
setFromProperties(java.util.Properties properties,
java.lang.String prefix)
Sets parameters from a property list. |
void |
setFromProperties(java.util.Properties properties,
java.lang.String[] prefixList)
Sets parameters from a property list. |
Method Detail |
---|
SuperProperties getAsProperties(java.lang.String prefix) throws IbafException
Equivalent to calling the get method for each of the supported parameters.
An implementation must return a non-null SuperProperties object, but it may have no properties set.
prefix
- If non-null, returned property names are prefixed with prefix.
IbafException
- If problem getting any properties.void setFromProperties(java.util.Properties properties, java.lang.String[] prefixList) throws IbafException
Equivalent to calling the set method for each of the supported parameters.
Only properties matching supported parameters are set.
properties
- The properties list. Can be a SuperProperties object.prefixList
- If non-null, property names are looked up with prefix from prefixList prepended.
The prefixList is used in index order until a match is found.
IbafException
- If problem setting any properties.void setFromProperties(java.util.Properties properties, java.lang.String prefix) throws IbafException
Same as setFromProperties(Properties properties, String[] prefixList)
but with a single prefix.
properties
- The properties list. Can be a SuperProperties object.prefix
- If non-null, property names are looked up with prefix prepended.
IbafException
- If problem setting any properties.boolean canUpdateWhileRunning(java.lang.String propertyName) throws IbafException
An implementation may choose to enforce that a transporter is not running (i.e. closed, or not initialized) before allowing certain parameters to be updated. This will most often be the case where there would be a mismatch between a new parameter value and a currently active connection, where a query about the state of the transporter could give inconsistent results. Other implementations may allow updates while the transporter is running.
The return value applies to the corresponding setXXXX() method as well as to the
setFromProperties(Properties properties, String[] prefixList)
methods.
propertyName
- The name of the parameter for which update is being tested
IbafException
- If the supplied parameter is not supported.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |