Class FTPQueueStorage
- java.lang.Object
-
- de.dytanic.cloudnet.ext.storage.ftp.storage.queue.FTPQueueStorage
-
- All Implemented Interfaces:
de.dytanic.cloudnet.common.INameable,de.dytanic.cloudnet.template.ITemplateStorage,java.lang.AutoCloseable,java.lang.Runnable
public class FTPQueueStorage extends java.lang.Object implements java.lang.Runnable, de.dytanic.cloudnet.template.ITemplateStorage
-
-
Constructor Summary
Constructors Constructor Description FTPQueueStorage(AbstractFTPStorage executingStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @Nullable java.io.OutputStreamappendOutputStream(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)@Nullable java.util.zip.ZipInputStreamasZipInputStream(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)voidclose()booleancopy(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.io.File directory)booleancopy(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.io.File[] directories)booleancopy(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.nio.file.Path directory)booleancopy(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.nio.file.Path[] directories)booleancreate(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)booleancreateDirectory(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)booleancreateFile(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)booleandelete(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)booleandeleteFile(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)booleandeploy(@org.jetbrains.annotations.NotNull byte[] zipInput, @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target)Deprecated.booleandeploy(@NotNull java.io.File[] files, @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target)booleandeploy(@NotNull java.io.File directory, @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target, @Nullable java.util.function.Predicate<java.io.File> fileFilter)booleandeploy(@NotNull java.nio.file.Path[] paths, @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target)booleandeploy(@NotNull java.util.zip.ZipInputStream inputStream, @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate serviceTemplate)AbstractFTPStoragegetExecutingStorage()java.lang.StringgetName()java.util.Collection<de.dytanic.cloudnet.driver.service.ServiceTemplate>getTemplates()booleanhas(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)booleanhasFile(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)booleanisOpened()java.lang.String[]listFiles(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String dir)@Nullable java.io.OutputStreamnewOutputStream(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)voidrun()byte[]toZipByteArray(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)Deprecated.
-
-
-
Constructor Detail
-
FTPQueueStorage
public FTPQueueStorage(AbstractFTPStorage executingStorage)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
deploy
@Deprecated public boolean deploy(@NotNull @org.jetbrains.annotations.NotNull byte[] zipInput, @NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target)Deprecated.- Specified by:
deployin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
deploy
public boolean deploy(@NotNull @NotNull java.io.File directory, @NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target, @Nullable @Nullable java.util.function.Predicate<java.io.File> fileFilter)- Specified by:
deployin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
deploy
public boolean deploy(@NotNull @NotNull java.util.zip.ZipInputStream inputStream, @NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate serviceTemplate)- Specified by:
deployin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
deploy
public boolean deploy(@NotNull @NotNull java.nio.file.Path[] paths, @NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target)- Specified by:
deployin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
deploy
public boolean deploy(@NotNull @NotNull java.io.File[] files, @NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target)- Specified by:
deployin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
copy
public boolean copy(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.io.File directory)- Specified by:
copyin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
copy
public boolean copy(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.nio.file.Path directory)- Specified by:
copyin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
copy
public boolean copy(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.io.File[] directories)- Specified by:
copyin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
copy
public boolean copy(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.nio.file.Path[] directories)- Specified by:
copyin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
toZipByteArray
@Deprecated public byte[] toZipByteArray(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)Deprecated.- Specified by:
toZipByteArrayin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
asZipInputStream
@Nullable public @Nullable java.util.zip.ZipInputStream asZipInputStream(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)- Specified by:
asZipInputStreamin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
delete
public boolean delete(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)- Specified by:
deletein interfacede.dytanic.cloudnet.template.ITemplateStorage
-
create
public boolean create(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)- Specified by:
createin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
has
public boolean has(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)- Specified by:
hasin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
appendOutputStream
@Nullable public @Nullable java.io.OutputStream appendOutputStream(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- Specified by:
appendOutputStreamin interfacede.dytanic.cloudnet.template.ITemplateStorage- Throws:
java.io.IOException
-
newOutputStream
@Nullable public @Nullable java.io.OutputStream newOutputStream(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- Specified by:
newOutputStreamin interfacede.dytanic.cloudnet.template.ITemplateStorage- Throws:
java.io.IOException
-
createFile
public boolean createFile(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- Specified by:
createFilein interfacede.dytanic.cloudnet.template.ITemplateStorage- Throws:
java.io.IOException
-
createDirectory
public boolean createDirectory(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- Specified by:
createDirectoryin interfacede.dytanic.cloudnet.template.ITemplateStorage- Throws:
java.io.IOException
-
hasFile
public boolean hasFile(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- Specified by:
hasFilein interfacede.dytanic.cloudnet.template.ITemplateStorage- Throws:
java.io.IOException
-
deleteFile
public boolean deleteFile(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- Specified by:
deleteFilein interfacede.dytanic.cloudnet.template.ITemplateStorage- Throws:
java.io.IOException
-
listFiles
public java.lang.String[] listFiles(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String dir) throws java.io.IOException- Specified by:
listFilesin interfacede.dytanic.cloudnet.template.ITemplateStorage- Throws:
java.io.IOException
-
getTemplates
public java.util.Collection<de.dytanic.cloudnet.driver.service.ServiceTemplate> getTemplates()
- Specified by:
getTemplatesin interfacede.dytanic.cloudnet.template.ITemplateStorage
-
getExecutingStorage
public AbstractFTPStorage getExecutingStorage()
-
isOpened
public boolean isOpened()
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacede.dytanic.cloudnet.common.INameable
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacede.dytanic.cloudnet.template.ITemplateStorage- Throws:
java.io.IOException
-
-