public synchronized void clearDynamicProperties() throws ReplicatorException {
  logger.info("Clearing dynamic properties");
  if (dynamicProperties != null)   dynamicProperties.clear();
  if (dynamicPropertiesFile.exists()) {
    if (!dynamicPropertiesFile.delete())     logger.error("Unable to delete dynamic properties file: " + dynamicPropertiesFile.getAbsolutePath());
  }
  if (dynamicRoleFile != null) {
    if (dynamicRoleFile.exists()) {
      if (!dynamicRoleFile.delete())       logger.error("Unable to delete dynamic role file: " + dynamicRoleFile.getAbsolutePath());
    }
  }
}

public synchronized void clearDynamicProperties ( ) throws ReplicatorException { logger . info ( "Clearing dynamic properties" ) ; if ( dynamicProperties != null ) dynamicProperties . clear ( ) ; if ( dynamicPropertiesFile . exists ( ) ) { if ( ! dynamicPropertiesFile . delete ( ) ) logger . error ( "Unable to delete dynamic properties file: " + dynamicPropertiesFile . getAbsolutePath ( ) ) ; } if ( dynamicRoleFile != null ) { if ( dynamicRoleFile . exists ( ) ) { if ( ! dynamicRoleFile . delete ( ) ) logger . error ( "Unable to delete dynamic role file: " + dynamicRoleFile . getAbsolutePath ( ) ) ; } } }
clear in - memory dynamic properties and delete on - disk file , if it exists .
