org.wso2.carbon.registry.core.statistics.query
Class StatisticsRecord

java.lang.Object
  extended by org.wso2.carbon.registry.core.statistics.query.StatisticsRecord

public class StatisticsRecord
extends java.lang.Object

Defines a statistics record for a set of database queries for a given operation.


Constructor Summary
StatisticsRecord()
          Creates a statistics record.
StatisticsRecord(StatisticsRecord record)
          Creates a clone of an existing statistics record.
 
Method Summary
 void addQuery(java.lang.String query)
          Method to add a query to the current list of queries.
 void addRecord(java.lang.String record)
          Adds a record on database tables accessed.
 int decrement()
          Decrements the nested depth of the transaction.
 java.lang.String getOperation()
          Method to get the operation.
 java.lang.String[] getQueries()
          Method to obtain the current list of queries.
 java.lang.String[] getTableRecords()
          Returns the list of records on database tables accessed.
 int increment()
          Increments the nested depth of the transaction.
 void setOperation(java.lang.String operation)
          Method to set the operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsRecord

public StatisticsRecord()
Creates a statistics record.


StatisticsRecord

public StatisticsRecord(StatisticsRecord record)
Creates a clone of an existing statistics record.

Parameters:
record - the existing record.
Method Detail

increment

public int increment()
Increments the nested depth of the transaction.

Returns:
current depth.

decrement

public int decrement()
Decrements the nested depth of the transaction.

Returns:
current depth.

getTableRecords

public java.lang.String[] getTableRecords()
Returns the list of records on database tables accessed.

Returns:
list of records on database tables accessed.

addRecord

public void addRecord(java.lang.String record)
Adds a record on database tables accessed.

Parameters:
record - a record on database tables accessed.

getQueries

public java.lang.String[] getQueries()
Method to obtain the current list of queries.

Returns:
the current list of queries.

addQuery

public void addQuery(java.lang.String query)
Method to add a query to the current list of queries.

Parameters:
query - the query.

getOperation

public java.lang.String getOperation()
Method to get the operation.

Returns:
the registry operation's name.

setOperation

public void setOperation(java.lang.String operation)
Method to set the operation.

Parameters:
operation - the registry operation's name.


Copyright © 2011 WSO2 Inc. All Rights Reserved.