mirror of
https://github.com/google/nomulus.git
synced 2025-08-20 16:34:11 +02:00
Rename Runnable classes from Tasks to Actions
This is cleanup relating to a naming decision that we made awhile ago but never got around to. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117244827
This commit is contained in:
parent
5f7bf57cf9
commit
57fa57968d
48 changed files with 320 additions and 318 deletions
|
@ -49,7 +49,7 @@ import javax.inject.Inject;
|
|||
/**
|
||||
* Class for synchronizing all {@link Registrar} datastore objects to a Google Spreadsheet.
|
||||
*
|
||||
* @see SyncRegistrarsSheetTask
|
||||
* @see SyncRegistrarsSheetAction
|
||||
*/
|
||||
class SyncRegistrarsSheet {
|
||||
|
||||
|
|
|
@ -46,14 +46,14 @@ import javax.annotation.Nullable;
|
|||
import javax.inject.Inject;
|
||||
|
||||
/**
|
||||
* Task for synchronizing the registrars spreadsheet.
|
||||
* Action for synchronizing the registrars spreadsheet.
|
||||
*
|
||||
* <p>You can specify the spreadsheet ID by passing the "id" parameter. If this parameter is not
|
||||
* specified, then the spreadsheet ID will be obtained from the registry configuration.
|
||||
*
|
||||
* <p>Cron will run this task hourly. So in order to minimize Google Spreadsheets I/O, this task
|
||||
* <p>Cron will run this action hourly. So in order to minimize Google Spreadsheets I/O, this action
|
||||
* will iterate through all registrars and check if any entries were modified in the past hour. If
|
||||
* no modifications were made, the task will exit without performing any syncing.
|
||||
* no modifications were made, the action will exit without performing any syncing.
|
||||
*
|
||||
* <p><b>Note:</b> Setting the "id" parameter will disable the registrar update check.
|
||||
*
|
||||
|
@ -63,8 +63,8 @@ import javax.inject.Inject;
|
|||
*
|
||||
* @see SyncRegistrarsSheet
|
||||
*/
|
||||
@Action(path = SyncRegistrarsSheetTask.PATH, method = POST)
|
||||
public class SyncRegistrarsSheetTask implements Runnable {
|
||||
@Action(path = SyncRegistrarsSheetAction.PATH, method = POST)
|
||||
public class SyncRegistrarsSheetAction implements Runnable {
|
||||
|
||||
private enum Result {
|
||||
OK(SC_OK, "Sheet successfully updated."),
|
||||
|
@ -116,7 +116,7 @@ public class SyncRegistrarsSheetTask implements Runnable {
|
|||
@Inject @Config("sheetRegistrarId") Optional<String> idConfig;
|
||||
@Inject @Config("sheetRegistrarInterval") Duration interval;
|
||||
@Inject @Parameter("id") Optional<String> idParam;
|
||||
@Inject SyncRegistrarsSheetTask() {}
|
||||
@Inject SyncRegistrarsSheetAction() {}
|
||||
|
||||
@Override
|
||||
public void run() {
|
Loading…
Add table
Add a link
Reference in a new issue