Package de.dlr.proseo.api.xbipmon
Class XbipMonitor
java.lang.Object
java.lang.Thread
de.dlr.proseo.api.basemon.BaseMonitor
de.dlr.proseo.api.xbipmon.XbipMonitor
- All Implemented Interfaces:
Runnable
Monitor for X-band Interface Points
X-band Interface Points are WebDAV volumes, so from within the Monitor they just look like plain POSIX volumes.
- Author:
- Dr. Thomas Bassler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass describing a download channelstatic 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 TypeFieldDescriptionIndicator for parallel copying processesFields 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 XBIP satellite directory for sessions (without filtering); note that the passed reference time stamp is ignored, as on the XBIP there is no reliable value to compare it againstintGets the interval to check for completed file downloadsGets the last copy performance for monitoring purposesintGets the maximum number of parallel file download threads within a download sessionintGets the maximum number of wait cycles for file download completion checksvoidsetFileWaitInterval(int fileWaitInterval) Sets the interval to check for completed file downloads(package private) voidsetLastCopyPerformance(Double copyPerformance) Records the last copy performance for monitoring purposesvoidsetMaxFileDownloadThreads(int maxFileDownloadThreads) Sets the maximum number of parallel file download threads within a download sessionvoidsetMaxFileWaitCycles(int maxFileWaitCycles) Sets the maximum number of wait cycles for file download completion checksprotected booleantransferToTargetDir(TransferObject object) Transfer the data in the session data directory to the configured CADU target directory for L0 processingprotected booleantriggerFollowOnAction(TransferObject transferObject) Trigger L0 processing on the given downlink session transfer object (spawns a separate process taking just the path to the session CADU data as parameter)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
-
-
Constructor Details
-
XbipMonitor
public XbipMonitor()
-
-
Method Details
-
getMaxFileDownloadThreads
public int getMaxFileDownloadThreads()Gets the maximum number of parallel file download threads within a download session- Returns:
- 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- Parameters:
maxFileDownloadThreads- the maximum number of parallel file download threads to set
-
getFileWaitInterval
public int getFileWaitInterval()Gets the interval to check for completed file downloads- Returns:
- the check interval in millliseconds
-
setFileWaitInterval
public void setFileWaitInterval(int fileWaitInterval) Sets the interval to check for completed file downloads- Parameters:
fileWaitInterval- the check interval in millliseconds to set
-
getMaxFileWaitCycles
public int getMaxFileWaitCycles()Gets the maximum number of wait cycles for file download completion checks- Returns:
- the maximum number of wait cycles
-
setMaxFileWaitCycles
public void setMaxFileWaitCycles(int maxFileWaitCycles) Sets the maximum number of wait cycles for file download completion checks- Parameters:
maxFileWaitCycles- the maximum number of wait cycles to set
-
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 XBIP satellite directory for sessions (without filtering); note that the passed reference time stamp is ignored, as on the XBIP there is no reliable value to compare it against- Specified by:
checkAvailableDownloadsin classBaseMonitor
-
transferToTargetDir
Transfer the data in the session data directory to the configured CADU target directory for L0 processing- Specified by:
transferToTargetDirin classBaseMonitor
-
triggerFollowOnAction
Trigger L0 processing on the given downlink session transfer object (spawns a separate process taking just the path to the session CADU data as parameter)- Specified by:
triggerFollowOnActionin classBaseMonitor
-