Back to index
Back to module hivemind.lib

Schema hivemind.lib.Pipeline

Used with the PipelineFactory to define the filters and optional terminator for a pipeline.
Element filter
Defines a filter in terms of an existing service.
Attribute service-id Required
Translatorservice
The id of a service implementing the pipeline's filter interface.
Attribute before Optional
Translatorid-list
A list of ids of other contributed filters that should precede this filter in the pipeline.
Attribute after Optional
Translatorid-list
A list of ids of other contributed filters that should follow this filter in the pipeline.

Conversion Rules

  • create-object ( class=org.apache.hivemind.lib.pipeline.FilterContribution )
  • read-attribute ( attribute=before property=before )
  • read-attribute ( attribute=after property=after )
  • read-attribute ( attribute=service-id property=filter )
  • read-attribute ( attribute=service-id property=name translator=qualified-id )
  • invoke-parent ( method=addElement )
Element filter-object
Defines a filter in terms of an object.
Attribute name Required
Translatorqualified-id
A name for the filter that is used when setting the order of the filters.
Attribute object Required
Translatorobject
The object to act as a filter.
Attribute before Optional
Translatorid-list
A list of ids of other contributed filters that should precede this filter in the pipeline.
Attribute after Optional
Translatorid-list
A list of ids of other contributed filters that should follow this filter in the pipeline.

Conversion Rules

  • conversion ( class=org.apache.hivemind.lib.pipeline.FilterContribution )
    {
    • map ( attribute=object property=filter )
    }
Element terminator
A service, implementing the pipeline's service interface, that is invoked by the final filter in the pipeline.
Attribute service-id Required
Translatorservice

Conversion Rules

  • conversion ( class=org.apache.hivemind.lib.pipeline.TerminatorContribution )
    {
    • map ( attribute=service-id property=terminator )
    }
Element terminator-object
An object, implementing the pipeline's service interface, that is invoked by the final filter in the pipeline.
Attribute object Required
Translatorobject

Conversion Rules

  • conversion ( class=org.apache.hivemind.lib.pipeline.TerminatorContribution )
    {
    • map ( attribute=object property=terminator )
    }

Back to index
Back to module hivemind.lib