Package de.dytanic.cloudnet.template
Class ClusterSynchronizedTemplateStorage
- java.lang.Object
-
- de.dytanic.cloudnet.driver.template.defaults.DefaultSyncTemplateStorage
-
- de.dytanic.cloudnet.template.ClusterSynchronizedTemplateStorage
-
- All Implemented Interfaces:
de.dytanic.cloudnet.common.INameable,de.dytanic.cloudnet.driver.template.TemplateStorage,java.lang.AutoCloseable
- Direct Known Subclasses:
LocalTemplateStorage
public abstract class ClusterSynchronizedTemplateStorage extends de.dytanic.cloudnet.driver.template.defaults.DefaultSyncTemplateStorage
-
-
Constructor Summary
Constructors Constructor Description ClusterSynchronizedTemplateStorage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description @Nullable java.io.OutputStreamappendOutputStream(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)abstract java.io.OutputStreamappendOutputStreamWithoutSynchronization(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)booleancreate(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)booleancreateDirectory(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)abstract booleancreateDirectoryWithoutSynchronization(@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)abstract booleancreateFileWithoutSynchronization(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)abstract booleancreateWithoutSynchronization(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)booleandelete(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)booleandeleteFile(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)abstract booleandeleteFileWithoutSynchronization(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)abstract booleandeleteWithoutSynchronization(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)booleandeploy(@NotNull java.io.InputStream inputStream, @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target)booleandeploy(@NotNull java.nio.file.Path directory, @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target, @Nullable java.util.function.Predicate<java.nio.file.Path> fileFilter)abstract booleandeployWithoutSynchronization(@NotNull java.io.InputStream inputStream, @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target)abstract booleandeployWithoutSynchronization(@NotNull java.nio.file.Path directory, @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target, @Nullable java.util.function.Predicate<java.nio.file.Path> fileFilter)@Nullable java.io.OutputStreamnewOutputStream(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)abstract java.io.OutputStreamnewOutputStreamWithoutSynchronization(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull java.lang.String path)protected booleanrequiresSynchronization()voidtoggleSynchronization(boolean enabled)-
Methods inherited from class de.dytanic.cloudnet.driver.template.defaults.DefaultSyncTemplateStorage
appendOutputStreamAsync, asZipInputStreamAsync, closeAsync, copyAsync, createAsync, createDirectoryAsync, createFileAsync, deleteAsync, deleteFileAsync, deployAsync, deployAsync, deployAsync, getFileInfoAsync, getTemplatesAsync, hasAsync, hasFileAsync, listFilesAsync, listFilesAsync, newInputStreamAsync, newOutputStreamAsync, zipTemplateAsync
-
-
-
-
Method Detail
-
toggleSynchronization
public void toggleSynchronization(boolean enabled)
-
requiresSynchronization
protected boolean requiresSynchronization()
-
deploy
public boolean deploy(@NotNull @NotNull java.nio.file.Path directory, @NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target, @Nullable @Nullable java.util.function.Predicate<java.nio.file.Path> fileFilter)
-
deployWithoutSynchronization
public abstract boolean deployWithoutSynchronization(@NotNull @NotNull java.nio.file.Path directory, @NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target, @Nullable @Nullable java.util.function.Predicate<java.nio.file.Path> fileFilter)
-
deploy
public boolean deploy(@NotNull @NotNull java.io.InputStream inputStream, @NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target)
-
deployWithoutSynchronization
public abstract boolean deployWithoutSynchronization(@NotNull @NotNull java.io.InputStream inputStream, @NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate target)
-
delete
public boolean delete(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)
-
deleteWithoutSynchronization
public abstract boolean deleteWithoutSynchronization(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)
-
create
public boolean create(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)
-
createWithoutSynchronization
public abstract boolean createWithoutSynchronization(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)
-
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- Throws:
java.io.IOException
-
appendOutputStreamWithoutSynchronization
public abstract java.io.OutputStream appendOutputStreamWithoutSynchronization(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- 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- Throws:
java.io.IOException
-
newOutputStreamWithoutSynchronization
public abstract java.io.OutputStream newOutputStreamWithoutSynchronization(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- 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- Throws:
java.io.IOException
-
createFileWithoutSynchronization
public abstract boolean createFileWithoutSynchronization(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- 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- Throws:
java.io.IOException
-
createDirectoryWithoutSynchronization
public abstract boolean createDirectoryWithoutSynchronization(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- 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- Throws:
java.io.IOException
-
deleteFileWithoutSynchronization
public abstract boolean deleteFileWithoutSynchronization(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template, @NotNull @NotNull java.lang.String path) throws java.io.IOException- Throws:
java.io.IOException
-
-