public class T_CacheUser
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected org.apache.derby.iapi.services.cache.CacheManager |
cm |
protected int |
iterations |
protected org.apache.derby.iapi.services.stream.HeaderPrintWriter |
out |
protected T_CacheService |
parent |
Constructor and Description |
---|
T_CacheUser(org.apache.derby.iapi.services.cache.CacheManager cm,
int iterations,
T_CacheService parent,
org.apache.derby.iapi.services.stream.HeaderPrintWriter out) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
thrashCache()
T_CachedInteger range - 0 - 100
pick a key randomly
48%/48%/4% chance of Int/String/invalid key
90%/5%/5% chance of can find / can't find / raise exception
50%/30%/20% find/findCached/create
|
protected org.apache.derby.iapi.services.cache.CacheManager cm
protected int iterations
protected org.apache.derby.iapi.services.stream.HeaderPrintWriter out
protected T_CacheService parent
public T_CacheUser(org.apache.derby.iapi.services.cache.CacheManager cm, int iterations, T_CacheService parent, org.apache.derby.iapi.services.stream.HeaderPrintWriter out)
public void run()
run
in interface java.lang.Runnable
public void thrashCache() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- Standard Derby Error policyT_Fail
- Some errorApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.