Package zipkin2.storage
Class ITStorage<T extends StorageComponent>
- java.lang.Object
- 
- zipkin2.storage.ITStorage<T>
 
- 
- Direct Known Subclasses:
- ITAutocompleteTags,- ITDependencies,- ITSearchEnabledFalse,- ITServiceAndSpanNames,- ITSpanStore,- ITStrictTraceIdFalse,- ITTraces
 
 @TestInstance(PER_CLASS) public abstract class ITStorage<T extends StorageComponent> extends Object Base class for allStorageComponentintegration tests.
- 
- 
Constructor SummaryConstructors Constructor Description ITStorage()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaccept(List<Span> spans)protected voidaccept(Span... spans)protected voidblockWhileInFlight()protected abstract voidclear()Clears store between tests.protected abstract 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 ServiceAndSpanNamesnames()protected abstract StorageComponent.BuildernewStorageBuilder(org.junit.jupiter.api.TestInfo testInfo)Returns a newStorageComponent.Builderfor connecting to the backend for the test.protected SpanStorestore()protected Tracestraces()
 
- 
- 
- 
Field Detail- 
storageprotected T extends StorageComponent storage 
 
- 
 - 
Method Detail- 
initializeStoragePerTestprotected boolean initializeStoragePerTest() Sets 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.
 - 
newStorageBuilderprotected abstract StorageComponent.Builder newStorageBuilder(org.junit.jupiter.api.TestInfo testInfo) Returns a newStorageComponent.Builderfor connecting to the backend for the test.
 - 
configureStorageForTestprotected abstract void configureStorageForTest(StorageComponent.Builder storage) Configures aStorageComponent.Builderwith parameters for the test being executed.
 - 
tracesprotected Traces traces() 
 - 
storeprotected SpanStore store() 
 - 
namesprotected ServiceAndSpanNames names() 
 - 
acceptprotected final void accept(Span... spans) throws IOException - Throws:
- IOException
 
 - 
acceptprotected final void accept(List<Span> spans) throws IOException - Throws:
- IOException
 
 - 
blockWhileInFlightprotected void blockWhileInFlight() 
 
- 
 
-