diff --git a/test/framework/src/main/java/org/opensearch/cluster/service/FakeThreadPoolMasterService.java b/test/framework/src/main/java/org/opensearch/cluster/service/FakeThreadPoolMasterService.java new file mode 100644 index 0000000000000..0713432c00189 --- /dev/null +++ b/test/framework/src/main/java/org/opensearch/cluster/service/FakeThreadPoolMasterService.java @@ -0,0 +1,28 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * The OpenSearch Contributors require contributions made to + * this file be licensed under the Apache-2.0 license or a + * compatible open source license. + */ + +package org.opensearch.cluster.service; + +import org.opensearch.threadpool.ThreadPool; + +import java.util.function.Consumer; + +/** + * @deprecated As of 2.2, because supporting inclusive language, replaced by {@link FakeThreadPoolClusterManagerService} + */ +@Deprecated +public class FakeThreadPoolMasterService extends FakeThreadPoolClusterManagerService { + public FakeThreadPoolMasterService( + String nodeName, + String serviceName, + ThreadPool threadPool, + Consumer onTaskAvailableToRun + ) { + super(nodeName, serviceName, threadPool, onTaskAvailableToRun); + } +} diff --git a/test/framework/src/main/java/org/opensearch/test/disruption/BlockMasterServiceOnMaster.java b/test/framework/src/main/java/org/opensearch/test/disruption/BlockMasterServiceOnMaster.java new file mode 100644 index 0000000000000..bbe99d838f296 --- /dev/null +++ b/test/framework/src/main/java/org/opensearch/test/disruption/BlockMasterServiceOnMaster.java @@ -0,0 +1,21 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * The OpenSearch Contributors require contributions made to + * this file be licensed under the Apache-2.0 license or a + * compatible open source license. + */ + +package org.opensearch.test.disruption; + +import java.util.Random; + +/** + * @deprecated As of 2.2, because supporting inclusive language, replaced by {@link BlockClusterManagerServiceOnClusterManager} + */ +@Deprecated +public class BlockMasterServiceOnMaster extends BlockClusterManagerServiceOnClusterManager { + public BlockMasterServiceOnMaster(Random random) { + super(random); + } +} diff --git a/test/framework/src/main/java/org/opensearch/test/disruption/BusyMasterServiceDisruption.java b/test/framework/src/main/java/org/opensearch/test/disruption/BusyMasterServiceDisruption.java new file mode 100644 index 0000000000000..884997123e6a4 --- /dev/null +++ b/test/framework/src/main/java/org/opensearch/test/disruption/BusyMasterServiceDisruption.java @@ -0,0 +1,23 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * The OpenSearch Contributors require contributions made to + * this file be licensed under the Apache-2.0 license or a + * compatible open source license. + */ + +package org.opensearch.test.disruption; + +import org.opensearch.common.Priority; + +import java.util.Random; + +/** + * @deprecated As of 2.2, because supporting inclusive language, replaced by {@link BusyClusterManagerServiceDisruption} + */ +@Deprecated +public class BusyMasterServiceDisruption extends BusyClusterManagerServiceDisruption { + public BusyMasterServiceDisruption(Random random, Priority priority) { + super(random, priority); + } +}