T - type of items upon which this stage operates@ThreadSafe public class MultiOutputSerializationStage<T> extends BaseStage<T>
ItemSerializer.
This stage requires the following properties be set prior to initialization:
outputStrategyserializer| Modifier and Type | Class and Description |
|---|---|
static interface |
MultiOutputSerializationStage.Destination
Interface implemented by destination objects created by an
MultiOutputSerializationStage.OutputStrategy. |
static interface |
MultiOutputSerializationStage.OutputStrategy<T>
Interface to be implemented by strategy object determining where
an item should be written.
|
| Modifier and Type | Field and Description |
|---|---|
private MultiOutputSerializationStage.OutputStrategy<T> |
outputStrategy
Strategy used to determine where to serialize the item.
|
private ItemSerializer<T> |
serializer
Serializer used to write the collection to the output stream.
|
| Constructor and Description |
|---|
MultiOutputSerializationStage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDestroy() |
protected void |
doExecute(Collection<Item<T>> itemCollection)
Performs the stage processing on the given Item collection.
|
protected void |
doInitialize() |
MultiOutputSerializationStage.OutputStrategy<T> |
getOutputStrategy()
Gets the output strategy function determining where an item will be written.
|
ItemSerializer<T> |
getSerializer()
Gets the serializer used to write item to the output file.
|
void |
setOutputStrategy(MultiOutputSerializationStage.OutputStrategy<T> strategy)
Sets the output strategy function determining where an item will be written.
|
void |
setSerializer(ItemSerializer<T> itemSerializer)
Sets the serializer used to write item to the output file.
|
execute, getCollectionPredicate, setCollectionPredicatesetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedprivate MultiOutputSerializationStage.OutputStrategy<T> outputStrategy
private ItemSerializer<T> serializer
@Nullable public MultiOutputSerializationStage.OutputStrategy<T> getOutputStrategy()
public void setOutputStrategy(@Nonnull MultiOutputSerializationStage.OutputStrategy<T> strategy)
strategy - output strategy function determining where an item will be written@Nullable public ItemSerializer<T> getSerializer()
public void setSerializer(@Nonnull ItemSerializer<T> itemSerializer)
itemSerializer - serializer used to write item to the output fileprotected void doExecute(@Nonnull@NonnullElements Collection<Item<T>> itemCollection) throws StageProcessingException
BaseStageThe stage is guaranteed to be have been initialized and not destroyed when this is invoked.
doExecute in class BaseStage<T>itemCollection - collection to be processedStageProcessingException - thrown if there is an unrecoverable problem when processing the stageprotected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionCopyright © 1999–2016. All rights reserved.