mirror of
https://github.com/google/nomulus
synced 2026-05-29 19:20:36 +00:00
Delete the useless MapreduceAction interface
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=122630519
This commit is contained in:
committed by
Justine Tunney
parent
6f4b059cc9
commit
68b75461db
@@ -26,7 +26,6 @@ import com.google.common.annotations.VisibleForTesting;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
|
||||
import google.registry.config.RegistryEnvironment;
|
||||
import google.registry.mapreduce.MapreduceAction;
|
||||
import google.registry.util.FormattingLogger;
|
||||
|
||||
import org.joda.time.Duration;
|
||||
@@ -45,7 +44,7 @@ public final class AsyncFlowUtils {
|
||||
|
||||
/** Enqueues a mapreduce action to perform an async flow operation. */
|
||||
public static TaskHandle enqueueMapreduceAction(
|
||||
Class<? extends MapreduceAction> action,
|
||||
Class<? extends Runnable> action,
|
||||
ImmutableMap<String, String> params,
|
||||
Duration executionDelay) {
|
||||
Queue queue = QueueFactory.getQueue(ASYNC_FLOW_QUEUE_NAME);
|
||||
|
||||
@@ -34,7 +34,6 @@ import com.googlecode.objectify.Key;
|
||||
import com.googlecode.objectify.Ref;
|
||||
import com.googlecode.objectify.Work;
|
||||
|
||||
import google.registry.mapreduce.MapreduceAction;
|
||||
import google.registry.mapreduce.MapreduceRunner;
|
||||
import google.registry.mapreduce.inputs.EppResourceInputs;
|
||||
import google.registry.mapreduce.inputs.NullInput;
|
||||
@@ -59,7 +58,7 @@ import javax.inject.Inject;
|
||||
* A mapreduce to delete the specified EPP resource, but ONLY if it is not referred to by any
|
||||
* existing DomainBase entity.
|
||||
*/
|
||||
public abstract class DeleteEppResourceAction<T extends EppResource> implements MapreduceAction {
|
||||
public abstract class DeleteEppResourceAction<T extends EppResource> implements Runnable {
|
||||
|
||||
/** The HTTP parameter name used to specify the websafe key of the resource to delete. */
|
||||
public static final String PARAM_RESOURCE_KEY = "resourceKey";
|
||||
|
||||
@@ -26,7 +26,6 @@ import com.googlecode.objectify.Key;
|
||||
import com.googlecode.objectify.Ref;
|
||||
|
||||
import google.registry.dns.DnsQueue;
|
||||
import google.registry.mapreduce.MapreduceAction;
|
||||
import google.registry.mapreduce.MapreduceRunner;
|
||||
import google.registry.mapreduce.inputs.EppResourceInputs;
|
||||
import google.registry.model.domain.DomainResource;
|
||||
@@ -46,7 +45,7 @@ import javax.inject.Inject;
|
||||
* Enqueues DNS refreshes for applicable domains following a host rename.
|
||||
*/
|
||||
@Action(path = "/_dr/task/dnsRefreshForHostRename")
|
||||
public class DnsRefreshForHostRenameAction implements MapreduceAction {
|
||||
public class DnsRefreshForHostRenameAction implements Runnable {
|
||||
|
||||
/** The HTTP parameter name used to specify the websafe key of the host to rename. */
|
||||
public static final String PARAM_HOST_KEY = "hostKey";
|
||||
|
||||
Reference in New Issue
Block a user