abstract base class for user connection type
More...
|
private | doEnvOptions () |
| helper method for post-processing options for environment variable substitution; can be called in subclasses' constructor methods with a list of options to have environment variable substitution performed on them
|
|
abstract private object | getImpl (bool $connect=True, *hash $rtopts) |
| this method must return the connection object corresponding to the object's configuration More...
|
|
abstract string | getType () |
| returns the string type name for the connection object
|
|
abstract base class for user connection type
this class can be specialized in user modules to provide for user-defined connection types
- See also
-
- Since
- Qorus 3.0.0
creates the AbstractConnection object
- Parameters
-
name | the name of the connection |
desc | connection description |
url | connection URL (potentially with password info) |
monitor | monitoring flag |
opts | connection options |
urlh | broken down URL hash (as returned by Qore::parse_url()) |
safe_url | "safe" URL (password information removed); if not set this will be set automatically by calling getSafeUrl() |
object OMQ::AbstractConnection::get |
( |
bool |
$connect = True , |
|
|
*hash |
$rtopts |
|
) |
| |
|
inline |
returns the underlying connection object
calls getImpl() to actually acquire the connection object
abstract private object OMQ::AbstractConnection::getImpl |
( |
bool |
$connect = True , |
|
|
*hash |
$rtopts |
|
) |
| |
|
privatepure virtual |
this method must return the connection object corresponding to the object's configuration
- Parameters
-
connect | if True then the connection should be returned connected (and if possible a round-trip "ping" of the server should be made) |
rtopts | if the object acquisition requires any runtime options, then these are passed here |
- Returns
- the connection object
Implemented in OMQ::JsonRpcConnection, OMQ::XmlRpcConnection, OMQ::YamlRpcConnection, OMQ::UserWebSocketConnection, OMQ::UserWebSocketConnection, OMQ::RestConnection, OMQ::SoapConnection, OMQ::SoapConnection, OMQ::TelnetConnection, OMQ::TelnetConnection, OMQ::SftpConnection, OMQ::SftpConnection, OMQ::Pop3Connection, OMQ::Pop3Connection, OMQ::SmtpConnection, OMQ::SmtpConnection, OMQ::FilesystemConnection, OMQ::HttpConnection, and OMQ::FtpConnection.
hash OMQ::AbstractConnection::getInfo |
( |
bool |
$with_password = False | ) |
|
|
inline |
returns a hash of information about the connection
- Parameters
-
with_password | determines if the password is returned or not |
- Returns
- a hash of information about the connection
static private string OMQ::AbstractConnection::getSafeUrl |
( |
hash |
$urlh | ) |
|
|
inlinestaticprivate |
creates a "safe" URL string with password information removed
- Parameters
-
- Returns
- a "safe" URL string with password information removed
OMQ::AbstractConnection::parseTextOptions |
( |
| ) |
|
|
inline |
this method is called when parsing connection file definitions from text files when loading into the database
reimplement this method in subclasses to parse the option hash as set from a text file if needed (for special option formats, etc)
The documentation for this class was generated from the following file: