Class SubjectSourceCacheStat

java.lang.Object
edu.internet2.middleware.grouper.subj.cache.SubjectSourceCacheStat

public class SubjectSourceCacheStat extends Object
subject source cache stats for a day
  • Constructor Details

    • SubjectSourceCacheStat

      public SubjectSourceCacheStat()
  • Method Details

    • getDate

      public String getDate()
      e.g. yyyy_mm_dd
      Returns:
      the date
    • setDate

      public void setDate(String date)
      e.g. yyyy_mm_dd
      Parameters:
      date - the date to set
    • getCacheHitsSinceLastRetrieve

      public int getCacheHitsSinceLastRetrieve()
      cache hits since last retrieve
      Returns:
      the cacheHitsSinceLastRetrieve
    • setCacheHitsSinceLastRetrieve

      public void setCacheHitsSinceLastRetrieve(int cacheHitsSinceLastRetrieve)
      cache hits since last retrieve
      Parameters:
      cacheHitsSinceLastRetrieve - the cacheHitsSinceLastRetrieve to set
    • getCacheRefreshesTotalOfItemsInCache

      public long getCacheRefreshesTotalOfItemsInCache()
      add up all the refreshes of all items in cache
      Returns:
      the cacheRefreshesTotalOfItemsInCache
    • setCacheRefreshesTotalOfItemsInCache

      public void setCacheRefreshesTotalOfItemsInCache(long cacheRefreshesTotalOfItemsInCache)
      add up all the refreshes of all items in cache
      Parameters:
      cacheRefreshesTotalOfItemsInCache - the cacheRefreshesTotalOfItemsInCache to set
    • getCacheHitsTotalOfItemsInCache

      public int getCacheHitsTotalOfItemsInCache()
      total number of hits for items in cache
      Returns:
      the cacheHitsTotalOfItemsInCache
    • setCacheHitsTotalOfItemsInCache

      public void setCacheHitsTotalOfItemsInCache(int cacheHitsTotalOfItemsInCache)
      Parameters:
      cacheHitsTotalOfItemsInCache - the cacheHitsTotalOfItemsInCache to set
    • getCacheHit

      public int getCacheHit()
      count of cache hits
      Returns:
      the cacheHit
    • cacheHitAdd

      public void cacheHitAdd(int numberToAdd)
      add cache hits
      Parameters:
      numberToAdd -
    • getCacheMissResolved

      public int getCacheMissResolved()
      retrieve a subject that was resolved
      Returns:
      the cacheMissResolved
    • cacheMissResolvedAdd

      public void cacheMissResolvedAdd(int numberToAdd)
      add missed resolved subjects
      Parameters:
      numberToAdd -
    • getCacheMissUnresolved

      public int getCacheMissUnresolved()
      cache miss unresolved
      Returns:
      the cacheMissUnresolved
    • cacheMissUnresolvedAdd

      public void cacheMissUnresolvedAdd(int numberToAdd)
      add missed unresolved subjects
      Parameters:
      numberToAdd -
    • getCacheMissIndividual

      public int getCacheMissIndividual()
      count of cache misses for individual queries
      Returns:
      the cacheMissIndividual
    • cacheMissIndividualAdd

      public void cacheMissIndividualAdd(int numberToAdd)
      add cache individual misses
      Parameters:
      numberToAdd -
    • getCacheMissList

      public int getCacheMissList()
      count of cache misses when getting a list (note, some might be found in list)
      Returns:
      the cacheMissList
    • cacheMissListAdd

      public void cacheMissListAdd(int numberToAdd)
      add cache list misses
      Parameters:
      numberToAdd -
    • getCacheHitNanos

      public long getCacheHitNanos()
      Returns:
      the cacheHitNanos
    • cacheHitNanosAdd

      public void cacheHitNanosAdd(long numberToAdd)
      add cache hit nanos
      Parameters:
      numberToAdd -
    • getCacheMissIndividualNanos

      public long getCacheMissIndividualNanos()
      time it takes for all individual cache misses
      Returns:
      the cacheMissIndividualNanos
    • cacheMissIndividualNanosAdd

      public void cacheMissIndividualNanosAdd(long numberToAdd)
      add miss individual nanos
      Parameters:
      numberToAdd -
    • getCacheMissListNanos

      public long getCacheMissListNanos()
      time it takes for cache miss list queries
      Returns:
      the cacheMissListNanos
    • cacheMissListNanosAdd

      public void cacheMissListNanosAdd(long numberToAdd)
      add miss list nanos
      Parameters:
      numberToAdd -
    • getRefreshQueryCountInBackground

      public int getRefreshQueryCountInBackground()
      how many background subject update queries
      Returns:
      the refreshQueryCountInBackground
    • refreshQueryCountInBackgroundAdd

      public void refreshQueryCountInBackgroundAdd(long numberToAdd)
      add refresh query count background nanos
      Parameters:
      numberToAdd -
    • getRefreshSubjectCount

      public long getRefreshSubjectCount()
      Returns:
      the refreshSubjectCount
    • refreshSubjectCountAdd

      public void refreshSubjectCountAdd(long numberToAdd)
      add refresh subject count
      Parameters:
      numberToAdd -
    • getRefreshInBackgroundNanos

      public long getRefreshInBackgroundNanos()
      Returns:
      the refreshInBackgroundNanos
    • refreshInBackgroundNanosAdd

      public void refreshInBackgroundNanosAdd(long numberToAdd)
      add refresh background nanos
      Parameters:
      numberToAdd -
    • getCacheRemove

      public int getCacheRemove()
      number of items removed from cache
      Returns:
      the cacheRemove
    • cacheRemoveAdd

      public void cacheRemoveAdd(long numberToAdd)
      number of items removed from cache
      Parameters:
      numberToAdd -
    • getItemsWithNoAccessSinceLastRefresh

      public int getItemsWithNoAccessSinceLastRefresh()
      items in cache with no accesses since last refresh
      Returns:
      the itemsWithNoAccessSinceLastRefresh
    • setItemsWithNoAccessSinceLastRefresh

      public void setItemsWithNoAccessSinceLastRefresh(int itemsWithNoAccessSinceLastRefresh)
      items in cache with no accesses since last refresh
      Parameters:
      itemsWithNoAccessSinceLastRefresh - the itemsWithNoAccessSinceLastRefresh to set
    • getItemsWith1Refresh

      public int getItemsWith1Refresh()
      items with 1 refresh
      Returns:
      the itemsWith1Refresh
    • setItemsWith1Refresh

      public void setItemsWith1Refresh(int itemsWith1Refresh1)
      items with 1 refresh
      Parameters:
      itemsWith1Refresh1 - the itemsWith1Refresh to set
    • getItemsWith3Refresh

      public int getItemsWith3Refresh()
      items with 3 refresh
      Returns:
      the itemsWith3Refresh
    • setItemsWith3Refresh

      public void setItemsWith3Refresh(int itemsWith3Refresh)
      items with 3 refresh
      Parameters:
      itemsWith3Refresh - the itemsWith3Refresh to set
    • getItemsWith10Refresh

      public int getItemsWith10Refresh()
      items with 10 refresh
      Returns:
      the itemsWith10Refresh
    • setItemsWith10Refresh

      public void setItemsWith10Refresh(int itemsWith10Refresh)
      items with 10 refresh
      Parameters:
      itemsWith10Refresh - the itemsWith10Refresh to set
    • getItemsWith20Refresh

      public int getItemsWith20Refresh()
      items with 20 refresh
      Returns:
      the itemsWith20Refresh
    • setItemsWith20Refresh

      public void setItemsWith20Refresh(int itemsWith20Refresh)
      items with 20 refresh
      Parameters:
      itemsWith20Refresh - the itemsWith20Refresh to set
    • getItemsWith50Refresh

      public int getItemsWith50Refresh()
      items with 50 refresh
      Returns:
      the itemsWith50Refresh
    • setItemsWith50Refresh

      public void setItemsWith50Refresh(int itemsWith50Refresh)
      items with 50 refresh
      Parameters:
      itemsWith50Refresh - the itemsWith50Refresh to set
    • getItemsWith1AccessTotal

      public int getItemsWith1AccessTotal()
      items in cache with 1 access total
      Returns:
      the itemsWith1AccessTotal
    • setItemsWith1AccessTotal

      public void setItemsWith1AccessTotal(int itemsWith1AccessTotal)
      items in cache with 1 access total
      Parameters:
      itemsWith1AccessTotal - the itemsWith1AccessTotal to set
    • getItemsWith3AccessTotal

      public int getItemsWith3AccessTotal()
      items in cache with 1 access total
      Returns:
      the itemsWith3AccessTotal
    • setItemsWith3AccessTotal

      public void setItemsWith3AccessTotal(int itemsWith3AccessTotal)
      Parameters:
      itemsWith3AccessTotal - the itemsWith3AccessTotal to set
    • getItemsWith10AccessTotal

      public int getItemsWith10AccessTotal()
      Returns:
      the itemsWith10AccessTotal
    • setItemsWith10AccessTotal

      public void setItemsWith10AccessTotal(int itemsWith10AccessTotal)
      Parameters:
      itemsWith10AccessTotal - the itemsWith10AccessTotal to set
    • getItemsWith20AccessTotal

      public int getItemsWith20AccessTotal()
      Returns:
      the itemsWith20AccessTotal
    • setItemsWith20AccessTotal

      public void setItemsWith20AccessTotal(int itemsWith20AccessTotal)
      Parameters:
      itemsWith20AccessTotal - the itemsWith20AccessTotal to set
    • getItemsWith50AccessTotal

      public int getItemsWith50AccessTotal()
      Returns:
      the itemsWith50AccessTotal
    • setItemsWith50AccessTotal

      public void setItemsWith50AccessTotal(int itemsWith50AccessTotal)
      Parameters:
      itemsWith50AccessTotal - the itemsWith50AccessTotal to set
    • getItemsWith1AccessSinceLastRefresh

      public int getItemsWith1AccessSinceLastRefresh()
      items in cache with 1 accesses since last refresh
      Returns:
      the itemsWith1AccessSinceLastRefresh
    • setItemsWith1AccessSinceLastRefresh

      public void setItemsWith1AccessSinceLastRefresh(int itemsWith1AccessSinceLastRefresh)
      items in cache with 1 accesses since last refresh
      Parameters:
      itemsWith1AccessSinceLastRefresh - the itemsWith1AccessSinceLastRefresh to set
    • getItemsWith3AccessSinceLastRefresh

      public int getItemsWith3AccessSinceLastRefresh()
      items in cache with 3 accesses since last refresh
      Returns:
      the itemsWith3AccessSinceLastRefresh
    • setItemsWith3AccessSinceLastRefresh

      public void setItemsWith3AccessSinceLastRefresh(int itemsWith3AccessSinceLastRefresh)
      items in cache with 3 accesses since last refresh
      Parameters:
      itemsWith3AccessSinceLastRefresh - the itemsWith3AccessSinceLastRefresh to set
    • getItemsWith10AccessSinceLastRefresh

      public int getItemsWith10AccessSinceLastRefresh()
      items in cache with 10 accesses since last refresh
      Returns:
      the itemsWith10AccessSinceLastRefresh
    • setItemsWith10AccessSinceLastRefresh

      public void setItemsWith10AccessSinceLastRefresh(int itemsWith10AccessSinceLastRefresh1)
      items in cache with 10 accesses since last refresh
      Parameters:
      itemsWith10AccessSinceLastRefresh1 - the itemsWith10AccessSinceLastRefresh to set
    • getItemsWith20AccessSinceLastRefresh

      public int getItemsWith20AccessSinceLastRefresh()
      items in cache with 20 accesses since last refresh
      Returns:
      the itemsWith20AccessSinceLastRefresh
    • setItemsWith20AccessSinceLastRefresh

      public void setItemsWith20AccessSinceLastRefresh(int itemsWith20AccessSinceLastRefresh1)
      items in cache with 20 accesses since last refresh
      Parameters:
      itemsWith20AccessSinceLastRefresh1 - the itemsWith20AccessSinceLastRefresh to set
    • getCacheSizeSubjects

      public int getCacheSizeSubjects()
      size of cache
      Returns:
      the cacheSizeSubjects
    • setCacheSizeSubjects

      public void setCacheSizeSubjects(int cacheSizeSubjects)
      size of cache
      Parameters:
      cacheSizeSubjects - the cacheSizeSubjects to set
    • getCacheSizeSubjectsResolved

      public int getCacheSizeSubjectsResolved()
      size of cache Resolved
      Returns:
      the cacheSizeSubjects
    • setCacheSizeSubjectsResolved

      public void setCacheSizeSubjectsResolved(int cacheSizeSubjectsResolved)
      size of cache Resolved
      Parameters:
      cacheSizeSubjectsResolved - the cacheSizeSubjects to set
    • getCacheSizeSubjectsUnresolved

      public int getCacheSizeSubjectsUnresolved()
      size of cache Unresolved
      Returns:
      the cacheSizeSubjects
    • setCacheSizeSubjectsUnresolved

      public void setCacheSizeSubjectsUnresolved(int cacheSizeSubjectsUnresolved)
      size of cache Unresolved
      Parameters:
      cacheSizeSubjectsUnresolved - the cacheSizeSubjects to set
    • getCacheSizeLookups

      public int getCacheSizeLookups()
      number of lookups for cache
      Returns:
      the cacheSizeLookups
    • setCacheSizeLookups

      public void setCacheSizeLookups(int cacheSizeLookups)
      number of lookups for cache
      Parameters:
      cacheSizeLookups - the cacheSizeLookups to set
    • statsLine

      public String statsLine()
      generate the stats line for this stat
      Returns:
      the stats line