|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EnhancementEngine
Interface to internal or external semantic enhancement engines. There will usually be several of those, that the EnhancementJobManager uses to enhance content items.
| Field Summary | |
|---|---|
static int |
CANNOT_ENHANCE
Return value for canEnhance(org.apache.stanbol.enhancer.servicesapi.ContentItem), meaning this engine cannot enhance
supplied ContentItem |
static int |
ENHANCE_ASYNC
Return value for canEnhance(org.apache.stanbol.enhancer.servicesapi.ContentItem), meaning this engine can enhance
supplied ContentItem, and suggests queuing a request for
enhancement instead of enhancing it synchronously. |
static int |
ENHANCE_SYNCHRONOUS
Return value for canEnhance(org.apache.stanbol.enhancer.servicesapi.ContentItem), meaning this engine can enhance
supplied ContentItem, and suggests enhancing it synchronously
instead of queuing a request for enhancement. |
static java.lang.String |
PROPERTY_NAME
The property used to provide the name of an enhancement engine. |
| Method Summary | |
|---|---|
int |
canEnhance(ContentItem ci)
Indicate if this engine can enhance supplied ContentItem, and if it suggests enhancing it synchronously or asynchronously. |
void |
computeEnhancements(ContentItem ci)
Compute enhancements for supplied ContentItem. |
java.lang.String |
getName()
Getter for the name of this EnhancementEngine instance as configured by PROPERTY_NAME |
| Field Detail |
|---|
static final java.lang.String PROPERTY_NAME
static final int CANNOT_ENHANCE
canEnhance(org.apache.stanbol.enhancer.servicesapi.ContentItem), meaning this engine cannot enhance
supplied ContentItem
static final int ENHANCE_SYNCHRONOUS
canEnhance(org.apache.stanbol.enhancer.servicesapi.ContentItem), meaning this engine can enhance
supplied ContentItem, and suggests enhancing it synchronously
instead of queuing a request for enhancement.
static final int ENHANCE_ASYNC
canEnhance(org.apache.stanbol.enhancer.servicesapi.ContentItem), meaning this engine can enhance
supplied ContentItem, and suggests queuing a request for
enhancement instead of enhancing it synchronously.
| Method Detail |
|---|
int canEnhance(ContentItem ci)
throws EngineException
EnhancementJobManager can force sync/async mode if desired, it is
just a suggestion from the engine.
EngineException - if the introspecting process of the content item
fails
void computeEnhancements(ContentItem ci)
throws EngineException
EnhancementJobManager) should take care of
persistent storage of the enhanced ContentItem.
EngineException - if the underlying process failed to work as
expectedjava.lang.String getName()
PROPERTY_NAME
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||