Class APIUsage
java.lang.Object
org.deltava.beans.stats.APIUsage
- All Implemented Interfaces:
Serializable,Comparable<APIUsage>,Cacheable
A bean to store external API usage statistics.
- Since:
- 9.0
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intintReturns the number of anonymous API invocations.intReturns the number of blocked API invocations.getDate()Returns the statistics date.getName()Returns the API/method name.intgetTotal()Returns the total number of API invocations.voidsetAnonymous(int cnt) Updates the number of anonymous API invocations.voidsetBlocked(int cnt) Updates the number of blocked API invocations.voidsetTotal(int cnt) Updates the total number of API invocations.
-
Constructor Details
-
APIUsage
-
-
Method Details
-
getName
-
getDate
-
getTotal
public int getTotal()Returns the total number of API invocations.- Returns:
- the number of invocations
-
getAnonymous
public int getAnonymous()Returns the number of anonymous API invocations.- Returns:
- the number of invocations
-
getBlocked
public int getBlocked()Returns the number of blocked API invocations.- Returns:
- the number of blocked invocations
-
setTotal
public void setTotal(int cnt) Updates the total number of API invocations.- Parameters:
cnt- the number of invocations
-
setAnonymous
public void setAnonymous(int cnt) Updates the number of anonymous API invocations.- Parameters:
cnt- the number of invocations
-
setBlocked
public void setBlocked(int cnt) Updates the number of blocked API invocations.- Parameters:
cnt- the number of invocations
-
compareTo
- Specified by:
compareToin interfaceComparable<APIUsage>
-
cacheKey
-