public interface ConfigMgr
GlobalIds.CONFIG_REALM
.
Each process using Fortress client is free to share an existing node with other processes or create its own unique config
instance using the methods within this class.This class is thread safe.
Modifier and Type | Method and Description |
---|---|
Properties |
add(String name,
Properties inProps)
Create a new cfg node with given name and properties.
|
void |
delete(String name)
Completely removes named cfg node from the directory.
|
void |
delete(String name,
Properties inProps)
Delete properties from existing cfg node.
|
Properties |
read(String name)
Read an existing cfg node with given name and return to caller.
|
Properties |
update(String name,
Properties inProps)
Update existing cfg node with additional properties, or, replace existing properties.
|
Properties add(String name, Properties inProps) throws SecurityException
SecurityException
with error
GlobalErrIds.FT_CONFIG_ALREADY_EXISTS
will be thrown.name
- attribute is required and maps to 'cn' attribute in 'device' object class.inProps
- contains Properties
with list of name/value pairs to add to existing config node.Properties
containing the collection of name/value pairs just added.SecurityException
- in the event entry already present or other system error.Properties update(String name, Properties inProps) throws SecurityException
SecurityException
with error
GlobalErrIds.FT_CONFIG_NOT_FOUND
will be thrown.name
- attribute is required and maps to 'cn' attribute in 'device' object class.inProps
- contains Properties
with list of name/value pairs to add or update from existing config node.Properties
containing the collection of name/value pairs to be added to existing node.SecurityException
- in the event entry not present or other system error.void delete(String name) throws SecurityException
SecurityException
with error
GlobalErrIds.FT_CONFIG_NOT_FOUND
will be thrown.name
- is required and maps to 'cn' attribute on 'device' object class of node targeted for operation.SecurityException
- in the event of system error.void delete(String name, Properties inProps) throws SecurityException
SecurityException
with error
GlobalErrIds.FT_CONFIG_NOT_FOUND
will be thrown.name
- attribute is required and maps to 'cn' attribute in 'device' object class.inProps
- contains the properties to remove.SecurityException
- in the event entry not present or other system error.Properties read(String name) throws SecurityException
SecurityException
with error
GlobalErrIds.FT_CONFIG_NOT_FOUND
will be thrown.name
- attribute is required and maps to 'cn' attribute in 'device' object class.Properties
containing the collection of name/value pairs just added. Maps to 'ftProps' attribute
in 'ftProperties' object class.SecurityException
- in the event entry doesn't exist or other system error.Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621