public class AppData
extends java.lang.Object
implements java.lang.AutoCloseable
AppFileSystem
objects.
//Get AppData instance. AppData appData = ... //Print file system names to console appData.getFileSystems().stream().map(AppFileSystem::getName).forEach(System.out::println); //Get file system with name "fs1" AppFileSystem fs1 = appData.getFileSystem("fs1"); //Get root folder of "fs1" Folder root = fs1.getRootFolder(); //Get the node of type Project at /folder1/folder2/my_project, if it exists. Optional<Project> project = root.getChild(Project.class, "folder1", "folder2", "my_project"); ...
Constructor and Description |
---|
AppData(ComputationManager shortTimeExecutionComputationManager,
ComputationManager longTimeExecutionComputationManager) |
AppData(ComputationManager shortTimeExecutionComputationManager,
ComputationManager longTimeExecutionComputationManager,
java.util.List<AppFileSystemProvider> fileSystemProviders) |
AppData(ComputationManager shortTimeExecutionComputationManager,
ComputationManager longTimeExecutionComputationManager,
java.util.List<AppFileSystemProvider> fileSystemProviders,
java.util.List<FileExtension> fileExtensions,
java.util.List<ProjectFileExtension> projectFileExtensions,
java.util.List<ServiceExtension> serviceExtensions) |
Modifier and Type | Method and Description |
---|---|
void |
addFileSystem(AppFileSystem fileSystem) |
void |
close()
Closes any resources used by underlying file systems.
|
AppFileSystem |
getFileSystem(java.lang.String name)
Gets a file system by its
name . |
java.util.Collection<AppFileSystem> |
getFileSystems()
The list of available file systems.
|
ComputationManager |
getLongTimeExecutionComputationManager() |
java.util.Optional<Node> |
getNode(java.lang.String pathStr) |
java.util.Set<java.lang.Class<? extends ProjectFile>> |
getProjectFileClasses() |
java.util.List<java.lang.String> |
getRemotelyAccessibleFileSystemNames()
Gets the list of remotely accessible file systems.
|
ListenableAppStorage |
getRemotelyAccessibleStorage(java.lang.String fileSystemName)
Gets low level storage interface for remotely accessible file systems.
|
ComputationManager |
getShortTimeExecutionComputationManager() |
void |
setTokenProvider(SecurityTokenProvider tokenProvider) |
public AppData(ComputationManager shortTimeExecutionComputationManager, ComputationManager longTimeExecutionComputationManager)
public AppData(ComputationManager shortTimeExecutionComputationManager, ComputationManager longTimeExecutionComputationManager, java.util.List<AppFileSystemProvider> fileSystemProviders)
public AppData(ComputationManager shortTimeExecutionComputationManager, ComputationManager longTimeExecutionComputationManager, java.util.List<AppFileSystemProvider> fileSystemProviders, java.util.List<FileExtension> fileExtensions, java.util.List<ProjectFileExtension> projectFileExtensions, java.util.List<ServiceExtension> serviceExtensions)
public void addFileSystem(AppFileSystem fileSystem)
public java.util.Collection<AppFileSystem> getFileSystems()
public AppFileSystem getFileSystem(java.lang.String name)
name
.public void setTokenProvider(SecurityTokenProvider tokenProvider)
public java.util.Optional<Node> getNode(java.lang.String pathStr)
public java.util.Set<java.lang.Class<? extends ProjectFile>> getProjectFileClasses()
public ComputationManager getShortTimeExecutionComputationManager()
public ComputationManager getLongTimeExecutionComputationManager()
public java.util.List<java.lang.String> getRemotelyAccessibleFileSystemNames()
public ListenableAppStorage getRemotelyAccessibleStorage(java.lang.String fileSystemName)
public void close()
close
in interface java.lang.AutoCloseable
Copyright © 2019. All rights reserved.