- All Known Subinterfaces:
FileTransferService
- All Known Implementing Classes:
AbstractFileTransferService,CfdpService
public interface FileListingService
-
Method Summary
Modifier and TypeMethodDescriptionvoidStart fetching a new file list from remote.org.yamcs.protobuf.ListFilesResponseReturn latest file list of the given destination.default voidinit(String yamcsInstance, String serviceName, YConfiguration config) voidnotifyRemoteFileListMonitors(org.yamcs.protobuf.ListFilesResponse listFilesResponse) voidvoidsaveFileList(org.yamcs.protobuf.ListFilesResponse listFilesResponse) void
-
Method Details
-
init
default void init(String yamcsInstance, String serviceName, YConfiguration config) throws InitException - Throws:
InitException
-
registerRemoteFileListMonitor
-
unregisterRemoteFileListMonitor
-
notifyRemoteFileListMonitors
void notifyRemoteFileListMonitors(org.yamcs.protobuf.ListFilesResponse listFilesResponse) -
getRemoteFileListMonitors
Set<RemoteFileListMonitor> getRemoteFileListMonitors() -
getFileList
org.yamcs.protobuf.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
void saveFileList(org.yamcs.protobuf.ListFilesResponse listFilesResponse)
-