org.topbraid.spin.statistics
Class SPINStatistics

java.lang.Object
  extended by org.topbraid.spin.statistics.SPINStatistics

public class SPINStatistics
extends Object

A wrapper to record the execution time of a given Query for statistical purposes.

Author:
Holger Knublauch

Constructor Summary
SPINStatistics(String label, String queryText, long duration, long startTime, com.hp.hpl.jena.graph.Node context)
          Creates a new SPINStatistics object.
 
Method Summary
 com.hp.hpl.jena.graph.Node getContext()
           
 long getDuration()
           
 String getLabel()
           
 String getQueryText()
           
 long getStartTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPINStatistics

public SPINStatistics(String label,
                      String queryText,
                      long duration,
                      long startTime,
                      com.hp.hpl.jena.graph.Node context)
Creates a new SPINStatistics object.

Parameters:
label - the label of the action that has been measured
queryText - the text of the query that was executed
duration - the total duration in ms
startTime - the start time of execution (for ordering)
context - the Node that for example was holding the spin:rule
Method Detail

getContext

public com.hp.hpl.jena.graph.Node getContext()

getDuration

public long getDuration()

getLabel

public String getLabel()

getQueryText

public String getQueryText()

getStartTime

public long getStartTime()


Copyright © 2011 TopQuadrant, Inc.. All Rights Reserved.