Examples of workCompleted()


Examples of org.hibernate.search.exception.impl.ErrorContextBuilder.workCompleted()

      LinkedList<LuceneWork> failedUpdates = new LinkedList<LuceneWork>();
      for ( int i = 0; i < queueSize; i++ ) {
        Future task = submittedTasks[i];
        try {
          task.get();
          errorContextBuilder.workCompleted( queue.get( i ) );
        }
        catch (ExecutionException e) {
          someFailureHappened = true;
          failedUpdates.add( queue.get( i ) );
          errorContextBuilder.errorThatOccurred( e.getCause() );
View Full Code Here

Examples of org.hibernate.search.exception.impl.ErrorContextBuilder.workCompleted()

      // (this thread waits even in async backend mode)
      for ( int i = 0; i < queueSize; i++ ) {
        Future task = submittedTasks[i];
        try {
          task.get();
          errorContextBuilder.workCompleted( queue.get( i ) );
        }
        catch (ExecutionException e) {
          if ( failedUpdates == null ) {
            failedUpdates = new LinkedList<LuceneWork>();
          }
View Full Code Here

Examples of org.hibernate.search.exception.impl.ErrorContextBuilder.workCompleted()

    try {
      IndexWriter indexWriter = workspace.getIndexWriter( batchmode );
      try {
        for ( LuceneWork lw : workOnWriter ) {
          lw.getWorkDelegate( worker ).performWork( lw, indexWriter );
          builder.workCompleted( lw );
        }
        workspace.commitIndexWriter();
        performOptimizations();
      }
      finally {
View Full Code Here

Examples of org.hibernate.search.exception.impl.ErrorContextBuilder.workCompleted()

      // (this thread waits even in async backend mode)
      for ( int i = 0; i < queueSize; i++ ) {
        Future task = submittedTasks[i];
        try {
          task.get();
          errorContextBuilder.workCompleted( queue.get( i ) );
        }
        catch (ExecutionException e) {
          if ( failedUpdates == null ) {
            failedUpdates = new LinkedList<LuceneWork>();
          }
View Full Code Here

Examples of org.hibernate.search.exception.impl.ErrorContextBuilder.workCompleted()

      // (this thread waits even in async backend mode)
      for ( int i = 0; i < queueSize; i++ ) {
        Future task = submittedTasks[i];
        try {
          task.get();
          errorContextBuilder.workCompleted( queue.get( i ) );
        }
        catch (ExecutionException e) {
          if ( failedUpdates == null ) {
            failedUpdates = new LinkedList<LuceneWork>();
          }
View Full Code Here

Examples of org.hibernate.search.exception.impl.ErrorContextBuilder.workCompleted()

    try {
      IndexWriter indexWriter = workspace.getIndexWriter( batchmode );
      try {
        for ( LuceneWork lw : workOnWriter ) {
          lw.getWorkDelegate( worker ).performWork( lw, indexWriter );
          builder.workCompleted( lw );
        }
        workspace.commitIndexWriter();
        performOptimizations();
      }
      finally {
View Full Code Here

Examples of org.hibernate.search.exception.impl.ErrorContextBuilder.workCompleted()

      LinkedList<LuceneWork> failedUpdates = new LinkedList<LuceneWork>();
      for ( int i = 0; i < queueSize; i++ ) {
        Future task = submittedTasks[i];
        try {
          task.get();
          errorContextBuilder.workCompleted( queue.get( i ) );
        }
        catch (ExecutionException e) {
          someFailureHappened = true;
          failedUpdates.add( queue.get( i ) );
          errorContextBuilder.errorThatOccurred( e.getCause() );
View Full Code Here

Examples of org.hibernate.search.exception.impl.ErrorContextBuilder.workCompleted()

    try {
      IndexWriter indexWriter = workspace.getIndexWriter( batchmode, errorContextBuilder );
      try {
        for ( LuceneWork lw : workOnWriter ) {
          lw.getWorkDelegate( worker ).performWork( lw, indexWriter );
          errorContextBuilder.workCompleted( lw );
        }
        workspace.commitIndexWriter( errorContextBuilder );
        performOptimizations();
      }
      finally {
View Full Code Here

Examples of org.hibernate.search.exception.impl.ErrorContextBuilder.workCompleted()

      // (this thread waits even in async backend mode)
      for ( int i = 0; i < queueSize; i++ ) {
        Future task = submittedTasks[i];
        try {
          task.get();
          errorContextBuilder.workCompleted( queue.get( i ) );
        }
        catch (ExecutionException e) {
          if ( failedUpdates == null ) {
            failedUpdates = new LinkedList<LuceneWork>();
          }
View Full Code Here

Examples of org.hibernate.search.exception.impl.ErrorContextBuilder.workCompleted()

    try {
      IndexWriter indexWriter = workspace.getIndexWriter( batchmode );
      try {
        for ( LuceneWork lw : workOnWriter ) {
          lw.getWorkDelegate( worker ).performWork( lw, indexWriter );
          builder.workCompleted( lw );
        }
        workspace.commitIndexWriter();
        performOptimizations();
      }
      finally {
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.