Package zipkin2.storage
Class ITDependenciesHeavy<T extends StorageComponent>
- java.lang.Object
-
- zipkin2.storage.ITStorage<T>
-
- zipkin2.storage.ITDependenciesHeavy<T>
-
@TestInstance(PER_CLASS) public abstract class ITDependenciesHeavy<T extends StorageComponent> extends ITStorage<T>
Base heavy tests forSpanStoreimplementations that support dependency aggregation. Subtypes should create a connection to a real backend, even if that backend is in-process.As these tests create a lot of data, implementations may wish to isolate them from other integration tests such as
ITDependencies
-
-
Constructor Summary
Constructors Constructor Description ITDependenciesHeavy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureStorageForTest(StorageComponent.Builder storage)Configures aStorageComponent.Builderwith parameters for the test being executed.protected booleaninitializeStoragePerTest()Sets the test to initialise theStorageComponentbefore each test rather than the test class.protected voidmanyLinks()Ensure there's no query limit problem around linksprotected voidprocessDependencies(List<Span> spans)Override if dependency processing is a separate job: it should complete before returning from this method.-
Methods inherited from class zipkin2.storage.ITStorage
accept, accept, assertGetTraceReturns, assertGetTraceReturns, assertGetTraceReturnsEmpty, assertGetTracesReturns, assertGetTracesReturns, assertGetTracesReturnsCount, assertGetTracesReturnsEmpty, assertGetTracesReturnsEmpty, blockWhileInFlight, checkStorage, clear, names, newStorageBuilder, requestBuilder, returnsRawSpans, sortTrace, store, testSuffix, traces
-
-
-
-
Method Detail
-
initializeStoragePerTest
protected boolean initializeStoragePerTest()
Description copied from class:ITStorageSets the test to initialise theStorageComponentbefore each test rather than the test class. Generally, tests will run faster if the storage is initialized as infrequently as possibly while clearing data between runs, but for certain backends like Cassandra, it's difficult to reliably clear data between runs and tends to be very slow anyways.- Overrides:
initializeStoragePerTestin classITStorage<T extends StorageComponent>
-
configureStorageForTest
protected void configureStorageForTest(StorageComponent.Builder storage)
Description copied from class:ITStorageConfigures aStorageComponent.Builderwith parameters for the test being executed.- Specified by:
configureStorageForTestin classITStorage<T extends StorageComponent>
-
processDependencies
protected void processDependencies(List<Span> spans) throws Exception
Override if dependency processing is a separate job: it should complete before returning from this method.- Throws:
Exception
-
-