From 9ef2f4a55fe21465bdfa33c83e8551696e3a2628 Mon Sep 17 00:00:00 2001 From: monusingh-1 Date: Thu, 7 Sep 2023 14:50:49 +0530 Subject: [PATCH] Implement abstract methods Signed-off-by: monusingh-1 --- .../repository/RemoteClusterRepository.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/kotlin/org/opensearch/replication/repository/RemoteClusterRepository.kt b/src/main/kotlin/org/opensearch/replication/repository/RemoteClusterRepository.kt index 929d6585..eb1d4e47 100644 --- a/src/main/kotlin/org/opensearch/replication/repository/RemoteClusterRepository.kt +++ b/src/main/kotlin/org/opensearch/replication/repository/RemoteClusterRepository.kt @@ -107,6 +107,14 @@ class RemoteClusterRepository(private val repositoryMetadata: RepositoryMetadata return restoreRateLimitingTimeInNanos.count() } + override fun getRemoteUploadThrottleTimeInNanos(): Long { + throw UnsupportedOperationException("Operation not permitted") + } + + override fun getRemoteDownloadThrottleTimeInNanos(): Long { + throw UnsupportedOperationException("Operation not permitted") + } + override fun finalizeSnapshot(shardGenerations: ShardGenerations?, repositoryStateId: Long, clusterMetadata: Metadata?, snapshotInfo: SnapshotInfo?, repositoryMetaVersion: Version?, stateTransformer: Function?, @@ -351,6 +359,10 @@ class RemoteClusterRepository(private val repositoryMetadata: RepositoryMetadata return true } + override fun isSystemRepository(): Boolean { + throw UnsupportedOperationException("Operation not permitted") + } + /* * This method makes a blocking call to the leader cluster