You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/11/07 09:11:51 UTC

[jira] [Issue Comment Edited] (STANBOL-371) Change Jobmanager api to take care of chains

    [ https://issues.apache.org/jira/browse/STANBOL-371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145280#comment-13145280 ] 

Rupert Westenthaler edited comment on STANBOL-371 at 11/7/11 8:10 AM:
----------------------------------------------------------------------

I think it would be better to implement this by

* supporting multiple JobManger services
* add an implementation that supports chains (there might be several different)
* add the Chain(s) supported by an instance as OSGI property (e.g. "org.apache.stanbol.enhancer.chain")

Clients that want to enhance a ContentIem by using a specific chain could than use a Filter like:

    (& 
        (objectClass=org.apache.stanbol.enhancer.servicesapi.JobManager)
        (org.apache.stanbol.enhancer.chain={chain-name})
    )

this would inject/find/track the JobManager instance for a specific chain.

WDYT


BTW: I am currently investigating how to implement a JobManager that supports asynchronous processing by using the OSGI Wire interface (support for consumer/producer pattern with OSGI components as consumer and producers). This JobManager could also support simple "chains" (configured sets of EnhancementEngines orderd by the "ordering" properties).
                
      was (Author: rwesten):
    I think it would be better to implement this by

* supporting multiple JobManger services
* add an implementation that supports chains (there might be several different)
* add the Chain(s) supported by an instance as OSGI property (e.g. "org.apache.stanbol.enhancer.chain")

Clients that want to enhance a ContentIem by using a specific chain could than use a Filter like:

    (& 
        (objectClass=org.apache.stanbol.enhancer.servicesapi.JobManager)
        (org.apache.stanbol.enhancer.chain={chain-name})
    )

this would inject/find/track the JobManager instance for a specific chain.

WDYT

                  
> Change Jobmanager api to take care of chains
> --------------------------------------------
>
>                 Key: STANBOL-371
>                 URL: https://issues.apache.org/jira/browse/STANBOL-371
>             Project: Stanbol
>          Issue Type: Sub-task
>          Components: Enhancer
>            Reporter: Florent ANDRE
>
> In order to allow jobmanager to act depending on the chain, the following api method will be added to JobManager : 
> void enhanceContent(ContentItem ci, String chain) throws EngineException;
> Have to see if 
> void enhanceContent(ContentItem ci) throws EngineException; 
> will be deprecated.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira