本文整理了Java中gov.nist.toolkit.installation.server.Installation.simDbFile()
方法的一些代码示例,展示了Installation.simDbFile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Installation.simDbFile()
方法的具体详情如下:
包路径:gov.nist.toolkit.installation.server.Installation
类名称:Installation
方法名:simDbFile
暂无
代码示例来源:origin: usnistgov/iheos-toolkit2
public File fhirSimDbFile(TestSession testSession) {
return simDbFile(testSession);
}
代码示例来源:origin: usnistgov/iheos-toolkit2
/**
* @return a {@link File} object representing the simdb directory, that is,
* the directory in which information for simulators is maintained on disc.
*/
public File simDbFile(TestSession testSession) {
if (testSession == null) throw new ToolkitRuntimeException("TestSession is null");
return new File(simDbFile(), testSession.getValue());
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public List<TestSession> getTestSessions() {
Set<TestSession> ts = new HashSet<>();
File tlsFile = testLogCacheDir();
if (tlsFile.exists()) {
for (File tlFile : tlsFile.listFiles()) {
if (tlFile.isDirectory() && !tlFile.getName().startsWith("."))
ts.add(new TestSession(tlFile.getName()));
}
}
tlsFile = simDbFile();
if (tlsFile.exists()) {
for (File tlFile : tlsFile.listFiles()) {
if (tlFile.isDirectory() && !tlFile.getName().startsWith("."))
ts.add(new TestSession(tlFile.getName()));
}
}
tlsFile = actorsDir();
if (tlsFile.exists()) {
for (File tlFile : tlsFile.listFiles()) {
if (tlFile.isDirectory() && !tlFile.getName().startsWith("."))
ts.add(new TestSession(tlFile.getName()));
}
}
List<TestSession> testSessions = new ArrayList<>();
testSessions.addAll(ts);
return testSessions;
}
代码示例来源: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
throw new Exception("invalid simulator id [" + simulatorName + "]");
simDbFile = Installation.instance().simDbFile(simid.getTestSession());
try {
simConfig = GenericSimulatorFactory.getSimConfig(simid);
内容来源于网络,如有侵权,请联系作者删除!