本文整理了Java中gov.nist.toolkit.installation.server.Installation.testLogCache()
方法的一些代码示例,展示了Installation.testLogCache()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Installation.testLogCache()
方法的具体详情如下:
包路径:gov.nist.toolkit.installation.server.Installation
类名称:Installation
方法名:testLogCache
暂无
代码示例来源:origin: usnistgov/iheos-toolkit2
public File orchestrationCache(TestSession testSession, String actorType) {
return new File(new File(testLogCache(testSession), "orchestration"), actorType);
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public File testLogCache(TestSession testSession) {
return new File(testLogCache(), testSession.getValue());
}
代码示例来源:origin: usnistgov/iheos-toolkit2
/**
* Orchestration is being used to run background services (like a FHIR server) that need
* to be referenced by utilities. But, tests use TestlogCache and utilites use sessionCache
* so there is a search problem. This builds a LogRepository (which is actually a form
* of accessor function TO a log respository) representing a testSession (aka user). This is
* turning into an element of a multipart search space for logs to support the UseReport
* facility in the test client.
* @param user
* @param id
* @return
* @throws IOException
*/
static public LogRepository getLogRepository(TestSession testSession, TestInstance id) throws IOException {
return LogRepositoryFactory.
getLogRepository(
Installation.instance().testLogCache(testSession),
testSession,
LogIdIOFormat.JAVA_SERIALIZATION,
LogIdType.SPECIFIC_ID,
id
);
}
}
代码示例来源:origin: usnistgov/iheos-toolkit2
synchronized public static void reinitialize(File location) throws XdsException {
logger.info("Reinitialize External Cache to " + location);
Installation.instance().externalCache(null); // so that it can be updated
String error = initialize(location);
if (error != null) throw new XdsException(error, "");
File environment = Installation.instance().environmentFile();
// initialize environment
initializeExternalCacheWithInternalData(location);
// initialize test log cache
Installation.instance().testLogCache(TestSession.DEFAULT_TEST_SESSION).mkdirs();
// initialize SimDb
Installation.instance().simDbFile(TestSession.DEFAULT_TEST_SESSION).mkdirs();
// initialize actors
Installation.instance().actorsDir(TestSession.DEFAULT_TEST_SESSION).mkdirs();
}
代码示例来源:origin: usnistgov/iheos-toolkit2
private void initializeLogRepository(Session session) throws IOException {
if (session.transactionSettings.logRepository == null) {
if (testRunType == TestRunType.UTILITY) {
logger.info("*** logRepository user: " + session.getId());
session.transactionSettings.logRepository =
LogRepositoryFactory.
getLogRepository(
Installation.instance().sessionCache(),
session.getId(),
LogIdIOFormat.JAVA_SERIALIZATION,
LogIdType.TIME_ID,
null);
} else if (testRunType == TestRunType.TEST) {
logger.info("*** logRepository user (sessionName): " + session.getTestSession());
session.transactionSettings.logRepository =
LogRepositoryFactory.
getLogRepository(
Installation.instance().testLogCache(session.getTestSession()),
session.getTestSession(),
LogIdIOFormat.JAVA_SERIALIZATION,
LogIdType.SPECIFIC_ID,
null);
}
}
}
代码示例来源:origin: usnistgov/iheos-toolkit2
session.transactionSettings.logRepository = LogRepositoryFactory.
getLogRepository(
Installation.instance().testLogCache(mesaTestSession),
mesaTestSession,
LogIdIOFormat.JAVA_SERIALIZATION,
内容来源于网络,如有侵权,请联系作者删除!