public final class SFTPTemplateBackend extends Object implements TemplateBackend
| Modifier and Type | Method and Description |
|---|---|
protected void |
connect() |
void |
createTemplate(@NotNull String group,
@NotNull String template) |
protected void |
deleteDirectory(String remoteDir) |
void |
deleteTemplate(@NotNull String group,
@NotNull String template) |
void |
deployTemplate(@NotNull String group,
@NotNull String template,
@NotNull Path current,
@NotNull Collection<String> excluded) |
protected void |
downloadDirectory(String remoteDir,
String localDir) |
protected void |
ensureConnected() |
protected void |
executeSilently(@NotNull systems.reformcloud.reformcloud2.backends.sftp.SFTPTemplateBackend.ExceptionRunnable runnable) |
protected @NotNull Task<Void> |
executeTask(@NotNull systems.reformcloud.reformcloud2.backends.sftp.SFTPTemplateBackend.ExceptionRunnable runnable) |
boolean |
existsTemplate(@NotNull String group,
@NotNull String template) |
@NotNull String |
getName() |
protected boolean |
isReady() |
static void |
load(String basePath) |
@NotNull Task<Void> |
loadGlobalTemplates(@NotNull ProcessGroup group,
@NotNull Path target) |
@NotNull Task<Void> |
loadPath(@NotNull String path,
@NotNull Path target) |
@NotNull Task<Void> |
loadTemplate(@NotNull String group,
@NotNull String template,
@NotNull Path target) |
static void |
unload() |
protected void |
uploadDirectory(String remoteDir,
String localDir,
Collection<String> excluded) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeployTemplatepublic boolean existsTemplate(@NotNull
@NotNull String group,
@NotNull
@NotNull String template)
existsTemplate in interface TemplateBackendpublic void createTemplate(@NotNull
@NotNull String group,
@NotNull
@NotNull String template)
createTemplate in interface TemplateBackend@NotNull public @NotNull Task<Void> loadTemplate(@NotNull @NotNull String group, @NotNull @NotNull String template, @NotNull @NotNull Path target)
loadTemplate in interface TemplateBackend@NotNull public @NotNull Task<Void> loadGlobalTemplates(@NotNull @NotNull ProcessGroup group, @NotNull @NotNull Path target)
loadGlobalTemplates in interface TemplateBackend@NotNull public @NotNull Task<Void> loadPath(@NotNull @NotNull String path, @NotNull @NotNull Path target)
loadPath in interface TemplateBackendpublic void deployTemplate(@NotNull
@NotNull String group,
@NotNull
@NotNull String template,
@NotNull
@NotNull Path current,
@NotNull
@NotNull Collection<String> excluded)
deployTemplate in interface TemplateBackendpublic void deleteTemplate(@NotNull
@NotNull String group,
@NotNull
@NotNull String template)
deleteTemplate in interface TemplateBackend@NotNull protected @NotNull Task<Void> executeTask(@NotNull @NotNull systems.reformcloud.reformcloud2.backends.sftp.SFTPTemplateBackend.ExceptionRunnable runnable)
protected boolean isReady()
protected void ensureConnected()
protected void downloadDirectory(String remoteDir, String localDir) throws IOException
IOExceptionprotected void deleteDirectory(String remoteDir) throws IOException
IOExceptionprotected void uploadDirectory(String remoteDir, String localDir, Collection<String> excluded) throws IOException
IOExceptionprotected void connect()
protected void executeSilently(@NotNull
@NotNull systems.reformcloud.reformcloud2.backends.sftp.SFTPTemplateBackend.ExceptionRunnable runnable)
public static void load(String basePath)
public static void unload()
Copyright © 2020. All rights reserved.