T - type of item which this stage processes@ThreadSafe public class StatusMetadataLoggingStage<T> extends AbstractItemMetadataSelectionStage<T>
| Constructor and Description |
|---|
StatusMetadataLoggingStage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(Collection<Item<T>> itemCollection,
Item<T> matchingItem,
Map<Class<? extends ItemMetadata>,List<? extends ItemMetadata>> matchingMetadata)
Performs the stage's logic on the given item that contained metadata of the given type.
|
private void |
logErrors(String itemId,
List<? extends ItemMetadata> statuses)
Logs error messages.
|
private void |
logInfos(String itemId,
List<? extends ItemMetadata> statuses)
Logs info messages.
|
private void |
logWarnings(String itemId,
List<? extends ItemMetadata> statuses)
Logs warning messages.
|
doDestroy, doExecute, getItemIdentificationStrategy, getSelectionRequirements, setIdentificationStrategy, setSelectionRequirementsexecute, getCollectionPredicate, setCollectionPredicatesetIddoInitialize, getIddestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedprivate final Logger log
protected void doExecute(@Nonnull@NonnullElements Collection<Item<T>> itemCollection, @Nonnull Item<T> matchingItem, @Nonnull@NonnullElements Map<Class<? extends ItemMetadata>,List<? extends ItemMetadata>> matchingMetadata) throws StageProcessingException
doExecute in class AbstractItemMetadataSelectionStage<T>itemCollection - current item collectionmatchingItem - matching itemmatchingMetadata - all the ItemMetadata instances that match a selection criteriaStageProcessingException - thrown if there is a problem processing the itemprivate void logInfos(@Nonnull String itemId, @Nonnull@NonnullElements List<? extends ItemMetadata> statuses)
itemId - ID of the itemstatuses - status messages to logprivate void logWarnings(@Nonnull String itemId, @Nonnull@NonnullElements List<? extends ItemMetadata> statuses)
itemId - ID of the itemstatuses - status messages to logprivate void logErrors(@Nonnull String itemId, @Nonnull@NonnullElements List<? extends ItemMetadata> statuses)
itemId - ID of the itemstatuses - status messages to logCopyright © 1999–2016. All rights reserved.