public class HttpFileTransferImpl
extends java.lang.Object
implements com.netflix.genie.core.services.FileTransfer
| Constructor and Description |
|---|
HttpFileTransferImpl(org.springframework.web.client.RestTemplate restTemplate,
com.netflix.spectator.api.Registry registry)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getFile(java.lang.String srcRemotePath,
java.lang.String dstLocalPath) |
long |
getLastModifiedTime(java.lang.String path) |
boolean |
isValid(java.lang.String fileName) |
void |
putFile(java.lang.String srcLocalPath,
java.lang.String dstRemotePath) |
public HttpFileTransferImpl(@NotNull
org.springframework.web.client.RestTemplate restTemplate,
@NotNull
com.netflix.spectator.api.Registry registry)
restTemplate - The rest template to useregistry - The metrics registry to usepublic boolean isValid(java.lang.String fileName)
throws com.netflix.genie.common.exceptions.GenieException
isValid in interface com.netflix.genie.core.services.FileTransfercom.netflix.genie.common.exceptions.GenieExceptionpublic void getFile(@NotBlank(message="Source file path cannot be empty.")
java.lang.String srcRemotePath,
@NotBlank(message="Destination local path cannot be empty")
java.lang.String dstLocalPath)
throws com.netflix.genie.common.exceptions.GenieException
getFile in interface com.netflix.genie.core.services.FileTransfercom.netflix.genie.common.exceptions.GenieExceptionpublic void putFile(@NotBlank(message="Source local path cannot be empty.")
java.lang.String srcLocalPath,
@NotBlank(message="Destination remote path cannot be empty")
java.lang.String dstRemotePath)
throws com.netflix.genie.common.exceptions.GenieException
putFile in interface com.netflix.genie.core.services.FileTransfercom.netflix.genie.common.exceptions.GenieExceptionpublic long getLastModifiedTime(java.lang.String path)
throws com.netflix.genie.common.exceptions.GenieException
getLastModifiedTime in interface com.netflix.genie.core.services.FileTransfercom.netflix.genie.common.exceptions.GenieException