Package google.registry.rde
Class RdeUploadAction
- java.lang.Object
-
- google.registry.rde.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 fromCursor.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.
-
-
-
Field Detail
-
PATH
public static final java.lang.String PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.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 interfacegoogle.registry.rde.EscrowTaskRunner.EscrowTask
- Parameters:
watermark
- the logical time for a point-in-time view of the database.- Throws:
java.lang.Exception
-
-