Action
Actions 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 FairCom replication environment is a distributed system with centralized control. 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.
Action table types
Symbolic | Code | Description |
---|---|---|
| 0 | File add |
| 1 | File remove |
| 2 | File change |
| 3 | Replication Agent heartbeat target |
Symbolic | Code | Description |
---|---|---|
| 100 | FairCom replication start |
| 101 | FairCom replication stop |
| 102 | FairCom dynamic dump files |
| 103 | Cancel replication plan deployment |
| 104 | Start replication monitoring |
| 105 | Stop replication monitoring |
| 106 | Start replication exception log |
| 107 | Stop replication exception log |
| 108 | Start replication function timing collection |
| 109 | Stop replication function timing collection |
| 110 | Reset replication function timing collection |
| 111 | Get replication function times |
| 112 | Pause replication |
| 113 | Resume replication |
| 114 | Resync files |
| 115 | Replication agent heartbeat |
Symbolic | Code | Description |
---|---|---|
| 200 | Filesystem add |
| 201 | Filesystem remove |
| 202 | Filesystem change |
Symbolic | Code | Description |
---|---|---|
| 300 | Filesystem scan |
| 301 | Temporary filesystem load |
| 302 | Check DBEngine changes |
| 303 | Filesystem scan folder |
| 304 | Scan for the Replication Agent |
| 305 | Import the Replication Agent |
Symbolic | Code | Description |
---|---|---|
| 400 | Deploy replication plan |
| 401 | Start replication plan |
| 402 | Stop replication plan |
| 403 | Register consumer for replication plan |
| 404 | Register consumer in source OS for non-ctree replication |
| 405 | Unregister consumer for replication plan |
| 406 | Replication agent heartbeat basic |
| 407 | Start replication monitoring |
| 408 | Stop replication monitoring |
| 409 | Start replication exception log |
| 410 | Stop replication exception log |
| 411 | Start replication function timing collection |
| 412 | Stop replication function timing collection |
| 413 | Reset replication function timing collection |
| 414 | Get replication function times |
| 415 | Pause replication |
| 416 | Resume replication |
| 417 | Set trace |
| 500 | Unknown action |
Type | Code |
---|---|
| -1 |
| 0 |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
Symbolic | Code | Description |
---|---|---|
| -2 | Default consumer |
| -1 | Undefined consumer |
| 0 | General Filesystem action consumer |
| 1 | Filesystem sync action consumer |
| 2 | General replication plan consumer |
| 3 | FairCom replication action consumer |
Class
FCREPLAction
The Replication Manager has a distributed management based on action objects pushed, consumed, and checked to/from a central queue (ACTION table in the Replication Manager).
Note
Do not manually create or change any of these objects because they are managed internally. You can look at the values of these objects but do not change them.
Getters
Action type |
|
Entity type related to the action: DBEngine, ReplPlan, and so forth |
|
Consumer type to process this action |
|
Inherited getters
Action identification |
|
Parent action identification - action process which generated the current one NoteThis is used for providing an action hierarchy. |
|
Owner action identification - an action that groups a list of sub-actions. NoteThe progress of the owner action depends on the whole group's progress. |
|
List of action parameters |
|
Action description |
|
Action type |
|
Entity type |
|
Entity identification related to the action (DBEngine ID, ReplPlan ID, and so forth) |
|
Action type string |
|
Time to wait before action can start being processed | int GetWaitSecs(); |
File volume ID |
|
File path |
|
File name |
|
Current action progress |
|
JSON action information |
|
Action error code |
|
Action error message |
|
Agent identification that is processing or processed the action NoteThis is linked to |
|
replication plan identification when the action is specific for a replication plan. NoteThis is linked to |
|
Consumer type |
|
Action content length |
|
Action content |
|
The factor of the action progress to impact the owner action — for example, this action can represent 20% of the owner action progress |
|
Inherited setters
Action ID |
|
Time processed |
|
Error code |
|
Error message |
|
Action type |
|
Progress |
|
Entity type |
|
Entity PK |
|
Owner action ID |
|
Agent ID |
|
Content string |
|
Factor |
|
Action type |
|
The current status will show a given action identification.
Prototype
FCREPL_API int fcReplCheckAction(pFCREPLConn replConn, int actionID, bool checkGroup, ppFCREPLAction action);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Action identification |
| Flag indicating if the child actions should also be checked |
| Action entity object with the status updated |
Returns
Error code
Cancel a given action execution.
Prototype
FCREPL_API int fcReplCancelAction(pFCREPLConn replConn, int actionID, bool checkGroup);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Action identification |
| Flag indicating if the child actions should also be cancelled |
Returns
Error code
Archive the Action events that happened before a given number of days.
Prototype
FCREPL_API int fcArchiveAction(pFCREPLConn replConn, int daysToArchive);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Number of days to keep active |
Returns
Error code