Elektra
0.9.7
|
Represents a session with the Elektra key database. More...
Inherits AutoCloseable.
Public Member Functions | |
void | close () throws KDBException |
Closes the KDB session and frees native resources associated with it. More... | |
void | close (Key errorKey) throws KDBException |
Closes the KDB session and frees native resources associated with it. More... | |
KeySet | get (Key parentKey) throws KDBException |
Fetches at least all keys that are sub-keys or children of sub-keys of the supplied parent key. More... | |
KDB | get (KeySet keySet, Key parentKey) throws KDBException |
Fetches at least all keys that are sub-keys or children of sub-keys of the supplied parent key. More... | |
KDB | set (KeySet keySet, Key errorKey) throws KDBException |
Will update changed keys of the given key set in the backend. More... | |
Static Public Member Functions | |
static KDB | open () throws KDBException |
Opens a new KDB session. More... | |
static KDB | open (Key errorKey) throws KDBException |
Opens a new KDB session using the specified. More... | |
static KDB | open (KeySet contract) throws KDBException |
Opens KDB session using the specified. More... | |
static KDB | open (KeySet contract, Key errorKey) throws KDBException |
Opens KDB session using the specified. More... | |
static KeySet | goptsContract (String[] args, String[] env, Key parentKey, KeySet goptsConfig) |
Creates a contract for use with KDB#open(KeySet, Key) that mounts and configures the. More... | |
static void | goptsContract (KeySet contract, String[] args, String[] env, Key parentKey, KeySet goptsConfig) |
Creates a contract for use with KDB#open(KeySet, Key) that mounts and configures the. More... | |
Protected Member Functions | |
Pointer | getPointer () |
Represents a session with the Elektra key database.
@apiNote Close after usage, or simply use a try-with-resources statement
|
inline |
Closes the KDB session and frees native resources associated with it.
KDBException | if opening the session fails - see specialization of KDBException |
KDBClosedException | if this session has already been closed |
|
inline |
Closes the KDB session and frees native resources associated with it.
errorKey | Key holding error and warning information |
KDBException | if opening the session fails - see specialization of KDBException |
KDBClosedException | if this session has already been closed |
KeyReleasedException | if parentKey
|
IllegalArgumentException | if errorKey
null
|
|
inline |
Fetches at least all keys that are sub-keys or children of sub-keys of the supplied parent key.
parentKey | Root key which name is used to fetch keys below it |
KDBException | if loading keys fails - see specialization of KDBException |
KDBClosedException | if this session has already been closed |
KeyReleasedException | if parentKey
|
IllegalArgumentException |
|
inline |
Fetches at least all keys that are sub-keys or children of sub-keys of the supplied parent key.
keySet | KeySet used to store the fetched keys |
parentKey | Root key which name is used to fetch keys below it |
KDBException | if loading keys fails - see specialization of KDBException |
KDBClosedException | if this session has already been closed |
KeySetReleasedException | if keySet
|
KeyReleasedException | if parentKey
|
IllegalArgumentException | if keySet
parentKey
null
|
|
inlineprotected |
KDBClosedException | if this KDB session has already been closed |
|
inlinestatic |
Creates a contract for use with KDB#open(KeySet, Key) that mounts and configures the.
plugin
contract | the KeySet into which the contract is written |
args | the arguments that will be converted into argc and argv for gopts |
env | the environment variables that gopts will use |
parentKey | the parent key that gopts will use |
goptsConfig | the config KeySet used for mounting gopts |
IllegalArgumentException | if any of the arguments are null
|
KeySetReleasedException | if contract
goptsConfig
|
KeyReleasedException | if parentKey
|
IllegalArgumentException | if any of the specified parameters is null
|
|
inlinestatic |
Creates a contract for use with KDB#open(KeySet, Key) that mounts and configures the.
plugin
args | the arguments that will be converted into argc and argv for gopts |
env | the environment variables that gopts will use |
parentKey | the parent key that gopts will use |
goptsConfig | the config KeySet used for mounting gopts |
IllegalArgumentException | if any of the arguments are null
|
KeySetReleasedException | if goptsConfig
|
KeyReleasedException | if parentKey
|
IllegalArgumentException | if any of the specified parameters is null
|
|
inlinestatic |
Opens a new KDB session.
KDBException | if opening the session fails - see specialization of KDBException |
|
inlinestatic |
Opens a new KDB session using the specified.
to store possible warnings and error information
errorKey | Used to store warnings and error information |
KDBException | if opening the session fails - see specialization of KDBException |
KeyReleasedException | if errorKey
|
IllegalArgumentException | if errorKey
null
|
|
inlinestatic |
Opens KDB session using the specified.
to store possible warnings and error information
contract | Contract that will be ensured by Elektra#kdbOpen(Pointer, Pointer) |
KDBException | if opening the session fails - see specialization of KDBException |
KeySetReleasedException | if contract
|
IllegalArgumentException | if contract
errorKey
null
|
|
inlinestatic |
Opens KDB session using the specified.
to store possible warnings and error information
contract | Contract that will be ensured by Elektra#kdbOpen(Pointer, Pointer) |
errorKey | Used to store warnings and error information |
KDBException | if opening the session fails - see specialization of KDBException |
KeySetReleasedException | if contract
|
KeyReleasedException | if errorKey
|
IllegalArgumentException | if contract
errorKey
null
|
|
inline |
Will update changed keys of the given key set in the backend.
get() has to be called before this function may be executed.
keySet | KeySet which contains keys to be updated in the backend |
errorKey | Used to store warnings and error information |
KDBException | if storing keys fails - see specialization of KDBException |
KDBClosedException | if this session has already been closed |
KeySetReleasedException | if keySet
|
KeyReleasedException | if errorKey
|