Update of Replication Pull Notification Configuration

Updates the configuration of the replication pull notification.

Syntax

void updateReplicationNotifierConfiguration(REPLICATION_NOTIFIER_TYPE replicationNotifierType, ServerComponentVO serverComponent) throws SUPAdminException;

void enableReplicationNotifierConfiguration(REPLICATION_NOTIFIER_TYPE replicationNotiferType, Boolean flag) throws SUPAdminException;

Returns

If successful, returns silently. If unsuccessful, returns SUPAdminException.

Examples

  • Update – updates the configuration of the replication pull notification, including the ID, type, and properties:
    supServerConf.refresh();
    ServerComponentVO scvo = supServerConf.getReplicationNotifierConfiguration(REPLICATION_NOTIFIER_TYPE.PULL);
    ServerComponentVO scvo_new = new ServerComponentVO(scvo.getID(), scvo.getType());
    Map<String, String> properties = scvo.getProperties();
    properties.put("poll_every", "10");
    scvo_new.setProperties(properties);
    supServerConf.updateReplicationNotifierConfiguration(REPLICATION_NOTIFIER_TYPE.PULL, scvo_new);
    supServerConf.enableReplicationNotifierConfiguration(REPLICATION_NOTIFIER_TYPE.PULL, true);
    supServerConf.commit();