Loading TOC...

MarkLogic Server 11.0 Product Documentation
flexrep.configurationTargetGetImmediatePush

flexrep.configurationTargetGetImmediatePush(
   cfg as element(flexrep.configuration),
   target-id as (Number|String)
) as Boolean

Summary

Get the immediate push flag for a target.

Parameters
cfg The replication configuration.
target-id The target ID.

Example

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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.