Package proj.zoie.api.indexing.OptimizeScheduler

Examples of proj.zoie.api.indexing.OptimizeScheduler.OptimizeType


    synchronized(_optimizeMonitor)
    {
      try
      {
        _idxMgr.setDiskIndexerStatus(Status.Working);
        OptimizeType optType = _optScheduler.getScheduledOptimizeType();
        _idxMgr.setPartialExpunge(optType == OptimizeType.PARTIAL);
        try
        {
          System.out.println("DiskLuceneIndexDataLoader:consume(): disk consume");
          super.consume(events);
View Full Code Here


      {
        try
        {
          _idxMgr.setDiskIndexerStatus(Status.Working);
         
          OptimizeType optType = _optScheduler.getScheduledOptimizeType();
          _idxMgr.setPartialExpunge(optType == OptimizeType.PARTIAL);
          try
          {
            super.loadFromIndex(ramIndex);
          }
View Full Code Here

  public void consume(Collection<DataEvent<ZoieIndexable>> events) throws ZoieException {
    // updates the in memory status before and after the work
    synchronized (_optimizeMonitor) {
      try {
        _idxMgr.setDiskIndexerStatus(Status.Working);
        OptimizeType optType = _optScheduler.getScheduledOptimizeType();
        _idxMgr.setPartialExpunge(optType == OptimizeType.PARTIAL);
        try {
          super.consume(events);
        } finally {
          _optScheduler.finished();
View Full Code Here

  }

  @Override
  public void loadFromIndex(RAMSearchIndex<R> ramIndex) throws ZoieException {
    synchronized (_optimizeMonitor) {
      OptimizeType optType = _optScheduler.getScheduledOptimizeType();
      _idxMgr.setPartialExpunge(optType == OptimizeType.PARTIAL);
      try {
        super.loadFromIndex(ramIndex);
      } finally {
        _idxMgr.setDiskIndexerStatus(Status.Sleep);
View Full Code Here

TOP

Related Classes of proj.zoie.api.indexing.OptimizeScheduler.OptimizeType

Copyright © 2018 www.massapicom. 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.