flexrep.configurationTargetGetImmediatePush( cfg as element(flexrep.configuration), target-id as (Number|String) ) as Boolean
Get the immediate push flag for a target.
Parameters | |
---|---|
cfg | The replication configuration. |
target-id | The target ID. |
const flexrep = require('/MarkLogic/flexrep'); const domain = xdmp.eval( 'const dom = require("/MarkLogic/cpf/domains");' + 'fn.data(dom.get("Default Master").xpath("//dom:domain-id"));', null, { 'database' : xdmp.database('Triggers') }); const cfg = flexrep.configurationGet(domain, true); const targetId = flexrep.configurationTargetGetId(cfg, 'Replica'); flexrep.configurationTargetGetImmediatePush(cfg, targetId);
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.