Examples of applyWork()


Examples of org.hibernate.search.backend.spi.BackendQueueProcessor.applyWork()

    LuceneWorkSerializer serializer = indexManager.getSerializer();
    BackendQueueProcessor queueProcessor = createInstanceBackendQueueProcessor(searchFactory, indexManager);
   
    List<LuceneWork> luceneWorks = serializer.toLuceneWorks(workListEntity.getData());
   
    queueProcessor.applyWork(luceneWorks, null);
   
    workListDAO.delete(workListEntity);   
  }
 
  private static IndexManager getIndexManager(SearchFactory searchFactory, String indexName) {
View Full Code Here

Examples of org.hibernate.search.backend.spi.BackendQueueProcessor.applyWork()

  @Test
  public void testCheckingForNullWork() {
    try {
      BackendQueueProcessor backend = new JGroupsBackendQueueProcessor( new SlaveNodeSelector() );
      backend.applyWork( null, null );
    }
    catch (IllegalArgumentException e2) {
      // this is ok, we just want to avoid other exceptions or NPEs
    }
  }
View Full Code Here

Examples of org.hibernate.search.backend.spi.BackendQueueProcessor.applyWork()

  @Test
  public void testCheckingForNullWork() {
    try {
      BackendQueueProcessor backend = new JndiJMSBackendQueueProcessor();
      backend.applyWork( null, null );
    }
    catch (IllegalArgumentException e2) {
      // this is ok, we just want to avoid other exceptions or NPEs
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.