@Override public LocalWaveletContainer create(WaveletNotificationSubscriber notifiee, WaveletName waveletName, String waveDomain) { return new LocalWaveletContainerImpl(waveletName, notifiee, loadWaveletState( waveletLoadExecutor, deltaStore, waveletName, waveletLoadExecutor), waveDomain, storageContinuationExecutor); } };
@Override public LocalWaveletContainer create(WaveletNotificationSubscriber notifiee, WaveletName waveletName, String waveDomain) { return new LocalWaveletContainerImpl(waveletName, notifiee, WaveServerModule.loadWaveletState(waveletLoadExecutor, deltaStore, waveletName, persistExecutor), waveDomain, storageContinuationExecutor); } };
@Override public LocalWaveletContainer create(WaveletNotificationSubscriber notifiee, WaveletName waveletName, String waveDomain) { return new LocalWaveletContainerImpl(waveletName, notifiee, WaveServerModule.loadWaveletState(waveletLoadExecutor, deltaStore, deltaStoreTransient, waveletName, persistExecutor, 100), waveDomain, storageContinuationExecutor, accessController); } };
@Override public LocalWaveletContainer create(WaveletNotificationSubscriber notifiee, WaveletName waveletName, String domain) { WaveletState waveletState; try { waveletState = DeltaStoreBasedWaveletState.create(deltaStore.open(waveletName), persistExecutor); } catch (PersistenceException e) { throw new RuntimeException(e); } return new LocalWaveletContainerImpl(waveletName, notifiee, Futures.immediateFuture(waveletState), DOMAIN, storageContinuationExecutor); } };
@Override public LocalWaveletContainer create(WaveletNotificationSubscriber notifiee, WaveletName waveletName, String domain) { WaveletState waveletState; try { waveletState = DeltaStoreBasedWaveletState.create(deltaStore.open(waveletName), persistExecutor); } catch (PersistenceException e) { throw new RuntimeException(e); } return new LocalWaveletContainerImpl(waveletName, notifiee, Futures.immediateFuture(waveletState), DOMAIN, storageContinuationExecutor); } };
@Override public LocalWaveletContainer create(WaveletNotificationSubscriber notifiee, WaveletName waveletName, String domain) { WaveletState waveletState; try { waveletState = DeltaStoreBasedWaveletState.create(deltaStore.open(waveletName), persistExecutor); } catch (PersistenceException e) { throw new RuntimeException(e); } return new LocalWaveletContainerImpl(waveletName, notifiee, Futures.immediateFuture(waveletState), DOMAIN, storageContinuationExecutor, accessController); } };
@Override public LocalWaveletContainer create(WaveletNotificationSubscriber notifiee, WaveletName waveletName, String domain) { WaveletState waveletState; try { waveletState = DeltaStoreBasedWaveletState.create(deltaStore.open(waveletName), persistExecutor); } catch (PersistenceException e) { throw new RuntimeException(e); } return new LocalWaveletContainerImpl(waveletName, notifiee, Futures.immediateFuture(waveletState), DOMAIN, storageContinuationExecutor, accessController); } };
@Override public void setUp() throws Exception { super.setUp(); WaveletNotificationSubscriber notifiee = mock(WaveletNotificationSubscriber.class); DeltaStore deltaStore = new MemoryDeltaStore(); AccessController localAccessController = mock(AccessController.class); AccessController remoteAccessController = mock(AccessController.class); WaveletState localWaveletState = DeltaStoreBasedWaveletState.create(deltaStore.open(localWaveletName), PERSIST_EXECUTOR); localWavelet = new LocalWaveletContainerImpl(localWaveletName, notifiee, Futures.immediateFuture(localWaveletState), localDomain, STORAGE_CONTINUATION_EXECUTOR, localAccessController); localWavelet.awaitLoad(); WaveletState remoteWaveletState = DeltaStoreBasedWaveletState.create(deltaStore.open(remoteWaveletName), PERSIST_EXECUTOR); remoteWavelet = new RemoteWaveletContainerImpl(remoteWaveletName, notifiee, Futures.immediateFuture(remoteWaveletState), STORAGE_CONTINUATION_EXECUTOR, remoteAccessController); remoteWavelet.awaitLoad(); }
@Override public void setUp() throws Exception { super.setUp(); WaveletNotificationSubscriber notifiee = mock(WaveletNotificationSubscriber.class); DeltaStore deltaStore = new MemoryDeltaStore(); WaveletState localWaveletState = DeltaStoreBasedWaveletState.create(deltaStore.open(localWaveletName), PERSIST_EXECUTOR); localWavelet = new LocalWaveletContainerImpl(localWaveletName, notifiee, Futures.immediateFuture(localWaveletState), localDomain, STORAGE_CONTINUATION_EXECUTOR); localWavelet.awaitLoad(); WaveletState remoteWaveletState = DeltaStoreBasedWaveletState.create(deltaStore.open(remoteWaveletName), PERSIST_EXECUTOR); remoteWavelet = new RemoteWaveletContainerImpl(remoteWaveletName, notifiee, Futures.immediateFuture(remoteWaveletState), STORAGE_CONTINUATION_EXECUTOR); remoteWavelet.awaitLoad(); }
@Override protected void setUp() throws Exception { super.setUp(); addParticipantOp = ProtocolWaveletOperation.newBuilder() .setAddParticipant(AUTHOR) .build(); // An empty blip operation - creates a new document. addBlipOp = ProtocolWaveletOperation.newBuilder().setMutateDocument( MutateDocument.newBuilder().setDocumentId(BLIP_ID).setDocumentOperation( ProtocolDocumentOperation.newBuilder().build())).build(); WaveletNotificationSubscriber notifiee = mock(WaveletNotificationSubscriber.class); DeltaStore deltaStore = new MemoryDeltaStore(); WaveletState waveletState = DeltaStoreBasedWaveletState.create(deltaStore.open(WAVELET_NAME), PERSIST_EXECUTOR); AccessController accessController = mock(AccessController.class); wavelet = new LocalWaveletContainerImpl(WAVELET_NAME, notifiee, Futures.immediateFuture(waveletState), null, STORAGE_CONTINUATION_EXECUTOR, accessController); wavelet.awaitLoad(); }
@Override protected void setUp() throws Exception { super.setUp(); addParticipantOp = ProtocolWaveletOperation.newBuilder() .setAddParticipant(AUTHOR) .build(); // An empty blip operation - creates a new document. addBlipOp = ProtocolWaveletOperation.newBuilder().setMutateDocument( MutateDocument.newBuilder().setDocumentId(BLIP_ID).setDocumentOperation( ProtocolDocumentOperation.newBuilder().build())).build(); WaveletNotificationSubscriber notifiee = mock(WaveletNotificationSubscriber.class); DeltaStore deltaStore = new MemoryDeltaStore(); WaveletState waveletState = DeltaStoreBasedWaveletState.create(deltaStore.open(WAVELET_NAME), PERSIST_EXECUTOR); wavelet = new LocalWaveletContainerImpl(WAVELET_NAME, notifiee, Futures.immediateFuture(waveletState), null, STORAGE_CONTINUATION_EXECUTOR); wavelet.awaitLoad(); }