Update of Replication Notification Gateway Configuration

Updates the properties of the replication push gateway configuration.

Syntax

void updateReplicationPushNotificationGatewayConfiguration(String serverComponentID, 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 properties of the replication push gateway configuration:
    supServerConf.refresh();
    ServerComponentVO scvo = supServerConf
    		.getReplicationPushNotificationGatewayConfiguration();
    ServerComponentVO scvo_new = new ServerComponentVO(scvo.getID(), scvo
    		.getType());
    Map<String, String> properties = scvo.getProperties();
    properties.put("confirm_action", "true");
    scvo_new.setProperties(properties);
    supServerConf.updateReplicationPushNotificationGatewayConfiguration(scvo_new.getID(), scvo_new);
    supServerConf.enableReplicationPushNotificationGatewayConfiguration(scvo_new.getID(), true);
    supServerConf.commit();