Update of Replication Push Notification Configuration

Updates the configuration of the replication push notification.

Syntax

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

void enableReplicationPushNotificationGatewayConfiguration(String serverComponentID, Boolean flag) throws SUPAdminException;

Returns

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

Examples

  • Update – enables and updates the replication push notification configuration:
    ServerComponentVO scvo = supServerConf
    		.getReplicationNotifierConfiguration(REPLICATION_NOTIFIER_TYPE.PUSH);
    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.PUSH, scvo_new);
    supServerConf.enableReplicationNotifierConfiguration(
    		REPLICATION_NOTIFIER_TYPE.PUSH, true);
    supServerConf.commit();