Package org.openrdf.sail.memory

Examples of org.openrdf.sail.memory.MemoryStore.shutDown()


    else if ("RDFS-VP".equals(entailment)) {
      sail = new ForwardChainingRDFSInferencer(sail);
      sail = new DirectTypeHierarchyInferencer(sail);
    }
    else {
      sail.shutDown();
      fail("Invalid value for entailment level:" + entailment);
    }

    Repository dataRep = new SailRepository(sail);
    dataRep.initialize();
View Full Code Here


                }
            } finally {
                streamingSail.shutDown();
            }
        } finally {
            workingSail.shutDown();
        }
    }

    private class MockUdpTransactionSail extends RDFTransactionSail {
        private final PrintStream ps;
View Full Code Here

                }
            } finally {
                streamingSail.shutDown();
            }
        } finally {
            workingSail.shutDown();
        }
    }
}
View Full Code Here

            sc.rollback();
            sc.close();
        }

        sail.shutDown();
        baseSail.shutDown();
    }

    ////////////////////////////////////////////////////////////////////////////

    // Around 14,000 t/s on the reference machine.
View Full Code Here

                stressTest(p, 1000);
            } finally {
                store.shutDown();
            }
        } finally {
            sail.shutDown();
        }
    }

    // Reaches a peak of around 2,100 t/s and remains there indefinitely
    private void testTransientMemoryPersister() throws Exception {
View Full Code Here

                }
            } finally {
                store.shutDown();
            }
        } finally {
            sail.shutDown();
        }
    }

    // Around 900 t/s (up from 500 t/s before omitting read-operation logging)
    private void testLoggingTransientMemoryPersister() throws Exception {
View Full Code Here

                        }
                    } finally {
                        sail.shutDown();
                    }
                } finally {
                    tSail.shutDown();
                }


            } finally {
                //rc.rollback();
View Full Code Here

                }
            } finally {
                sail.shutDown();
            }
        } finally {
            transientSail.shutDown();
        }
    }

    private void testSocketBasedLoggingTransientMemoryPersister() throws Exception {
        Sail baseSail = new MemoryStore();
View Full Code Here

                }
            } finally {
                streamingSail.shutDown();
            }
        } finally {
            workingSail.shutDown();
        }
    }

    ////////////////////////////////////////////////////////////////////////////
View Full Code Here

        rc.close();
        repo.shutDown();
        ripple.shutDown();
        linkedData.shutDown();
        storage.shutDown();
    }

    public static void main(final String[] args) throws SailException {
        try {
            runDemo();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.