Package com.yahoo.processing.test
Class ProcessorLibrary
- java.lang.Object
-
- com.yahoo.processing.test.ProcessorLibrary
-
public class ProcessorLibrary extends Object
A collection of processors for test purposes.- Author:
- bratseth
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessorLibrary.AsyncDataProcessingInitiator
Registers an async processing of the chain given in the constructor on completion of the data in the responsestatic class
ProcessorLibrary.BlockingSplitter
Multiples the amount of data returned by parallelism by performing parallel executions of the rest of the chainstatic class
ProcessorLibrary.CombineData
Makes some modifications to the request, passes it on and finally removes one data item from the responsestatic class
ProcessorLibrary.DataCounter
Adds a data element containing the (recursive) count of concrete (non-list) data elements in the responsestatic class
ProcessorLibrary.DataSource
Produces 3 pieces of string datastatic class
ProcessorLibrary.EagerReturnFederator
A federator which supports returning frozen data from each chain before the response is returned.static class
ProcessorLibrary.Echo
A processor which on invocation prints the string given on constructionstatic class
ProcessorLibrary.ErrorAdder
A processor which adds an ErrorMessage to the request of the top level data of each returned response.static class
ProcessorLibrary.Federator
static class
ProcessorLibrary.FutureDataSource
static class
ProcessorLibrary.Get6DataItems
Sends the request multiple times to get at least 6 pieces of datastatic class
ProcessorLibrary.ListenableFutureDataSource
Allows waiting for that request to happen.static class
ProcessorLibrary.LogValueAdder
Adds (key, value) to the log value trace.static class
ProcessorLibrary.MapData
static class
ProcessorLibrary.RequestCounter
Allows waiting for that request to happen.static class
ProcessorLibrary.StatusSetter
static class
ProcessorLibrary.StreamProcessingInitiator
Registers a chain to be invoked each time new data becomes available in the first child liststatic class
ProcessorLibrary.StringData
static class
ProcessorLibrary.StringDataAdder
A processor which adds a StringData item containing the string given in the constructor to every responsestatic class
ProcessorLibrary.StringDataListAdder
A processor which adds a List of StringData items containing the strings given in the constructor to every responsestatic class
ProcessorLibrary.Trace
Adds a the given trace message at the given trace levelstatic class
ProcessorLibrary.UnorderedArrayDataList
-