Class SyncRegistrarsSheetAction

  • All Implemented Interfaces:
    java.lang.Runnable

    public class SyncRegistrarsSheetAction
    extends java.lang.Object
    implements java.lang.Runnable
    Action for synchronizing the registrars spreadsheet.

    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.

    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 action will exit without performing any syncing.

    Note: Setting the "id" parameter will disable the registrar update check.

    Before using this service, you should make sure all the column headers listed in this source file are present. You also need to share the spreadsheet with the email address from the JSON credential file and give it edit permission.

    See Also:
    SyncRegistrarsSheet
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PATH  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void enqueueRegistrarSheetSync​(java.lang.String hostname)
      Enqueues a sync registrar sheet task targeting the App Engine service specified by hostname.
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • enqueueRegistrarSheetSync

        public static void enqueueRegistrarSheetSync​(java.lang.String hostname)
        Enqueues a sync registrar sheet task targeting the App Engine service specified by hostname.