Package org.yamcs.filetransfer
Interface FileListingService
- All Known Subinterfaces:
FileTransferService
- All Known Implementing Classes:
AbstractFileTransferService
,CfdpService
public interface FileListingService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Start fetching a new file list from remote.Return latest file list of the given destination.default void
init
(String yamcsInstance, String serviceName, YConfiguration config) void
notifyRemoteFileListMonitors
(ListFilesResponse listFilesResponse) void
void
saveFileList
(ListFilesResponse listFilesResponse) void
-
Method Details
-
registerRemoteFileListMonitor
-
unregisterRemoteFileListMonitor
-
notifyRemoteFileListMonitors
-
getRemoteFileListMonitors
Set<RemoteFileListMonitor> getRemoteFileListMonitors() -
init
default void init(String yamcsInstance, String serviceName, YConfiguration config) throws InitException - Throws:
InitException
-
getFileList
ListFilesResponse getFileList(String source, String destination, String remotePath, Map<String, Object> options) Return latest file list of the given destination.- Parameters:
source
- source requesting the file list (e.g. local entity for CFDP)destination
- destination from which the file list is needed (e.g. remote entity for CFDP)remotePath
- path on the destination from which to get the file listoptions
- reliability of the file listing request (e.g. transmission mode for CFDP, may not be needed)- Returns:
- file list
-
fetchFileList
void fetchFileList(String source, String destination, String remotePath, Map<String, Object> options) Start fetching a new file list from remote.- Parameters:
source
- source requesting the file list (e.g. local entity for CFDP)destination
- destination from which the file list is needed (e.g. remote entity for CFDP)remotePath
- path on the destination from which to get the file listoptions
- reliability of the file listing request (e.g. transmission mode for CFDP, may not be needed)
-
saveFileList
-