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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBenchmarkLog
(String experimentID) getSystemLog
(String experimentID) private static String
makeRequest
(String pathURL, String request, String payload) private static String
makeRequestGet
(String pathURL) private static String
makeRequestPost
(String pathURL, String payload) parseJsonLog
(com.fasterxml.jackson.databind.JsonNode rootNode) parseJsonLog
(File f) parseJsonLog
(String json) static void
printBenchmarkLog
(String experimentID) static void
static void
printSystemLog
(String experimentID) static String
runBenchmarkAnatomy
(String systemUrl, String systemName) static void
saveBenchmarkLog
(String experimentID, File f) static void
saveSystemAndBenchmarkLog
(String experimentID, File directory) static void
saveSystemAndBenchmarkLog
(String experimentID, String directory) static void
saveSystemLog
(String experimentID, File f) static void
setAccessToken
(String _accessToken) static void
setAccessTokenByCredentials
(String username, String password) static void
static void
waitForResults
(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
-