Examples of MemoryStore


Examples of org.apache.jackrabbit.oak.plugins.segment.memory.MemoryStore

    private Session session;
    private VersionManager vMgr;

    @Before
    public void before() throws Exception {
        store = new SegmentNodeStore(new MemoryStore());
        repo = new Jcr(store).createRepository();
        session = repo.login(new SimpleCredentials("admin", "admin".toCharArray()));
        vMgr = session.getWorkspace().getVersionManager();
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.segment.memory.MemoryStore

public class CheckpointTest {

    @Test
    public void testCheckpoint() throws CommitFailedException {
        SegmentNodeStore store = new SegmentNodeStore(new MemoryStore());
        addTestNode(store, "test-checkpoint");
        verifyNS(store, true);
        rmTestNode(store, "test-checkpoint");
        verifyNS(store, false);
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.segment.memory.MemoryStore

public class MergeTest {

    @Test
    public void testSequentialMerge() throws CommitFailedException {
        NodeStore store = new SegmentNodeStore(new MemoryStore());

        assertFalse(store.getRoot().hasProperty("foo"));
        assertFalse(store.getRoot().hasProperty("bar"));

        NodeBuilder a = store.getRoot().builder();
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.segment.memory.MemoryStore

        assertTrue(store.getRoot().hasProperty("bar"));
    }

    @Test
    public void testOptimisticMerge() throws CommitFailedException {
        NodeStore store = new SegmentNodeStore(new MemoryStore());

        NodeBuilder a = store.getRoot().builder();
        a.setProperty("foo", "abc");

        NodeBuilder b = store.getRoot().builder();
View Full Code Here

Examples of org.apache.servicemix.store.memory.MemoryStore

    protected void configureContainer() throws Exception {
        jbi.setFlowName("st");
    }
   
    protected void configurePattern(EIPEndpoint endpoint) {
        endpoint.setStore(new MemoryStore(new IdGenerator()) {
            public void store(String id, Object exchange) throws IOException {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                new ObjectOutputStream(baos).writeObject(exchange);
                super.store(id, exchange);
            }
View Full Code Here

Examples of org.apache.tuscany.sca.core.store.MemoryStore

    protected ScopeContainer container;
    protected MemoryStore store;
    protected RuntimeComponent component;

    protected void createRuntime() {
        store = new MemoryStore(EasyMock.createNiceMock(StoreMonitor.class));
        component = EasyMock.createMock(RuntimeComponent.class);
        container = new ConversationalScopeContainer(store, component);
    }
View Full Code Here

Examples of org.openrdf.sail.memory.MemoryStore

  }

  @Override
  protected Repository newRepository() {
    Federation sail = new Federation();
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.addMember(new SailRepository(new MemoryStore()));
    return new SailRepository(new DatasetSail(sail));
  }
View Full Code Here

Examples of org.openrdf.sail.memory.MemoryStore

    // Note: adding more members, combined with the round-robin algorithm for
    // distributing new statements, cause test failures due to the fact that
    // the inferencing happens locally.

    Federation sail = new Federation();
    sail.addMember(new SailRepository(new ForwardChainingRDFSInferencer(new MemoryStore())));
    return new SailRepository(sail);
  }
View Full Code Here

Examples of org.openrdf.sail.memory.MemoryStore

  @Override
  protected Repository createRepository()
    throws IOException
  {
    Federation sail = new Federation();
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.addMember(new SailRepository(new MemoryStore()));
    return new SailRepository(sail);
  }
View Full Code Here

Examples of org.openrdf.sail.memory.MemoryStore

  }

  protected void setUp()
    throws Exception
  {
    SailRepository ref = new SailRepository(new MemoryStore());
    ref.initialize();
    reference = ref.getConnection();
    Federation federation = new Federation();
    SailRepository repo = new SailRepository(federation);
    repo.initialize();
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.