ome.services.fulltext
Class AllEntitiesPseudoLogLoader<T extends ome.model.IObject>

java.lang.Object
  extended by ome.services.fulltext.EventLogLoader
      extended by ome.services.fulltext.AllEntitiesPseudoLogLoader<T>
All Implemented Interfaces:
Iterable<ome.model.meta.EventLog>, EventListener, Iterator<ome.model.meta.EventLog>, org.springframework.context.ApplicationListener

public class AllEntitiesPseudoLogLoader<T extends ome.model.IObject>
extends EventLogLoader

EventLogLoader which iterates through each object model type (in no particular order) and returns each object from lowest to highest id.

Since:
3.0-Beta3
Author:
Josh Moore, josh at glencoesoftware.com

Field Summary
 
Fields inherited from class ome.services.fulltext.EventLogLoader
batchSize, DEFAULT_BATCH_SIZE, excludes, queryService
 
Constructor Summary
AllEntitiesPseudoLogLoader()
           
 
Method Summary
 long more()
          Returns the number of classes which are still unprocessed as a proxy for how much is left to process.
protected  ome.model.meta.EventLog query()
           
 void setClasses(Set<String> classes)
           
protected  ome.model.meta.EventLog wrap(String cls, ome.model.IObject obj)
           
 
Methods inherited from class ome.services.fulltext.EventLogLoader
addEventLog, hasNext, iterator, lastEventLog, next, nextEventLog, onApplicationEvent, remove, rollback, setBatchSize, setExcludes, setQueryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllEntitiesPseudoLogLoader

public AllEntitiesPseudoLogLoader()
Method Detail

setClasses

public void setClasses(Set<String> classes)

query

protected ome.model.meta.EventLog query()
Specified by:
query in class EventLogLoader

more

public long more()
Returns the number of classes which are still unprocessed as a proxy for how much is left to process.

Specified by:
more in class EventLogLoader

wrap

protected ome.model.meta.EventLog wrap(String cls,
                                       ome.model.IObject obj)


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.