gov.nist.toolkit.installation.server.Installation.simDbFile()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中gov.nist.toolkit.installation.server.Installation.simDbFile()方法的一些代码示例,展示了Installation.simDbFile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Installation.simDbFile()方法的具体详情如下:
包路径:gov.nist.toolkit.installation.server.Installation
类名称:Installation
方法名:simDbFile

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);

相关文章