Class RdeUploadAction

  • All Implemented Interfaces:
    google.registry.rde.EscrowTaskRunner.EscrowTask, java.lang.Runnable

    public final class RdeUploadAction
    extends java.lang.Object
    implements java.lang.Runnable, google.registry.rde.EscrowTaskRunner.EscrowTask
    Action that securely uploads an RDE XML file from Cloud Storage to a trusted third party (such as Iron Mountain) via SFTP.

    This action is invoked by RdeStagingAction once it's created the files we need. The date is calculated from Cursor.CursorType.RDE_UPLOAD.

    Once this action completes, it rolls the cursor forward a day and triggers RdeReportAction.

    • Field Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      void runWithLock​(org.joda.time.DateTime watermark)
      Performs task logic while the lock is held.
      • 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
      • runWithLock

        public void runWithLock​(org.joda.time.DateTime watermark)
                         throws java.lang.Exception
        Description copied from interface: google.registry.rde.EscrowTaskRunner.EscrowTask
        Performs task logic while the lock is held.
        Specified by:
        runWithLock in interface google.registry.rde.EscrowTaskRunner.EscrowTask
        Parameters:
        watermark - the logical time for a point-in-time view of the database.
        Throws:
        java.lang.Exception