cgl.narada.benchmark.matching
Class MatchingOverheads

java.lang.Object
  extended by cgl.narada.benchmark.matching.MatchingOverheads

public class MatchingOverheads
extends Object


Constructor Summary
MatchingOverheads()
           
 
Method Summary
 void constructSubscriptions()
           
 void constructSubscriptionsWithoutTag()
           
 boolean evaluateRegExOnInput(Pattern regExPattern, String contentSynopsis)
           
 void garbageCollectAndSleep()
           
 Document getDocumentFromFile(String filename)
           
 int getRandomInt(int upperBound)
           
 void lazySleep()
           
static void main(String[] args)
           
 void processQuery(Document document, String xpath)
           
 void reportBenchmarkCase(String algorithm, int numOfSubscriptions, int numOfAttributes)
           
 void smartSleep()
           
 void testFunction()
           
 void testHashtableAccessTimes()
           
 void testHeirarchicalTopics(int numOfSubscriptions, int numOfAttributes)
           
 void testIntMatching(int numOfSubscriptions)
           
 void testNumberOfEdges(int numOfSubscriptions, int numOfAttributes)
           
 void testRegExQueries(int numOfSubscriptions, int numOfAttributes)
           
 void testRegExQueries2(int numOfSubscriptions, String contentSynopsis)
           
 void testRegExQuery()
           
 void testSQLProperties(int numOfSubscriptions, int numOfAttributes)
           
 void testStringMatching(int numOfSubscriptions, int stringLength)
           
 void testTagValuePairs(int numOfSubscriptions, int numOfAttributes)
           
 void testXPathQueries(int numOfSubscriptions, int numOfAttributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchingOverheads

public MatchingOverheads()
                  throws ServiceException
Throws:
ServiceException
Method Detail

testIntMatching

public void testIntMatching(int numOfSubscriptions)
                     throws ServiceException
Throws:
ServiceException

testStringMatching

public void testStringMatching(int numOfSubscriptions,
                               int stringLength)

constructSubscriptionsWithoutTag

public void constructSubscriptionsWithoutTag()

constructSubscriptions

public void constructSubscriptions()

testNumberOfEdges

public void testNumberOfEdges(int numOfSubscriptions,
                              int numOfAttributes)
                       throws ServiceException
Throws:
ServiceException

testTagValuePairs

public void testTagValuePairs(int numOfSubscriptions,
                              int numOfAttributes)
                       throws ServiceException
Throws:
ServiceException

testHeirarchicalTopics

public void testHeirarchicalTopics(int numOfSubscriptions,
                                   int numOfAttributes)
                            throws ServiceException
Throws:
ServiceException

getRandomInt

public int getRandomInt(int upperBound)

testRegExQueries

public void testRegExQueries(int numOfSubscriptions,
                             int numOfAttributes)
                      throws ServiceException
Throws:
ServiceException

testRegExQuery

public void testRegExQuery()

testRegExQueries2

public void testRegExQueries2(int numOfSubscriptions,
                              String contentSynopsis)

evaluateRegExOnInput

public boolean evaluateRegExOnInput(Pattern regExPattern,
                                    String contentSynopsis)

testSQLProperties

public void testSQLProperties(int numOfSubscriptions,
                              int numOfAttributes)

testXPathQueries

public void testXPathQueries(int numOfSubscriptions,
                             int numOfAttributes)

processQuery

public void processQuery(Document document,
                         String xpath)

getDocumentFromFile

public Document getDocumentFromFile(String filename)

testFunction

public void testFunction()

reportBenchmarkCase

public void reportBenchmarkCase(String algorithm,
                                int numOfSubscriptions,
                                int numOfAttributes)

lazySleep

public void lazySleep()

garbageCollectAndSleep

public void garbageCollectAndSleep()

smartSleep

public void smartSleep()
                throws ServiceException
Throws:
ServiceException

testHashtableAccessTimes

public void testHashtableAccessTimes()

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project