com.atlassian.confluence.search.lucene
Class FlushStatistics

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.FlushStatistics

public class FlushStatistics
extends java.lang.Object

A simple statistics object that holds details for an index flushing.


Constructor Summary
FlushStatistics()
           
 
Method Summary
 long getElapsedMilliseconds()
          Retrieved the elapsed time for the flush.
 java.util.Date getFinished()
           
 long getQueueSize()
          Retrieve the number of elements processed by the latest flush.
 java.util.Date getStarted()
          Get the start time.
protected  void reset()
          Reset this flush instance.
 void setFinished(java.util.Date finished)
           
 void setOptimised(boolean optimised)
          Deprecated. since 5.2. Optimize index (i.e. force merging to 1 segment is no longer required) CONFDEV-16098
 void setQueueSize(long queueSize)
           
 void setRecreated(boolean recreated)
           
 void setStarted(java.util.Date started)
           
 boolean wasOptimised()
          Deprecated. since 5.2. Optimize index (i.e. force merging to 1 segment is no longer required) CONFDEV-16098
 boolean wasRecreated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlushStatistics

public FlushStatistics()
Method Detail

reset

protected void reset()
Reset this flush instance.


getElapsedMilliseconds

public long getElapsedMilliseconds()
Retrieved the elapsed time for the flush.


getQueueSize

public long getQueueSize()
Retrieve the number of elements processed by the latest flush.


wasRecreated

public boolean wasRecreated()

wasOptimised

public boolean wasOptimised()
Deprecated. since 5.2. Optimize index (i.e. force merging to 1 segment is no longer required) CONFDEV-16098

Returns:

getStarted

public java.util.Date getStarted()
Get the start time.


getFinished

public java.util.Date getFinished()

setStarted

public void setStarted(java.util.Date started)

setFinished

public void setFinished(java.util.Date finished)

setQueueSize

public void setQueueSize(long queueSize)

setRecreated

public void setRecreated(boolean recreated)

setOptimised

public void setOptimised(boolean optimised)
Deprecated. since 5.2. Optimize index (i.e. force merging to 1 segment is no longer required) CONFDEV-16098

Parameters:
optimised -


Copyright © 2003-2014 Atlassian. All Rights Reserved.