Static Public Member Functions | |
Collection< Integer > | generateKeys (int size, boolean exact, int minValue, int maxValue, Collection< Integer > common) |
Collection< ILogEntry > | generateLogs (int numOfLogs) throws Exception |
Collection< ILogEntry > | generateLogsType (int numOfLogs, LogTypeHelper logType) throws Exception |
void | populateCache (ILogMap cache, int numOfLogs) throws Exception |
ILogMap | getCache (int type, Integer opt) throws Exception |
Collection< Integer > | generateKeys (int size, boolean exact, int minValue, int maxValue, Collection< Integer > common) |
Collection< ILogEntry > | generateLogs (int numOfLogs) throws Exception |
Collection< ILogEntry > | generateLogsType (int numOfLogs, LogTypeHelper logType) throws Exception |
Static Public Attributes | |
final String | logHeaderStr = " TimeStamp=\"" |
final String | logBodyStr = "\" Routine=\"CacheTest::testGet\" Host=\"this\" Process=\"test\" Thread=\"main\" Context=\"\"><![CDATA[" |
final String | logFooterStr = "]]></" |
final int | LOGFILECACHE_TYPE = 0 |
final int | LOGBUFFEREDFILECACHE_TYPE = 1 |
final int | LOGCACHE_TYPE = 2 |
final int | NUMOFCACHETYPES = 3 |
Static Private Attributes | |
ACSLogParser | parser |
|
Generate a random collection of keys. The size of the collection can be random or fixed. If it is random then the exact parameter must be false; in that case the number of elements returned is limited by size (inclusive) The number of elements in the collection is fixed if the exact parameter is true; in that case the number of elements returned is specified in size. If the size is random, the returned collection can be empty. If common is not null, each generated key must also be present in common. For this to work, the size of common is an upper limit for the size of the returned collection.
|
|
Generate a random collection of keys. The size of the collection can be random or fixed. If it is random then the exact parameter must be false; in that case the number of elements returned is limited by size (inclusive) The number of elements in the collection is fixed if the exact parameter is true; in that case the number of elements returned is specified in size. If the size is random, the returned collection can be empty. If common is not null, each generated key must also be present in common. For this to work, the size of common is an upper limit for the size of the returned collection.
|
|
Generate a set of logs to be used for testing Each log has
|
|
Generate a set of logs to be used for testing Each log has
|
|
Generate a set of logs of a given type Each log has
|
|
Generate a set of logs of a given type Each log has
|
|
Create a cache of the given type. The cache is created with the empty constructor if the opt param is null. If opt is not null the cache is created passing opt in the constructor. LogFileCache has only the empty constructor: for this class opt is ignored.
|
|
Add numOfLogs log to the cache.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|