net.shibboleth.metadata.pipeline
Class CountingStage<ItemType extends net.shibboleth.metadata.Item<?>>
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.CountingStage<ItemType>
- All Implemented Interfaces:
- net.shibboleth.metadata.pipeline.Stage<ItemType>, net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.IdentifiableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent
public class CountingStage<ItemType extends net.shibboleth.metadata.Item<?>>
- extends net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
- implements net.shibboleth.metadata.pipeline.Stage<ItemType>
Stages that counts the number of times it was invoked and the number of items it has observed.
|
Field Summary |
private int |
invocationCount
Number of times the stage was invoked. |
private int |
itemCount
Number of items observed. |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent |
doInitialize, getId, setId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent |
destroy, doDestroy, initialize, isDestroyed, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent |
destroy, isDestroyed |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent |
getId |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent |
initialize, isInitialized |
invocationCount
private int invocationCount
- Number of times the stage was invoked.
itemCount
private int itemCount
- Number of items observed.
CountingStage
public CountingStage()
- Constructor.
getInvocationCount
public int getInvocationCount()
- Gets the number of times the stage was invoked.
- Returns:
- number of times the stage was invoked
getItemCount
public int getItemCount()
- Gets the number of items observed.
- Returns:
- number of items observed
execute
public void execute(Collection<ItemType> metadataCollection)
throws net.shibboleth.metadata.pipeline.StageProcessingException
-
- Specified by:
execute in interface net.shibboleth.metadata.pipeline.Stage<ItemType extends net.shibboleth.metadata.Item<?>>
- Throws:
net.shibboleth.metadata.pipeline.StageProcessingException
Copyright © 1999-2012. All Rights Reserved.