class IfMgrXrlReplicationManager
|
Class that builds and maintains replicator state for
multiple remote targets.
More... |
|
|
Public Types
- typedef IfMgrCommandSinkBase::Cmd Cmd
Public Methods
IfMgrXrlReplicationManager (XrlRouter& rtr)
| IfMgrXrlReplicationManager |
~IfMgrXrlReplicationManager ()
| ~IfMgrXrlReplicationManager |
bool add_mirror (const string& xrl_target_name)
| add_mirror |
Add a remote mirror. The name of the mirror is added to list
of known targets and immediately sent a copy of the
configuration tree.
Parameters:
xrl_target_name | target to be added.
|
Returns: true on success, false if target already exists.
bool remove_mirror (const string& xrl_target_name)
| remove_mirror |
Remove remote mirror.
Parameters:
xrl_target_name | target to be removed.
|
void push (const Cmd& c)
| push |
Apply command to local configuration tree and forward Xrls to
targets to replicate state remotely if application to local tree
succeeds.
Reimplemented from IfMgrCommandSinkBase.
void crank_replicators_queue ()
| crank_replicators_queue |
Method invoked when it is time to schedule the next Xrl dispatch.
void crank_replicators_queue_cb ()
| crank_replicators_queue_cb |
Method invoked when the previous Xrl dispatch has completed.
Method invoked when a command should be added to the manager's queue.
[const]
Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:48 2008, using kdoc 2.0a54+XORP.