|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentControllerCallback
Interface for callbacks on the AgentController. This interface is used by Agents to send add and delete requests and to unregister an agent if a critical error occurred.
Method Summary | |
---|---|
void |
add(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
Record record,
java.lang.String hash)
Add the given record. |
void |
delete(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
ConnectivityId id)
Delete the given id. |
void |
unregister(java.lang.String sessionId,
DeltaIndexingType deltaIndexingType,
java.lang.String dataSourceId)
Removes the Agent using the given DataSourceId from the list of active Agents. |
Methods inherited from interface org.eclipse.smila.connectivity.framework.util.ControllerCallback |
---|
doCheckForUpdate, doDeltaDelete, doDeltaIndexing |
Method Detail |
---|
void add(java.lang.String sessionId, DeltaIndexingType deltaIndexingType, Record record, java.lang.String hash) throws AgentCriticalException
sessionId
- the delta indexing session IddeltaIndexingType
- the DeltaIndexingTyperecord
- the record to addhash
- the hash value used for delta indexing
AgentCriticalException
- if agent should abort, because sending further requests does not make any sense.void delete(java.lang.String sessionId, DeltaIndexingType deltaIndexingType, ConnectivityId id) throws AgentCriticalException
sessionId
- the delta indexing session IddeltaIndexingType
- the DeltaIndexingTypeid
- the id of the record to delete
AgentCriticalException
- if agent should abort, because sending further requests does not make any sense.void unregister(java.lang.String sessionId, DeltaIndexingType deltaIndexingType, java.lang.String dataSourceId)
sessionId
- the delta indexing session IddeltaIndexingType
- the DeltaIndexingTypedataSourceId
- the ID of the data source used by the crawl
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |