org.apache.stanbol.enhancer.jobmanager.event.impl
Class EventJobManagerImpl
java.lang.Object
org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl
- All Implemented Interfaces:
- org.apache.stanbol.enhancer.servicesapi.EnhancementJobManager
@Service
@Properties(value={@Property(name="service.ranking",intValue=0),@Property(name="stanbol.maxEnhancementJobWaitTime",intValue=60000)})
public class EventJobManagerImpl- extends Object
- implements org.apache.stanbol.enhancer.servicesapi.EnhancementJobManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SERVICE_RANKING
public static final int DEFAULT_SERVICE_RANKING
- See Also:
- Constant Field Values
MAX_ENHANCEMENT_JOB_WAIT_TIME
public static final String MAX_ENHANCEMENT_JOB_WAIT_TIME
- See Also:
- Constant Field Values
DEFAULT_MAX_ENHANCEMENT_JOB_WAIT_TIME
public static final int DEFAULT_MAX_ENHANCEMENT_JOB_WAIT_TIME
- default max wait time is 60sec (similar to the http timeout)
- See Also:
- Constant Field Values
chainManager
@Reference
protected org.apache.stanbol.enhancer.servicesapi.ChainManager chainManager
engineManager
@Reference
protected org.apache.stanbol.enhancer.servicesapi.EnhancementEngineManager engineManager
eventAdmin
@Reference
protected org.osgi.service.event.EventAdmin eventAdmin
EventJobManagerImpl
public EventJobManagerImpl()
activate
@Activate
protected void activate(org.osgi.service.component.ComponentContext ctx)
- Instantiates and registers the
EnhancementJobHandler as
EventHandler for the topic
Constants.TOPIC_JOB_MANAGER
- Parameters:
ctx -
deactivate
@Deactivate
protected void deactivate(org.osgi.service.component.ComponentContext ctx)
- Unregisters the
EnhancementJobHandler
- Parameters:
ctx -
enhanceContent
public void enhanceContent(org.apache.stanbol.enhancer.servicesapi.ContentItem ci)
throws org.apache.stanbol.enhancer.servicesapi.EngineException,
org.apache.stanbol.enhancer.servicesapi.ChainException
- Specified by:
enhanceContent in interface org.apache.stanbol.enhancer.servicesapi.EnhancementJobManager
- Throws:
org.apache.stanbol.enhancer.servicesapi.EngineException
org.apache.stanbol.enhancer.servicesapi.ChainException
enhanceContent
public void enhanceContent(org.apache.stanbol.enhancer.servicesapi.ContentItem ci,
org.apache.stanbol.enhancer.servicesapi.Chain chain)
throws org.apache.stanbol.enhancer.servicesapi.EngineException,
org.apache.stanbol.enhancer.servicesapi.ChainException
- Specified by:
enhanceContent in interface org.apache.stanbol.enhancer.servicesapi.EnhancementJobManager
- Throws:
org.apache.stanbol.enhancer.servicesapi.EngineException
org.apache.stanbol.enhancer.servicesapi.ChainException
getActiveEngines
public List<org.apache.stanbol.enhancer.servicesapi.EnhancementEngine> getActiveEngines()
- Specified by:
getActiveEngines in interface org.apache.stanbol.enhancer.servicesapi.EnhancementJobManager
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.