Class HobbitAPI
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.hobbit.HobbitAPI
Provides a way to interact with HOBBIT.
Especially to retive the log files produced in HOBBIT.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBenchmarkLog(String experimentID) getSystemLog(String experimentID) private static StringmakeRequest(String pathURL, String request, String payload) private static StringmakeRequestGet(String pathURL) private static StringmakeRequestPost(String pathURL, String payload) parseJsonLog(com.fasterxml.jackson.databind.JsonNode rootNode) parseJsonLog(File f) parseJsonLog(String json) static voidprintBenchmarkLog(String experimentID) static voidstatic voidprintSystemLog(String experimentID) static StringrunBenchmarkAnatomy(String systemUrl, String systemName) static voidsaveBenchmarkLog(String experimentID, File f) static voidsaveSystemAndBenchmarkLog(String experimentID, File directory) static voidsaveSystemAndBenchmarkLog(String experimentID, String directory) static voidsaveSystemLog(String experimentID, File f) static voidsetAccessToken(String _accessToken) static voidsetAccessTokenByCredentials(String username, String password) static voidstatic voidwaitForResults(String experimentID)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
newline
-
mapper
private static final com.fasterxml.jackson.databind.ObjectMapper mapper -
baseHobbitURL
-
accessToken
-
-
Constructor Details
-
HobbitAPI
public HobbitAPI()
-
-
Method Details
-
setAccessToken
-
setAccessTokenByCredentials
-
setAccessTokenByMavenCredentials
public static void setAccessTokenByMavenCredentials() -
makeRequest
private static String makeRequest(String pathURL, String request, String payload) throws IOException - Throws:
IOException
-
makeRequestGet
- Throws:
IOException
-
makeRequestPost
- Throws:
IOException
-
parseJsonLog
- Throws:
IOException
-
parseJsonLog
- Throws:
IOException
-
parseJsonLog
private static List<String> parseJsonLog(com.fasterxml.jackson.databind.JsonNode rootNode) throws IOException - Throws:
IOException
-
getSystemLog
- Throws:
IOException
-
getBenchmarkLog
- Throws:
IOException
-
printSystemLog
-
printBenchmarkLog
-
saveBenchmarkLog
-
saveSystemLog
-
saveSystemAndBenchmarkLog
-
saveSystemAndBenchmarkLog
-
printLog
-
waitForResults
- Throws:
IOException
-
runBenchmarkAnatomy
- Throws:
IOException
-