Class FtpStorage
- java.lang.Object
-
- de.unirostock.sems.ModelCrawler.storage.ModelStorage
-
- de.unirostock.sems.ModelCrawler.storage.FileBasedStorage
-
- de.unirostock.sems.ModelCrawler.storage.FtpStorage
-
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
public class FtpStorage extends FileBasedStorage
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.unirostock.sems.ModelCrawler.storage.FileBasedStorage
FileBasedStorage.VersionInfo
-
Nested classes/interfaces inherited from class de.unirostock.sems.ModelCrawler.storage.ModelStorage
ModelStorage.Types
-
-
Field Summary
-
Fields inherited from class de.unirostock.sems.ModelCrawler.storage.FileBasedStorage
config, httpAccessPath
-
-
Constructor Summary
Constructors Constructor Description FtpStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnection()
protected InputStream
getFile(String path)
String
getFtpPass()
URL
getFtpUrl()
String
getFtpUser()
void
initConnection()
protected void
linkFiles(String sourcePath, String targetPath)
protected void
makeDirs(String path)
void
setFtpPass(String ftpPass)
void
setFtpUrl(URL ftpUrl)
void
setFtpUser(String ftpUser)
protected void
storeFile(InputStream source, String path)
protected void
storeFile(InputStream source, String path, boolean override)
-
Methods inherited from class de.unirostock.sems.ModelCrawler.storage.FileBasedStorage
close, connect, getHttpAccessPath, linkModelVersion, setHttpAccessPath, storeModel
-
Methods inherited from class de.unirostock.sems.ModelCrawler.storage.ModelStorage
storeModelChangeSet
-
-
-
-
Method Detail
-
initConnection
public void initConnection() throws StorageException
- Specified by:
initConnection
in classFileBasedStorage
- Throws:
StorageException
-
closeConnection
public void closeConnection()
- Specified by:
closeConnection
in classFileBasedStorage
-
makeDirs
protected void makeDirs(String path) throws StorageException
- Specified by:
makeDirs
in classFileBasedStorage
- Throws:
StorageException
-
storeFile
protected void storeFile(InputStream source, String path)
- Specified by:
storeFile
in classFileBasedStorage
-
getFile
protected InputStream getFile(String path)
- Specified by:
getFile
in classFileBasedStorage
-
linkFiles
protected void linkFiles(String sourcePath, String targetPath) throws StorageException
- Specified by:
linkFiles
in classFileBasedStorage
- Throws:
StorageException
-
getFtpUrl
public URL getFtpUrl()
-
setFtpUrl
public void setFtpUrl(URL ftpUrl)
-
getFtpUser
public String getFtpUser()
-
setFtpUser
public void setFtpUser(String ftpUser)
-
getFtpPass
public String getFtpPass()
-
setFtpPass
public void setFtpPass(String ftpPass)
-
storeFile
protected void storeFile(InputStream source, String path, boolean override) throws StorageException
- Specified by:
storeFile
in classFileBasedStorage
- Throws:
StorageException
-
-