Publication
Publications for the C++ Replication API
A publication is a list of files to be replicated. The files are defined using the hierarchy of file system classes defined in File. These files will be the source for replication. A publication may belong to a Subscription.
A publication is a list of files to be replicated. The files are defined using the hierarchy of file system classes defined in File. These files will be the source for replication. A publication may belong to a Subscription.
Class
FCREPLPublication
Represents a group of files to be published. To set a replication, this publication must be subscribed, which forms a FCREPLSubscription, which is assigned to a FCREPLReplPlan (replication plan).
Getters
DBEngine entity object |
|
Database entity object |
|
Inherited getters
Publication identfication |
|
DBEngine identification NoteThis is linked to |
|
DBEngine |
|
Database identification NoteThis is linked to |
|
Database |
|
Publication name |
|
Publication description |
|
Create new |
|
Delete old |
|
Drop old |
|
Setters
DBEngine entity object |
|
Database entity object |
|
Publication name |
|
Publication description |
|
Publication root path NoteThis is used to calculate the path redirection. |
|
Calculated volume name |
|
Calculated root path |
|
Inherited setters
Publication identification |
|
DBEngine identification NoteThis is linked to |
|
DBEngine |
|
Database identification NoteThis is linked to the |
|
Database |
|
Name |
|
Descrption |
|
Create new |
|
Delete old |
|
Drop old |
|
Retrieve all the publication entity objects.
Prototype
FCREPL_API int fcReplGetPublications(pFCREPLConn replConn, int dbEngine, int publicationListSize, int publicationStart, ppFCREPLPublication *publicationList, int *publicationCount, int *totalPublications);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| DBEngine Identification |
| Publication list count to be retrieved |
| Publication list start record |
| Publication entity list |
| Number of publication entities in the list |
| Total number of publication entities |
Return
Error code
Retrieve the publication list by name or partially filter by name.
Prototype
FCREPL_API int fcReplGetPublicationsByName(pFCREPLConn replConn, int dbEngine, const char *name, bool partial, int publicationListSize, int publicationStart, ppFCREPLPublication *publicationList, int *publicationCount, int *totalPublications);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| DBEngine ID |
| Publication name |
| Flag indicating that the search by name should use partial name |
| Publication list count to be retrieved |
| Publication list start record |
| Publication entity list |
| Number of publication entities in the list |
| Total number of publication entities |
Return
Error code
Retrieve the publication entity object by its ID.
Prototype
FCREPL_API int fcReplGetPublication(pFCREPLConn replConn, int publicationID, ppFCREPLPublication publication);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Publication identification |
| Publication entity retrieved |
Return
Error code
Add a publication entity to the database. If there already is a publication with the given ID, update the existing record.
Prototype
FCREPL_API int fcReplPersistPublication(pFCREPLConn replConn, pFCREPLPublication publication);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Publication entity to be persisted |
Return
Error code
Delete the publication by its ID.
Prototype
FCREPL_API int fcReplRemovePublication(pFCREPLConn replConn, int publicationID, bool recursive);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Publication identification |
| Recursive flag |
Return
Error code
Remove a list of files from a publication.
Prototype
FCREPL_API int fcReplRemoveFilesFromPublication(pFCREPLConn replConn, int publicationID, int *fileIDList, int fileCount);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Existing publication identification |
| Existing file identification list |
| Number of files to be removed |
Return
Error code
Add a list of files to a group.
Prototype
FCREPL_API int fcReplAddFilesToPublication(pFCREPLConn replConn, int publicationID, int *fileIDList, int fileCount);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Existing publication identification |
| Existing file identification list |
| Number of files to be added |
Return
Error code
Remove a list of files from a publication.
Prototype
FCREPL_API int fcReplRemoveFilesFromPublication(pFCREPLConn replConn, int publicationID, int *fileIDList, int fileCount);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Existing publication identification |
| Existing file identification list |
| Number of files to be removed |
Return
Error code
Retrieve the next available default name for a publication.
Prototype
FCREPL_API int fcReplGetTempPubName(pFCREPLConn replConn, char *tempPubName);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Temporary publication name |
Return
Error code