org.gcube.indexmanagement.featureindexlibrary.commons
Class FeatureFactoryStatsContainer

java.lang.Object
  extended by java.lang.Thread
      extended by org.gcube.indexmanagement.featureindexlibrary.commons.FeatureFactoryStatsContainer
All Implemented Interfaces:
Runnable

public class FeatureFactoryStatsContainer
extends Thread

Statistics container

Author:
UoA

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FeatureFactoryStatsContainer(String ServiceClass, String ServiceName)
          Constructor
 
Method Summary
 void mergeResults(long results)
          merge results
 void mergeTime(long time)
          merge time
 void newFullScan()
          New Full Scann index
 void newMerge()
          New merge request
 void newVAFile()
          New VAFile index
 void run()
           
 String toXML()
          generates an xml serialization of the statistics
 void writeToRI()
          Writes the statistics to the RI profile
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureFactoryStatsContainer

public FeatureFactoryStatsContainer(String ServiceClass,
                                    String ServiceName)
Constructor

Parameters:
ServiceClass - the Service class
ServiceName - the service name
Method Detail

newFullScan

public void newFullScan()
New Full Scann index


newVAFile

public void newVAFile()
New VAFile index


newMerge

public void newMerge()
New merge request


mergeTime

public void mergeTime(long time)
merge time

Parameters:
time - the time

mergeResults

public void mergeResults(long results)
merge results

Parameters:
results - the results

writeToRI

public void writeToRI()
               throws Exception
Writes the statistics to the RI profile

Throws:
Exception - the ri could not be updated

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Runnable.run()

toXML

public String toXML()
generates an xml serialization of the statistics

Returns:
the xml serialization


Copyright © 2012. All Rights Reserved.