Interface SpecificTemplateStorage

  • All Superinterfaces:
    de.dytanic.cloudnet.common.INameable
    All Known Implementing Classes:
    DefaultSpecificTemplateStorage

    public interface SpecificTemplateStorage
    extends de.dytanic.cloudnet.common.INameable
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      @Nullable java.io.OutputStream appendOutputStream​(@NotNull java.lang.String path)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.io.OutputStream> appendOutputStreamAsync​(@NotNull java.lang.String path)  
      @Nullable java.util.zip.ZipInputStream asZipInputStream()  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.zip.ZipInputStream> asZipInputStreamAsync()  
      boolean copy​(@NotNull java.nio.file.Path directory)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> copyAsync​(@NotNull java.nio.file.Path directory)  
      boolean create()  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> createAsync()  
      boolean createDirectory​(@NotNull java.lang.String path)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> createDirectoryAsync​(@NotNull java.lang.String path)  
      boolean createFile​(@NotNull java.lang.String path)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> createFileAsync​(@NotNull java.lang.String path)  
      boolean delete()  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> deleteAsync()  
      boolean deleteFile​(@NotNull java.lang.String path)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> deleteFileAsync​(@NotNull java.lang.String path)  
      boolean deploy​(@NotNull java.io.InputStream inputStream)  
      default boolean deploy​(@NotNull java.nio.file.Path directory)  
      boolean deploy​(@NotNull java.nio.file.Path directory, @Nullable java.util.function.Predicate<java.nio.file.Path> fileFilter)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> deployAsync​(@NotNull java.io.InputStream inputStream)  
      default @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> deployAsync​(@NotNull java.nio.file.Path directory)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> deployAsync​(@NotNull java.nio.file.Path directory, @Nullable java.util.function.Predicate<java.nio.file.Path> fileFilter)  
      boolean exists()  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> existsAsync()  
      @Nullable FileInfo getFileInfo​(@NotNull java.lang.String path)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<FileInfo> getFileInfoAsync​(@NotNull java.lang.String path)  
      @NotNull ServiceTemplate getTargetTemplate()
      Gets the template this class is wrapping.
      @NotNull TemplateStorage getWrappedStorage()
      Gets the storage this class is wrapping.
      boolean hasFile​(@NotNull java.lang.String path)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Boolean> hasFileAsync​(@NotNull java.lang.String path)  
      default @Nullable FileInfo[] listFiles()  
      default @Nullable FileInfo[] listFiles​(boolean deep)  
      default @Nullable FileInfo[] listFiles​(@NotNull java.lang.String dir)  
      @Nullable FileInfo[] listFiles​(@NotNull java.lang.String dir, boolean deep)  
      default @NotNull de.dytanic.cloudnet.common.concurrent.ITask<FileInfo[]> listFilesAsync()  
      default @NotNull de.dytanic.cloudnet.common.concurrent.ITask<FileInfo[]> listFilesAsync​(boolean deep)  
      default @NotNull de.dytanic.cloudnet.common.concurrent.ITask<FileInfo[]> listFilesAsync​(@NotNull java.lang.String dir)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<FileInfo[]> listFilesAsync​(@NotNull java.lang.String dir, boolean deep)  
      @Nullable java.io.InputStream newInputStream​(@NotNull java.lang.String path)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.io.InputStream> newInputStreamAsync​(@NotNull java.lang.String path)  
      @Nullable java.io.OutputStream newOutputStream​(@NotNull java.lang.String path)  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.io.OutputStream> newOutputStreamAsync​(@NotNull java.lang.String path)  
      static @NotNull SpecificTemplateStorage of​(@NotNull ServiceTemplate template)
      Creates a new SpecificTemplateStorage for the given template.
      static @NotNull SpecificTemplateStorage of​(@NotNull ServiceTemplate template, @NotNull TemplateStorage storage)
      Creates a new SpecificTemplateStorage for the given template.
      @Nullable java.io.InputStream zipTemplate()  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.io.InputStream> zipTemplateAsync()  
      • Methods inherited from interface de.dytanic.cloudnet.common.INameable

        getName