public class IndexWatcher
extends java.lang.Object
UpdateImpl.indexObject(IObject)
transaction.Constructor and Description |
---|
IndexWatcher(javax.sql.DataSource dataSource,
java.lang.String countKey)
Construct a new index watcher.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Semaphore |
indexObject(ome.model.IObject object,
long userId,
long groupId,
long sessionId)
Index the given object.
|
void |
poll()
Check for new objects to index and for progress with indexing past objects.
|
public IndexWatcher(javax.sql.DataSource dataSource, java.lang.String countKey)
dataSource
- the data source to be used for JDBC access to the databasecountKey
- the name of the configuration key for tracking progress through the event logpublic void poll()
public java.util.concurrent.Semaphore indexObject(ome.model.IObject object, long userId, long groupId, long sessionId)
object
- the object to index, may be unloadeduserId
- the user to record for the reindexing requestgroupId
- the group to record for the reindexing requestsessionId
- the session to record for the reindexing request