Site
Sites for the C++ Replication API
An action can be pushed from the central point of control (<FC_PROD_REPLICATIOM_MGR>
) to any node in the Site and executed by that node.
The site class represents all the Hardware (computer systems such as servers, tablets, and phones) that are eligible for replication. A system must have a Replication Agent installed to be eligible for replication. The site includes hardware that is connected by local networks, remote networks, the cloud, and so forth.
Class
FCREPLSite
Represents the top level of the Replication Manager hierarchy. Could represent the local network, cloud, remote data center, and so forth.
Getters
Getters are not applicable.
Inherited getters
Site identification |
|
Site name |
|
Site type |
|
Site description |
|
Setters
Site name |
|
Site type |
|
Site description |
|
Inherited setters
Site identification |
|
Site name |
|
Site type |
|
Site description |
|
Retrieve all the site entity objects
Prototype
FCREPL_API int fcReplGetSites(pFCREPLConn replConn, ppFCREPLSite *siteList, int *siteCount);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Site entity list |
| Number of site entities in the list |
Return
Error code
Retrieve the site entity object by its name.
Prototype
FCREPL_API int fcReplGetSite(pFCREPLConn replConn, const char *name, ppFCREPLSite site);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Site name to be retrieved |
| Site entity retrieved |
Return
Error code
Add a site entity to the database. If there already is a site with the given name, update the existing record.
Prototype
FCREPL_API int fcReplPersistSite(pFCREPLConn replConn, pFCREPLSite site);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Site entity to be persisted |
Return
Error code
Delete the site by its identification.
Protocol
FCREPL_API int fcReplRemoveSite(pFCREPLConn replConn, int siteID, bool recursive);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Site identification to be removed |
| Recursive flag |
Return
Error code