Connect/disconnect pool
Connection management for the C++ Replication API
This class provides connection management (logon, logoff, and so forth.).
This class provides connection management (logon, logoff, and so forth.).
Class
FCREPLConn
Replication Manager connection. It can keep both connections to the local DBEngine and replication server, keeping both data providers.
Getters
Return current configuration object |
|
Class
FCREPLConfig
This class sets the Replication Manager (referred to as Memphis) connection information. It also includes a number of advanced options that could be configured. Usually, it is loaded from the ctsrvr.cfg SUBSYSTEM REPLICATION AGENT
session.
Option | Default | Notes |
---|---|---|
|
| Indicates if the Replication Manager agent will be standalone or embedded in a DBEngine. |
|
| Null means no log. |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Supported multiple masks delimited by |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Enable the tracing for the Replication Manager agent. |
|
| Defines how the DBEngine should be connected by the Replication Manager. |
|
| This is a flag indicating if the agent accept external connection or not. |
|
| If embedded in a SQL server, use the JVM from SQL. |
Replication server specific keywords
Keyword | Default |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Getters
Local agent type (DBEngine, ReplStudio, ReplAgent, WebServer, and so forth) |
|
Retrieve a configuration value by its name |
|
Retrieve a configuration value by its code |
|
Retrieve the username and password from an authentication |
|
Inherited getters
Check if the provided configuration object matches the current one |
|
Retrieve an advanced configuration by its KEY |
|
Retrieve an advanced configuration by its param |
|
Return if connection will check for local FairCom files: |
|
Return if file system scan is set to be executed in multi-threaded mode: |
|
Return if file system scan has a full mask advanced filter by the callback: |
|
Printf the configuration options |
|
Retrieve the username and password |
|
Local DBEngine identification NoteIt is linked to |
|
Local agent identification NoteIt is linked to |
|
Return if current agent is embedded into a DBEngine |
|
Local library handle (can be |
|
Local logger |
|
Agent type |
|
Local agent name |
|
Local server name |
|
Local user name |
|
Local user password |
|
Return if |
|
Memphis Volume identification NoteIt is linked to |
|
Memphis directory |
|
Local directory path |
|
Retrieve a path buffer populated with the local directory |
|
Master conn pool |
|
Return if local server is shutting down |
|
Return if |
|
Return if |
|
Return if its local agent is executing a FileSystem scan |
|
Memphis OpSystem identification NoteIt is linked to |
|
Local OpSystem identification NoteIt is linked to FCREPLOpSystem class. |
|
Return if local DBEngine is Memphis |
|
Return is automatic scan and track FairCom DBEngine changes: |
|
Memphis database user login |
|
Memphis database password |
|
Plan manager hash |
|
Engine manager hash |
|
Failover hash |
|
Repl agent data hash |
|
Repl monitor data hash |
|
Repl dump data hash |
|
Platform |
|
Retrieve the Platform name |
|
Retrieve accept connection |
|
Retrieve read-only |
|
Retrieve the JVM lib path |
|
Clean up global |
|
Retrieve |
|
Setters
Local agent type (DBEngine, ReplStudio, ReplAgent, WebServer, and so forth) |
|
Local agent name |
|
Local server name |
|
Local user name |
|
Local user password |
|
Memphis directory |
|
Local directory path |
|
Memphis database user login |
|
Memphis database password |
|
Inherited setters
Memphis OpSystem identification NoteIt is linked to |
|
Local OpSystem identification NoteIt is linked to |
|
Local DBEngine identification NoteIt is linked to |
|
Local agent identification NoteIt is linked to |
|
Set if current agent is embedded to a DBEngine |
|
Local library handle (can be |
|
Set agent type |
|
Set agent name |
|
Set local server name |
|
Set local user name |
|
Set local user password |
|
Return if |
|
Memphis volume identification NoteIt is linked to FCREPLVolume class. |
|
Set Memphis DB directory |
|
Set local path |
|
Set master connection pool |
|
Trace status |
|
Web trace status |
|
FilSystem scan |
|
Set master login |
|
Set master password |
|
Set DB engine manager hash |
|
Set accept connection flag |
|
Set read only |
|
Set JVM library path |
|
Set is connected path |
|
Create a connection object for the Replication database based on a configuration object. It will keep the config object, logger object, and database connection.
Prototype
FCREPL_API int fcReplConnect(pFCREPLConfig config, ppFCREPLConn replConn, char **errorMsg);
Parameters
Parameter | Description |
---|---|
| Configuration object |
| New replication connection object |
| Error message buffer |
Return
Error code
Create a connection object for the replication database based on Replication Manager login information. This function will create a basic configuration object internally. It will keep the config object, logger object, and database connection.
Prototype
FCREPL_API int fcReplConnect(const char *masterHost, const char *masterServerName, const char *masterSQLPort, const char *masterDatabase, const char *masterLogin, const char *masterPass, ppFCREPLConn replConn, char **errorMsg);
Parameters
Parameter | Description |
---|---|
| Master server host |
| Master server name |
| Master SQL port |
| Master database name |
| Master database user login |
| Master database user password |
| New replication connection handle |
| Error message buffer |
Return
Error code
Disconnect from the replication database.
Prototype
FCREPL_API int fcReplDisconnect(pFCREPLConn replConn);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
Return
Error code