org.openrdf.repository.Repository.shutDown()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(123)

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

Repository.shutDown介绍

暂无

代码示例

代码示例来源:origin: blazegraph/database

@Override
protected void tearDown()
  throws Exception
{
  if (dataRep != null) {
    dataRep.shutDown();
    dataRep = null;
  }
}

代码示例来源:origin: apache/marmotta

@Override
public void shutdown() {
  try {
    cacheRepository.shutDown();
  } catch (RepositoryException e) {
    log.error("error while shutting down cache repository", e);
  }
}

代码示例来源:origin: ldp4j/ldp4j

private void shutDownQuietly(Repository repository) {
  if(repository!=null) {
    try {
      repository.shutDown();
    } catch (OpenRDFException e) {
      if(LOGGER.isWarnEnabled()) {
        LOGGER.warn("Could not shutdown internal repository",e);
      }
    }
  }
}

代码示例来源:origin: blazegraph/database

public void tearDown()
  throws Exception
{
  con.close();
  repo.shutDown();
  con = null;
  repo = null;
}

代码示例来源:origin: blazegraph/database

@Override
protected void tearDown()
  throws Exception
{
  if (dataRep != null) {
    dataRep.shutDown();
    dataRep = null;
  }
}

代码示例来源:origin: org.openrdf.sesame/sesame-repository-compliance-base

@Override
protected void tearDown() throws Exception {
  con.close();
  repository.shutDown();
}

代码示例来源:origin: org.openrdf.alibaba/alibaba-sail-federation

public void shutDown()
  throws SailException
{
  for (Repository member : members) {
    try {
      member.shutDown();
    } catch (RepositoryException e) {
      throw new SailException(e);
    }
  }
  executor.shutdown();
}

代码示例来源:origin: com.mysema.rdf/rdfbean-sesame3

@Override
public void close() {
  try {
    initialized = false;
    if (repository != null) {
      repository.shutDown();
    }
  } catch (StoreException e) {
    throw new RepositoryException(e);
  }
}

代码示例来源:origin: usc-isi-i2/Web-Karma

public void close() throws RepositoryException {
  con.close();
  myRepository.shutDown();
}

代码示例来源:origin: blazegraph/database

@Override
protected void tearDown()
  throws Exception
{
  if (dataRep != null) {
    dataRep.shutDown();
    dataRep = null;
  }
  
  if (expectedResultRepo != null) {
    expectedResultRepo.shutDown();
    expectedResultRepo = null;
  }
}

代码示例来源:origin: net.fortytwo.sesametools/repository-sail

protected void shutDownInternal() throws SailException {
    try {
      repository.shutDown();
    } catch (RepositoryException e) {
      throw new SailException(e);
    }
  }
}

代码示例来源:origin: com.mysema.rdf/rdfbean-sesame2

@Override
public void close() {
  try {
    repository.shutDown();
  } catch (org.openrdf.repository.RepositoryException e) {
    throw new RepositoryException(e);
  }
}

代码示例来源:origin: apache/marmotta

@AfterClass
public static void teardown() throws RepositoryException {
  repositorySync1.shutDown();
  repositorySync2.shutDown();
  repositoryAsync1.shutDown();
  repositoryAsync2.shutDown();
}

代码示例来源:origin: org.openrdf.sesame/sesame-repository-compliance-base

@Override
protected void tearDown()
  throws Exception
{
  testCon2.close();
  testCon2 = null;
  testCon.close();
  testCon = null;
  testRepository.shutDown();
  testRepository = null;
  vf = null;
}

代码示例来源:origin: org.openrdf.elmo/elmo-repository

private void destroyUnflushedStatements() throws RepositoryException {
    Repository add = added.getRepository();
    Repository remove = removed.getRepository();
    added.close();
    removed.close();
    add.shutDown();
    remove.shutDown();
  }
}

代码示例来源:origin: blazegraph/database

@After
public void tearDown()
  throws Exception
{
  testCon2.close();
  testCon.close();
  testRepository.shutDown();
}

代码示例来源:origin: blazegraph/database

public void tearDown()
  throws Exception
{
  con.close();
  repo.shutDown();
  con = null;
  repo = null;
}

代码示例来源:origin: cumulusrdf/cumulusrdf

@BeforeClass
public static void finishTest() throws Exception {
  if (EMBEDDED_REPOSITORY_CONNECTION != null) {
    EMBEDDED_REPOSITORY_CONNECTION.close();
  }
    
  if (EMBEDDED_REPOSITORY != null) {
    EMBEDDED_REPOSITORY.shutDown();
  }
}
@BeforeClass

代码示例来源:origin: blazegraph/database

@After
public void tearDown()
  throws Exception
{
  testCon2.close();
  testCon.close();
  testRepository.shutDown();
}

代码示例来源:origin: apache/marmotta

@AfterClass
  public static void dropDatabase() throws RepositoryException, SQLException, SailException {
    assertTrue(store.checkConsistency());
    repository.shutDown();
  }
}

相关文章