mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Delete the useless MapreduceAction interface
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=122630519
This commit is contained in:
parent
6f4b059cc9
commit
68b75461db
10 changed files with 9 additions and 42 deletions
|
@ -29,7 +29,6 @@ import com.google.common.collect.Lists;
|
|||
import com.googlecode.objectify.Key;
|
||||
|
||||
import google.registry.config.RegistryEnvironment;
|
||||
import google.registry.mapreduce.MapreduceAction;
|
||||
import google.registry.mapreduce.MapreduceRunner;
|
||||
import google.registry.model.ofy.CommitLogBucket;
|
||||
import google.registry.model.ofy.CommitLogCheckpointRoot;
|
||||
|
@ -42,7 +41,7 @@ import javax.inject.Inject;
|
|||
|
||||
/** Deletes all commit logs in datastore. */
|
||||
@Action(path = "/_dr/task/killAllCommitLogs", method = POST)
|
||||
public class KillAllCommitLogsAction implements MapreduceAction {
|
||||
public class KillAllCommitLogsAction implements Runnable {
|
||||
|
||||
@Inject MapreduceRunner mrRunner;
|
||||
@Inject Response response;
|
||||
|
|
|
@ -26,7 +26,6 @@ import com.googlecode.objectify.Key;
|
|||
import com.googlecode.objectify.Work;
|
||||
|
||||
import google.registry.config.RegistryEnvironment;
|
||||
import google.registry.mapreduce.MapreduceAction;
|
||||
import google.registry.mapreduce.MapreduceRunner;
|
||||
import google.registry.mapreduce.inputs.EppResourceInputs;
|
||||
import google.registry.model.EppResource;
|
||||
|
@ -41,7 +40,7 @@ import javax.inject.Inject;
|
|||
|
||||
/** Deletes all {@link EppResource} objects in datastore, including indices and descendants. */
|
||||
@Action(path = "/_dr/task/killAllEppResources", method = POST)
|
||||
public class KillAllEppResourcesAction implements MapreduceAction {
|
||||
public class KillAllEppResourcesAction implements Runnable {
|
||||
|
||||
@Inject MapreduceRunner mrRunner;
|
||||
@Inject Response response;
|
||||
|
|
|
@ -23,7 +23,6 @@ import com.google.common.collect.ImmutableList;
|
|||
|
||||
import com.googlecode.objectify.VoidWork;
|
||||
|
||||
import google.registry.mapreduce.MapreduceAction;
|
||||
import google.registry.mapreduce.MapreduceRunner;
|
||||
import google.registry.model.EppResource;
|
||||
import google.registry.request.Action;
|
||||
|
@ -39,7 +38,7 @@ import javax.inject.Inject;
|
|||
* commit logs (for backup purposes).
|
||||
*/
|
||||
@Action(path = "/_dr/task/resaveAllEppResources")
|
||||
public class ResaveAllEppResourcesAction implements MapreduceAction {
|
||||
public class ResaveAllEppResourcesAction implements Runnable {
|
||||
|
||||
@Inject MapreduceRunner mrRunner;
|
||||
@Inject Response response;
|
||||
|
|
|
@ -26,7 +26,6 @@ import com.google.common.collect.ImmutableSet;
|
|||
|
||||
import com.googlecode.objectify.VoidWork;
|
||||
|
||||
import google.registry.mapreduce.MapreduceAction;
|
||||
import google.registry.mapreduce.MapreduceRunner;
|
||||
import google.registry.model.billing.BillingEvent.Flag;
|
||||
import google.registry.model.billing.BillingEvent.Recurring;
|
||||
|
@ -40,7 +39,7 @@ import javax.inject.Inject;
|
|||
|
||||
/** A mapreduce that backfills new {@link Flag#AUTO_RENEW} flag on recurring billing events. */
|
||||
@Action(path = "/_dr/task/backfillAutorenewBillingFlag")
|
||||
public class BackfillAutorenewBillingFlagAction implements MapreduceAction {
|
||||
public class BackfillAutorenewBillingFlagAction implements Runnable {
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ import com.google.appengine.tools.mapreduce.Mapper;
|
|||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
|
||||
import google.registry.mapreduce.MapreduceAction;
|
||||
import google.registry.mapreduce.MapreduceRunner;
|
||||
import google.registry.model.EppResource;
|
||||
import google.registry.model.billing.BillingEvent.Recurring;
|
||||
|
@ -37,7 +36,7 @@ import javax.inject.Inject;
|
|||
* <p>This is a test of the ChildEntityInput/ChildEntityReader classes.
|
||||
*/
|
||||
@Action(path = "/_dr/task/countRecurringBillingEvents")
|
||||
public class CountRecurringBillingEventsAction implements MapreduceAction {
|
||||
public class CountRecurringBillingEventsAction implements Runnable {
|
||||
|
||||
// TODO(b/27562876): Delete this mapreduce once tested in production.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue