GenericThrottle.java


current inspection = 2009-09-04 18:33:31 (id #2) base = 2009-09-04 18:33:31 (id #1)

Filter Options
History:
+ added
- dropped
U unchanged
Annotation Kind:
pre
presumption
post
unanalyzed
test


  • + bool isAbusive(String)

  • -/+ Kind Annotation Text Date
    +pre(soft) init'ed(this.clientHistoryCache.hits)2009-09-04 18:33:31
    +pre(soft) init'ed(this.clientHistoryCache.misses)2009-09-04 18:33:31
    +pre(soft) init'ed(this.threshold)2009-09-04 18:33:31
    +pre(soft) log != null2009-09-04 18:33:31
    +pre(soft) this.clientHistoryCache != null2009-09-04 18:33:31
    +pre(soft) this.clientHistoryCache.cache != null2009-09-04 18:33:31
    +post(soft) init'ed(this.clientHistoryCache.hits)2009-09-04 18:33:31
    +post(soft) init'ed(this.clientHistoryCache.misses)2009-09-04 18:33:31
    +postinit'ed(return_value)2009-09-04 18:33:31
    +postthis.clientHistoryCache.hits == One-of{old this.clientHistoryCache.hits, old this. clientHistoryCache.hits + 1, One-of{old this.clientHistoryCache.hits, old this. clientHistoryCache.hits + 1} - 1}2009-09-04 18:33:31
    +postthis.clientHistoryCache.misses == One-of{old this.clientHistoryCache.misses, old this.clientHistoryCache.misses + 1}2009-09-04 18:33:31
    +postthis.clientHistoryCache.removes == One-of{old this.clientHistoryCache.removes, old this.clientHistoryCache.removes + 1, One-of{old this.clientHistoryCache.removes, old this.clientHistoryCache.removes + 1} + 1}2009-09-04 18:33:31
    +unanalyzedcall on get2009-09-04 18:33:31
    +unanalyzedcall on java.lang.System:currentTimeMillis2009-09-04 18:33:31
    +unanalyzedcall on java.lang.Throwable:__curr_excep_obj2009-09-04 18:33:31
    +unanalyzedcall on java.util.Map:get2009-09-04 18:33:31
    +unanalyzedcall on java.util.Map:remove2009-09-04 18:33:31
    +unanalyzedcall on org.apache.commons.logging.Log:debug2009-09-04 18:33:31
    +unanalyzedcall on remove2009-09-04 18:33:31
    +test_vectorclientId: Inverse{null}, Addr_Set{null}2009-09-04 18:33:31

  • + org.apache.roller.weblogger.util.GenericThrottle$1__static_init

  • -/+ Kind Annotation Text Date

  • + void org.apache.roller.weblogger.util.GenericThrottle$ClientInfo(GenericThrottle)

  • -/+ Kind Annotation Text Date
    +postnew Date(GenericThrottle$ClientInfo#1) num objects == 12009-09-04 18:33:31
    +postthis.hits == 02009-09-04 18:33:31
    +postthis.id == null2009-09-04 18:33:31
    +postthis.start == &new Date(GenericThrottle$ClientI nfo#1)2009-09-04 18:33:31

  • + void org.apache.roller.weblogger.util.GenericThrottle$ClientInfo(GenericThrottle, GenericThrottle$1)

  • -/+ Kind Annotation Text Date
    +postnew Date(GenericThrottle$ClientInfo#1) num objects == 12009-09-04 18:33:31
    +postthis.hits == 02009-09-04 18:33:31
    +postthis.id == null2009-09-04 18:33:31
    +postthis.start == &new Date(GenericThrottle$ClientI nfo#1)2009-09-04 18:33:31
    +unanalyzedcall on java.util.Date2009-09-04 18:33:31

  • + org.apache.roller.weblogger.util.GenericThrottle$ClientInfo__static_init

  • -/+ Kind Annotation Text Date

  • + void org.apache.roller.weblogger.util.GenericThrottle(int, int, int)

  • -/+ Kind Annotation Text Date
    +pre(soft) org/apache/roller/weblogger/util/cache/Cache Manager.cacheFactory != null2009-09-04 18:33:31
    +pre(soft) org/apache/roller/weblogger/util/cache/Cache Manager.cacheHandlers != null2009-09-04 18:33:31
    +preorg/apache/roller/weblogger/util/cache/CacheManager .caches != null2009-09-04 18:33:31
    +preorg/apache/roller/weblogger/util/cache/CacheManager .log != null2009-09-04 18:33:31
    +postinit'ed(new Date(LRUCacheImpl#1) num objects)2009-09-04 18:33:31
    +postinit'ed(new ExpiringLRUCacheImpl(constructCache#1*) num objects)2009-09-04 18:33:31
    +postinit'ed(new LRUCacheImpl(constructCache#1*) num objects)2009-09-04 18:33:31
    +postpossibly_updated(new ExpiringLRUCacheImpl(construct Cache#1*).cache)2009-09-04 18:33:31
    +postpossibly_updated(new ExpiringLRUCacheImpl(construct Cache#1*).hits)2009-09-04 18:33:31
    +postpossibly_updated(new ExpiringLRUCacheImpl(construct Cache#1*).id)2009-09-04 18:33:31
    +postpossibly_updated(new ExpiringLRUCacheImpl(construct Cache#1*).misses)2009-09-04 18:33:31
    +postpossibly_updated(new ExpiringLRUCacheImpl(construct Cache#1*).puts)2009-09-04 18:33:31
    +postpossibly_updated(new ExpiringLRUCacheImpl(construct Cache#1*).removes)2009-09-04 18:33:31
    +postpossibly_updated(new ExpiringLRUCacheImpl(construct Cache#1*).startTime)2009-09-04 18:33:31
    +postpossibly_updated(new ExpiringLRUCacheImpl(construct Cache#1*).timeout)2009-09-04 18:33:31
    +postpossibly_updated(new LRUCacheImpl(constructCache#1* ).cache)2009-09-04 18:33:31
    +postpossibly_updated(new LRUCacheImpl(constructCache#1* ).hits)2009-09-04 18:33:31
    +postpossibly_updated(new LRUCacheImpl(constructCache#1* ).id)2009-09-04 18:33:31
    +postpossibly_updated(new LRUCacheImpl(constructCache#1* ).misses)2009-09-04 18:33:31
    +postpossibly_updated(new LRUCacheImpl(constructCache#1* ).puts)2009-09-04 18:33:31
    +postpossibly_updated(new LRUCacheImpl(constructCache#1* ).removes)2009-09-04 18:33:31
    +postpossibly_updated(new LRUCacheImpl(constructCache#1* ).startTime)2009-09-04 18:33:31
    +postthis.clientHistoryCache != null2009-09-04 18:33:31
    +postthis.interval == One-of{0, inter}2009-09-04 18:33:31
    +postthis.interval >= 02009-09-04 18:33:31
    +postthis.threshold == One-of{1, thresh}2009-09-04 18:33:31
    +postthis.threshold >= 02009-09-04 18:33:31
    +unanalyzedcall on constructCache2009-09-04 18:33:31
    +unanalyzedcall on java.lang.Class:forName2009-09-04 18:33:31
    +unanalyzedcall on java.lang.Class:newInstance2009-09-04 18:33:31
    +unanalyzedcall on java.lang.Integer:parseInt2009-09-04 18:33:31
    +unanalyzedcall on java.lang.Long:parseLong2009-09-04 18:33:31
    +unanalyzedcall on java.lang.Throwable:__curr_excep_obj2009-09-04 18:33:31
    +unanalyzedcall on java.util.Collections:synchronizedMap2009-09-04 18:33:31
    +unanalyzedcall on java.util.Date2009-09-04 18:33:31
    +unanalyzedcall on java.util.LinkedHashMap2009-09-04 18:33:31
    +unanalyzedcall on java.util.Map:containsKey2009-09-04 18:33:31
    +unanalyzedcall on java.util.Map:get2009-09-04 18:33:31
    +unanalyzedcall on java.util.Map:put2009-09-04 18:33:31
    +unanalyzedcall on java.util.Set:add2009-09-04 18:33:31
    +unanalyzedcall on org.apache.commons.logging.Log:debug2009-09-04 18:33:31
    +unanalyzedcall on org.apache.commons.logging.Log:error2009-09-04 18:33:31
    +unanalyzedcall on org.apache.roller.weblogger.util.cache. LRUCacheImpl2009-09-04 18:33:31
    +test_vectorinter: {-231..0}, {1..232-1}2009-09-04 18:33:31
    +test_vectormaxEntries: {0..232-1}, {-231.. -1}2009-09-04 18:33:31
    +test_vectorthresh: {-231..-1}, {0..232-1}2009-09-04 18:33:31

  • + org.apache.roller.weblogger.util.GenericThrottle__static_init

  • -/+ Kind Annotation Text Date
    +postinit'ed(log)2009-09-04 18:33:31

  • + bool processHit(String)

  • -/+ Kind Annotation Text Date
    +pre(soft) init'ed(this.clientHistoryCache.hits)2009-09-04 18:33:31
    +pre(soft) init'ed(this.clientHistoryCache.misses)2009-09-04 18:33:31
    +pre(soft) init'ed(this.clientHistoryCache.puts)2009-09-04 18:33:31
    +pre(soft) init'ed(this.interval)2009-09-04 18:33:31
    +pre(soft) init'ed(this.threshold)2009-09-04 18:33:31
    +pre(soft) log != null2009-09-04 18:33:31
    +pre(soft) this.clientHistoryCache != null2009-09-04 18:33:31
    +pre(soft) this.clientHistoryCache.cache != null2009-09-04 18:33:31
    +presumptionclient.hits@93 <= 232-22009-09-04 18:33:31
    +post(soft) init'ed(this.clientHistoryCache.hits)2009-09-04 18:33:31
    +post(soft) init'ed(this.clientHistoryCache.misses)2009-09-04 18:33:31
    +post(soft) init'ed(this.clientHistoryCache.puts)2009-09-04 18:33:31
    +postinit'ed(return_value)2009-09-04 18:33:31
    +postthis.clientHistoryCache.hits == One-of{old this.clientHistoryCache.hits, old this. clientHistoryCache.hits + 1, One-of{old this.clientHistoryCache.hits, old this. clientHistoryCache.hits + 1} - 1}2009-09-04 18:33:31
    +postthis.clientHistoryCache.misses == One-of{old this.clientHistoryCache.misses, old this.clientHistoryCache.misses + 1}2009-09-04 18:33:31
    +postthis.clientHistoryCache.puts == One-of{old this.clientHistoryCache.puts, old this. clientHistoryCache.puts + 1}2009-09-04 18:33:31
    +postthis.clientHistoryCache.removes == One-of{old this.clientHistoryCache.removes, old this.clientHistoryCache.removes + 1, One-of{old this.clientHistoryCache.removes, old this.clientHistoryCache.removes + 1} + 1}2009-09-04 18:33:31
    +unanalyzedcall on get2009-09-04 18:33:31
    +unanalyzedcall on java.lang.System:currentTimeMillis2009-09-04 18:33:31
    +unanalyzedcall on java.lang.Throwable:__curr_excep_obj2009-09-04 18:33:31
    +unanalyzedcall on java.util.Date2009-09-04 18:33:31
    +unanalyzedcall on java.util.Map:get2009-09-04 18:33:31
    +unanalyzedcall on java.util.Map:put2009-09-04 18:33:31
    +unanalyzedcall on java.util.Map:remove2009-09-04 18:33:31
    +unanalyzedcall on org.apache.commons.logging.Log:debug2009-09-04 18:33:31
    +unanalyzedcall on put2009-09-04 18:33:31
    +unanalyzedcall on remove2009-09-04 18:33:31
    +test_vectorclientId: Inverse{null}, Addr_Set{null}2009-09-04 18:33:31