this class is used to parse the connection files in the server and client
More...
|
|
| constructor (*hash< auto > n_defines) |
| | creates the object and sets the log code reference/closure
|
| |
|
| parse (string fname, *bool no_path) |
| | parses the given file
|
| |
|
abstract string | getType () |
| | returns the type of connection being managed
|
| |
|
abstract | log (string conn, string fmt,...) |
| | log method
|
| |
|
|
const | DefaultDescription = "<no description provided>" |
| | default description for connections with no "desc" key
|
| |
|
| hash< auto > | parseIntern (string fname, *bool no_path) |
| | parses a connection configuration file
|
| |
|
|
abstract | parseImpl (string fname, *bool no_path) |
| | parses the given file
|
| |
|
abstract | checkKeyValues (string fname, string n, reference h) |
| | checks the values and types of keys and optionally does transformations
|
| |
|
int | connectionCount () |
| | returns the number of connections defined
|
| |
|
list< auto > | list () |
| | returns available connections as a list
|
| |
| hash< auto > | getInfo (string conn, bool with_password) |
| | returns a hash of connection info for the given connection or throws an exception if the connection does not exist
|
| |
| hash< auto > | getInfo (string conn, *hash< auto > opts) |
| | returns a hash of connection info for the given connection or throws an exception if the connection does not exist
|
| |
|
*hash< auto > | getInfo (bool with_password=False) |
| | returns a hash of connection info keyed by connection name or NOTHING if no connections exist
|
| |
|
*hash< auto > | getInfo (*hash< auto > opts) |
| | returns a hash of connection info keyed by connection name or NOTHING if no connections exist
|
| |
|
|
| logDefault (string msg) |
| | the default logging action is to print out the log message to stderr
|
| |
this class is used to parse the connection files in the server and client
◆ getInfo() [1/2]
| hash< auto > OMQ::AbstractConnectionFileHelper::getInfo |
( |
string |
conn, |
|
|
*hash< auto > |
opts |
|
) |
| |
|
private:internal |
returns a hash of connection info for the given connection or throws an exception if the connection does not exist
- Exceptions
-
| CONNECTION-ERROR | the given remote connection is not defined |
◆ getInfo() [2/2]
| hash< auto > OMQ::AbstractConnectionFileHelper::getInfo |
( |
string |
conn, |
|
|
bool |
with_password |
|
) |
| |
|
private:internal |
returns a hash of connection info for the given connection or throws an exception if the connection does not exist
- Exceptions
-
| CONNECTION-ERROR | the given remote connection is not defined |
◆ parseIntern()
| hash< auto > OMQ::AbstractConnectionFileHelper::parseIntern |
( |
string |
fname, |
|
|
*bool |
no_path |
|
) |
| |
|
private |
parses a connection configuration file
warnings (ex: unknown option key) are logged through the log code reference/closure
- Parameters
-
| fname | the file name to parse |
| no_path | if True, then URI paths are not allowed in the connection URL |
- Exceptions
-
| CONNECTION-ERROR | Missing config file or malformed syntax |
| FILE-OPEN2-ERROR | error opening configuration file |
The documentation for this class was generated from the following file: