Skip to content

Commit

Permalink
Track latest aggregator snapshot. Add statistics generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jul 13, 2011
1 parent 4e444a4 commit 9abee64
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<bean id="uk_filterDeletedEntities" class="net.shibboleth.metadata.dom.XPathFilteringStage"
init-method="initialize" lazy-init="true">
<property name="id" value="uk_filterDeletedEntities"/>
<constructor-arg name="expression" value="//ukfedlabel:DeletedEntity"/>
<constructor-arg name="context" ref="commonNamespaces"/>
<property name="xpathExpression" value="//ukfedlabel:DeletedEntity"/>
<property name="namespaceContext" ref="commonNamespaces"/>
</bean>


Expand Down
52 changes: 49 additions & 3 deletions mdx/uk/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,47 @@
</property>
</bean>

<!--
*********************************************
*** ***
*** S T A T I S T I C S O U T P U T ***
*** ***
*********************************************
-->

<bean id="serializeStatistics" class="net.shibboleth.metadata.pipeline.SerializationStage"
init-method="initialize" lazy-init="true">
<property name="id" value="serializeStatistics"/>
<property name="serializer" ref="serializer"/>
<property name="outputFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/uk/ukfederation-stats.html"/>
</bean>
</property>
</bean>

<bean id="uk_generateStatistics" class="net.shibboleth.metadata.dom.XSLTransformationStage"
init-method="initialize" lazy-init="true">
<property name="id" value="uk_generateStatistics"/>
<property name="xslResource">
<bean class="org.opensaml.util.resource.FilesystemResource">
<constructor-arg value="#{ systemProperties['basedir'] }/build/statistics.xsl"/>
</bean>
</property>
</bean>

<bean id="uk_statisticsPipeline" class="net.shibboleth.metadata.pipeline.SimplePipeline"
init-method="initialize" lazy-init="true">
<property name="id" value="uk_statisticsPipeline"/>
<property name="stages">
<list>
<ref bean="assemble"/>
<ref bean="uk_generateStatistics"/>
<ref bean="serializeStatistics"/>
</list>
</property>
</bean>

<!--
*************************************
*** ***
Expand All @@ -346,7 +387,8 @@
<ref bean="uk_registeredEntities"/>

<!--
Fork into a new pipeline for the export aggregate.
Fork into new pipelines for the export aggregate and for
the registrar statistics.
The export aggregate only includes UK-registered entities,
so the fork needs to occur before any others are introduced.
Expand All @@ -355,15 +397,19 @@
metadata as closely as possible, so the fork must happen before
too many UK-specific transformations are performed.
-->
<bean id="exportDemux" class="net.shibboleth.metadata.pipeline.PipelineDemultiplexerStage"
<bean id="registrarDemux" class="net.shibboleth.metadata.pipeline.PipelineDemultiplexerStage"
init-method="initialize" lazy-init="true">
<property name="id" value="exportDemux"/>
<property name="id" value="registrarDemux"/>
<property name="pipelineAndSelectionStrategies">
<list>
<bean class="org.opensaml.util.Pair">
<constructor-arg ref="uk_exportPipeline"/>
<constructor-arg ref="uk_exportSelector"/>
</bean>
<bean class="org.opensaml.util.Pair">
<constructor-arg ref="uk_statisticsPipeline"/>
<constructor-arg ref="everythingSelector"/>
</bean>
</list>
</property>
<property name="waitingForPipelines" value="true"/>
Expand Down
Binary file modified tools/ukf-mda/ukf-mda-0.6-SNAPSHOT.jar
Binary file not shown.

0 comments on commit 9abee64

Please sign in to comment.