/** * Constructor. * * @param client HTTP client used to fetch remove metadata * @param backgroundTaskTimer timer used to schedule background metadata refresh tasks * @param metadataURL the URL to fetch the metadata * @param backupFilePath the file that will keep a backup copy of the metadata, * * @throws MetadataProviderException thrown if the URL is not a valid URL, the metadata can not be retrieved from * the URL */ public FileBackedHTTPMetadataProvider(Timer backgroundTaskTimer, HttpClient client, String metadataURL, String backupFilePath) throws MetadataProviderException { super(backgroundTaskTimer, client, metadataURL); setBackupFile(backupFilePath); }
/** * Constructor. * * @param metadataURL the URL to fetch the metadata * @param requestTimeout the time, in milliseconds, to wait for the metadata server to respond * @param backupFilePath the file that will keep a backup copy of the metadata, * * @throws MetadataProviderException thrown if the URL is not a valid URL, the metadata can not be retrieved from * the URL */ @Deprecated public FileBackedHTTPMetadataProvider(String metadataURL, int requestTimeout, String backupFilePath) throws MetadataProviderException { super(metadataURL, requestTimeout); setBackupFile(backupFilePath); }