Package de.dlr.proseo.api.cadipmon
Klasse CadipMonitor
java.lang.Object
java.lang.Thread
de.dlr.proseo.api.basemon.BaseMonitor
de.dlr.proseo.api.cadipmon.CadipMonitor
- Alle implementierten Schnittstellen:
Runnable
Monitor for CADU Interface Points (CADIP)
For specification details see "CADU Interface Delivery Point Specification" (ESA-EOPG-EOPGC-IF-15, issue 1.1)
- Autor:
- Dr. Thomas Bassler
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic class
Class describing a single CADU (DSDB) filestatic class
Class holding session quality data (available as soon as final CADU file has been written by acquisition station)static class
Class describing a download sessionVon Klasse geerbte verschachtelte Klassen/Schnittstellen de.dlr.proseo.api.basemon.BaseMonitor
BaseMonitor.TransferControl
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungIndicator for parallel copying processesVon Klasse geerbte Felder java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected BaseMonitor.TransferControl
checkAvailableDownloads
(Instant referenceTimeStamp) Check the configured CADIP for new downlink sessions, whose publication date is after the reference time stamp: Retrieve all downlink sessions with publication time after reference time stamp (authenticating with either Basic Auth or Bearer Token) Convert JSON session entries into transfer objects Return a list of all transfer objectsboolean
Check the CADIP status (by querying all available sessions)int
Gets the interval to check for completed file downloadsGets the last copy performance for monitoring purposesint
Gets the maximum number of parallel file download threads within a download sessionint
Gets the maximum number of wait cycles for file download completion checksvoid
setFileWaitInterval
(int fileWaitInterval) Sets the interval to check for completed file downloads(Package privat) void
setLastCopyPerformance
(Double copyPerformance) Records the last copy performance for monitoring purposesvoid
setMaxFileDownloadThreads
(int maxFileDownloadThreads) Sets the maximum number of parallel file download threads within a download sessionvoid
setMaxFileWaitCycles
(int maxFileWaitCycles) Sets the maximum number of wait cycles for file download completion checksprotected boolean
transferToTargetDir
(TransferObject object) Transfer the session found and its CADU files to the configured CADU target directory for L0 processing Create empty "done" list Create session and channel directories WHILE session is not complete Retrieve file list for session FOR EACH CADU file in file list and not in "done" list DO IN PARALLEL (up to quota) Download CADU file (check size) IF CADU file is marked as "final block", set session as completed Check session quality informationprotected boolean
triggerFollowOnAction
(TransferObject transferObject) protected boolean
triggerParallelAction
(CadipMonitor.TransferSession transferSession) Trigger any necessary parallel action on the transfer session (e. g.Von Klasse geerbte Methoden de.dlr.proseo.api.basemon.BaseMonitor
getCheckInterval, getHistoryRetentionDuration, getMaxDownloadThreads, getMaxWaitCycles, getTaskWaitInterval, getTransferHistoryFile, getTruncateInterval, run, run, setCheckInterval, setHistoryRetentionDuration, setMaxDownloadThreads, setMaxWaitCycles, setTaskWaitInterval, setTransferHistoryFile, setTruncateInterval
Von Klasse geerbte Methoden 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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Felddetails
-
copySuccess
Indicator for parallel copying processes
-
-
Konstruktordetails
-
CadipMonitor
public CadipMonitor()
-
-
Methodendetails
-
getMaxFileDownloadThreads
public int getMaxFileDownloadThreads()Gets the maximum number of parallel file download threads within a download session- Gibt zurück:
- the maximum number of parallel file download threads
-
setMaxFileDownloadThreads
public void setMaxFileDownloadThreads(int maxFileDownloadThreads) Sets the maximum number of parallel file download threads within a download session- Parameter:
maxFileDownloadThreads
- the maximum number of parallel file download threads to set
-
getFileWaitInterval
public int getFileWaitInterval()Gets the interval to check for completed file downloads- Gibt zurück:
- the check interval in millliseconds
-
setFileWaitInterval
public void setFileWaitInterval(int fileWaitInterval) Sets the interval to check for completed file downloads- Parameter:
fileWaitInterval
- the check interval in millliseconds to set
-
getMaxFileWaitCycles
public int getMaxFileWaitCycles()Gets the maximum number of wait cycles for file download completion checks- Gibt zurück:
- the maximum number of wait cycles
-
setMaxFileWaitCycles
public void setMaxFileWaitCycles(int maxFileWaitCycles) Sets the maximum number of wait cycles for file download completion checks- Parameter:
maxFileWaitCycles
- the maximum number of wait cycles to set
-
getLastCopyPerformance
Gets the last copy performance for monitoring purposes- Gibt zurück:
- the last copy performance in MiB/s
-
setLastCopyPerformance
Records the last copy performance for monitoring purposes- Parameter:
copyPerformance
- the copy performance in MiB/s
-
checkAvailableDownloads
Check the configured CADIP for new downlink sessions, whose publication date is after the reference time stamp:- Retrieve all downlink sessions with publication time after reference time stamp (authenticating with either Basic Auth or Bearer Token)
- Convert JSON session entries into transfer objects
- Return a list of all transfer objects
- Angegeben von:
checkAvailableDownloads
in KlasseBaseMonitor
- Parameter:
referenceTimeStamp
- the reference timestamp to apply for pickup point lookups- Gibt zurück:
- a transfer control object containing a list of available transfer objects
-
transferToTargetDir
Transfer the session found and its CADU files to the configured CADU target directory for L0 processing- Create empty "done" list
- Create session and channel directories
- WHILE session is not complete
- Retrieve file list for session
- FOR EACH CADU file in file list and not in "done" list DO IN PARALLEL (up to quota)
- Download CADU file (check size)
- IF CADU file is marked as "final block", set session as completed
- Check session quality information
- Angegeben von:
transferToTargetDir
in KlasseBaseMonitor
-
triggerParallelAction
Trigger any necessary parallel action on the transfer session (e. g. L0 processing)- Parameter:
transferSession
- the transfer session to start the action on- Gibt zurück:
- true, if starting the action succeeded (not necessarily the action itself), false otherwise
-
triggerFollowOnAction
- Angegeben von:
triggerFollowOnAction
in KlasseBaseMonitor
-
checkStatus
public boolean checkStatus()Check the CADIP status (by querying all available sessions)- Gibt zurück:
- true, if the CADIP is reachable and has session data, false otherwise
-