net.ttddyy.dsproxy
Class QueryCount

java.lang.Object
  extended by net.ttddyy.dsproxy.QueryCount

public class QueryCount
extends Object

Considered to be used under same thread. If used by multiple threads, need to change int to AtomicInteger.

Author:
Tadaya Tsuyukubo

Constructor Summary
QueryCount()
           
 
Method Summary
 int getCall()
           
 int getDelete()
           
 long getElapsedTime()
           
 int getFailure()
           
 int getInsert()
           
 int getOther()
           
 int getSelect()
           
 int getTotalNumOfQuery()
           
 int getUpdate()
           
 void increment(QueryType queryType)
           
 void incrementCall()
           
 void incrementDelete()
           
 void incrementElapsedTime(long delta)
           
 void incrementFailure()
           
 void incrementInsert()
           
 void incrementOther()
           
 void incrementSelect()
           
 void incrementUpdate()
           
 void setCall(int call)
           
 void setDelete(int delete)
           
 void setElapsedTime(long elapsedTime)
           
 void setFailure(int failure)
           
 void setInsert(int insert)
           
 void setOther(int other)
           
 void setSelect(int select)
           
 void setUpdate(int update)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryCount

public QueryCount()
Method Detail

increment

public void increment(QueryType queryType)

incrementSelect

public void incrementSelect()

incrementInsert

public void incrementInsert()

incrementUpdate

public void incrementUpdate()

incrementDelete

public void incrementDelete()

incrementOther

public void incrementOther()

incrementCall

public void incrementCall()

incrementFailure

public void incrementFailure()

incrementElapsedTime

public void incrementElapsedTime(long delta)

getTotalNumOfQuery

public int getTotalNumOfQuery()

getSelect

public int getSelect()

setSelect

public void setSelect(int select)

getInsert

public int getInsert()

setInsert

public void setInsert(int insert)

getUpdate

public int getUpdate()

setUpdate

public void setUpdate(int update)

getDelete

public int getDelete()

setDelete

public void setDelete(int delete)

getOther

public int getOther()

setOther

public void setOther(int other)

getCall

public int getCall()

setCall

public void setCall(int call)

getFailure

public int getFailure()

setFailure

public void setFailure(int failure)

getElapsedTime

public long getElapsedTime()

setElapsedTime

public void setElapsedTime(long elapsedTime)


Copyright © 2012. All Rights Reserved.