Class SVNUpdater
- java.lang.Object
-
- org.gcube.dataanalysis.dataminer.poolmanager.util.SVNUpdater
-
- Direct Known Subclasses:
SVNUpdaterProduction,SVNUpdaterStaging
public abstract class SVNUpdater extends Object
Created by ggiammat on 5/9/17.
-
-
Constructor Summary
Constructors Constructor Description SVNUpdater(Configuration configuration)
-
Method Summary
-
-
-
Constructor Detail
-
SVNUpdater
public SVNUpdater(Configuration configuration) throws org.tmatesoft.svn.core.SVNException
- Throws:
org.tmatesoft.svn.core.SVNException
-
-
Method Detail
-
updateSVNAlgorithmList
public boolean updateSVNAlgorithmList(Algorithm algorithm, String targetVRE, String category, String algorithm_type, String user)
-
updateAlgorithmFiles
public void updateAlgorithmFiles(File a) throws org.tmatesoft.svn.core.SVNException, SVNCommitException
- Throws:
org.tmatesoft.svn.core.SVNExceptionSVNCommitException
-
putFile
public void putFile(FileInputStream fileInputSreeam, String destinationFolder, String fileName) throws org.tmatesoft.svn.core.SVNException, SVNCommitException
- Throws:
org.tmatesoft.svn.core.SVNExceptionSVNCommitException
-
updateFile
public void updateFile(FileInputStream fileInputStream, String destinationFolder, String fileName) throws org.tmatesoft.svn.core.SVNException, SVNCommitException
- Throws:
org.tmatesoft.svn.core.SVNExceptionSVNCommitException
-
fileExists
public boolean fileExists(String path, long revision) throws org.tmatesoft.svn.core.SVNException
- Throws:
org.tmatesoft.svn.core.SVNException
-
generateAlgorithmEntry
public String generateAlgorithmEntry(Algorithm algorithm, String targetVRE, String category, String algorithm_type) throws ParseException
- Throws:
ParseException
-
getUndefinedDependencies
public Collection<String> getUndefinedDependencies(String file, Collection<Dependency> deps) throws GenericException
- Throws:
GenericException
-
checkIfAvaialable
public boolean checkIfAvaialable(String file, Collection<Dependency> deps) throws org.tmatesoft.svn.core.SVNException
- Throws:
org.tmatesoft.svn.core.SVNException
-
updateSVN
public void updateSVN(String file, Collection<Dependency> deps)
-
md5
public static String md5(byte[] contents)
-
getTimeZone
public String getTimeZone() throws ParseException
- Throws:
ParseException
-
main
public static void main(String[] args) throws org.tmatesoft.svn.core.SVNException, ParseException
- Throws:
org.tmatesoft.svn.core.SVNExceptionParseException
-
-