Elektra
0.9.5
|
Represents session with the Key database. More...
Inherits AutoCloseable.
Public Member Functions | |
KDB (final Pointer p) | |
Helper constructor for duplication by pointer. More... | |
void | close () throws KDBException |
Clean-up function initiating closing of the KDB session. More... | |
void | get (final KeySet ks, final Key parentKey) throws KDBException |
Will fetch at least all keys that are sub-keys or children of sub-keys of the supplied parent key. More... | |
void | set (final KeySet ks, final Key parentKey) throws KDBException |
Will update changed keys of the given keyset in the backend. More... | |
void | close (final Key parentKey) throws KDBException |
Clean-up method that closes the KDB session. More... | |
Static Public Member Functions | |
static KDB | open (final Key errorKey) throws KDBException |
Basic constructor of KDB class Opens KDB session with the given errorKey to write possible warning and error information to. More... | |
static KDB | open (final KeySet contract, final Key errorKey) throws KDBException |
Basic constructor of KDB class Opens KDB session with the given errorKey to write possible warning and error information to. More... | |
static void | goptsContract (final KeySet contract, final String[] args, final String[] env, final Key parentKey, final KeySet goptsConfig) |
Creates a contract for use with KDB#open that mounts and configures the gopts plugin. More... | |
Protected Member Functions | |
Pointer | get () |
Native pointer being used by JNA. More... | |
Represents session with the Key database.
Close after usage, or simply use a try-with-resources statement.
|
inline |
Helper constructor for duplication by pointer.
p | Pointer to another KDB object |
|
inline |
Clean-up function initiating closing of the KDB session.
KDBException | TODO #3754 detailed exception description (including appropriate subtypes) |
|
inline |
|
inline |
Will fetch at least all keys that are sub-keys or children of sub-keys of the supplied parent key.
ks | KeySet where the fetched keys will be stored in |
parentKey | Root key which name will be used to fetch keys below it |
KDBException | In case of an error when loading keys |
|
inlineprotected |
Native pointer being used by JNA.
|
inlinestatic |
Creates a contract for use with KDB#open that mounts and configures the gopts 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 |
|
inlinestatic |
Basic constructor of KDB class
Opens KDB session with the given errorKey to write possible warning and error information to.
errorKey | used to store warning and error information |
KDBException | TODO #3754 detailed exception description (including appropriate subtypes) |
|
inlinestatic |
Basic constructor of KDB class
Opens KDB session with the given errorKey to write possible warning and error information to.
contract | the contract that will be ensured by kdbOpen() |
errorKey | used to store warning and error information |
KDBException | TODO #3754 detailed exception description (including appropriate subtypes) |
|
inline |
Will update changed keys of the given keyset in the backend.
get() has to be called before this function may be executed.
ks | KeySet which contains keys to be updated in the backend |
parentKey | Is used to add warnings and set an error, if necessary |
KDBException | In case of an error when storing keys |