Package de.dlr.proseo.api.auxipmon
Class AuxipMonitor
java.lang.Object
java.lang.Thread
de.dlr.proseo.api.basemon.BaseMonitor
de.dlr.proseo.api.auxipmon.AuxipMonitor
- All Implemented Interfaces:
Runnable
Monitor for Auxiliary Data Interface Points (AUXIP)
For specification details see "Auxiliary Data Interface Delivery Point Specification" (ESA-EOPG-EOPGC-IF-10, issue 1.3)
- Author:
- Dr. Thomas Bassler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass describing a download sessionNested classes/interfaces inherited from class de.dlr.proseo.api.basemon.BaseMonitor
BaseMonitor.TransferControlNested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicator for parallel copying processes(package private) static final String(package private) static final intFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseMonitor.TransferControlcheckAvailableDownloads(Instant referenceTimeStamp) Check the configured AUXIP for new files of the configured product types, whose publication date is after the reference time stamp: If token-based authentication is required, login to AUXIP and request token For all configured product types: Retrieve all products of the given type with publication time after reference time stamp (authenticating with either Basic Auth or Bearer Token) Convert JSON product entries into transfer objects Return the combined list of transfer objectsGets the last copy performance for monitoring purposes(package private) voidsetLastCopyPerformance(Double copyPerformance) Records the last copy performance for monitoring purposesprotected booleantransferToTargetDir(TransferObject object) Transfer the products found to disk for later ingestionprotected booleantriggerFollowOnAction(TransferObject transferObject) Methods inherited from class de.dlr.proseo.api.basemon.BaseMonitor
getCheckInterval, getHistoryRetentionDuration, getMaxDownloadThreads, getMaxWaitCycles, getTaskWaitInterval, getTransferHistoryFile, getTruncateInterval, run, run, setCheckInterval, setHistoryRetentionDuration, setMaxDownloadThreads, setMaxWaitCycles, setTaskWaitInterval, setTransferHistoryFile, setTruncateIntervalMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
copySuccess
Indicator for parallel copying processes -
MSG_ID_COPY_FILE_FAILED
static final int MSG_ID_COPY_FILE_FAILED- See Also:
-
MSG_COPY_FILE_FAILED
- See Also:
-
AUXIP_WAIT
public static final int AUXIP_WAIT- See Also:
-
-
Constructor Details
-
AuxipMonitor
public AuxipMonitor()
-
-
Method Details
-
getLastCopyPerformance
Gets the last copy performance for monitoring purposes- Returns:
- the last copy performance in MiB/s
-
setLastCopyPerformance
Records the last copy performance for monitoring purposes- Parameters:
copyPerformance- the copy performance in MiB/s
-
checkAvailableDownloads
Check the configured AUXIP for new files of the configured product types, whose publication date is after the reference time stamp:- If token-based authentication is required, login to AUXIP and request token
- For all configured product types:
- Retrieve all products of the given type with publication time after reference time stamp (authenticating with either Basic Auth or Bearer Token)
- Convert JSON product entries into transfer objects
- Return the combined list of transfer objects
- Specified by:
checkAvailableDownloadsin classBaseMonitor- Parameters:
referenceTimeStamp- the reference timestamp to apply for pickup point lookups- Returns:
- a list of available transfer objects
-
transferToTargetDir
Transfer the products found to disk for later ingestion- Specified by:
transferToTargetDirin classBaseMonitor
-
triggerFollowOnAction
- Specified by:
triggerFollowOnActionin classBaseMonitor
-