fedora.client.test
Class PerformanceTests
java.lang.Object
fedora.client.test.PerformanceTests
- All Implemented Interfaces:
- Constants
public class PerformanceTests
- extends java.lang.Object
- implements Constants
Performs test to determine the time necessary to execute
various repository activities.
- Author:
- Bill Branan
| Fields inherited from interface fedora.common.Constants |
ACTION, BDEF, BMECH, DATASTREAM, DC, DISSEMINATOR, ENVIRONMENT, FEDORA, FEDORA_HOME, FEDORA_SYSTEM_DEF_PID, FEDORA_SYSTEM_DEF_URI, HTTP_REQUEST, MODEL, OBJECT, RDF, RECOVERY, RELS_EXT, RESOURCE, SUBJECT, TUCANA, VIEW, XSD |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerformanceTests
public PerformanceTests()
init
public void init(java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password)
throws java.lang.Exception
- Throws:
java.lang.Exception
runIngestTest
public long runIngestTest()
throws java.lang.Exception
- Returns:
- average run time for a single operation
- Throws:
java.lang.Exception
runAddDatastreamTest
public long runAddDatastreamTest()
throws java.lang.Exception
- Returns:
- average run time for a single operation
- Throws:
java.lang.Exception
runModifyDatastreamByRefTest
public long runModifyDatastreamByRefTest()
throws java.lang.Exception
- Returns:
- average run time for a single operation
- Throws:
java.lang.Exception
runModifyDatastreamByValueTest
public long runModifyDatastreamByValueTest()
throws java.lang.Exception
- Returns:
- average run time for a single operation
- Throws:
java.lang.Exception
runPurgeDatastreamTest
public long runPurgeDatastreamTest()
throws java.lang.Exception
- Returns:
- average run time for a single operation
- Throws:
java.lang.Exception
runPurgeObjectTest
public long runPurgeObjectTest()
throws java.lang.Exception
- Returns:
- average run time for a single operation
- Throws:
java.lang.Exception
runGetDatastreamTest
public long runGetDatastreamTest()
throws java.lang.Exception
- Returns:
- total time to run all iterations
- Throws:
java.lang.Exception
runGetDatastreamRestTest
public long runGetDatastreamRestTest()
throws java.lang.Exception
- Returns:
- total time to run all iterations
- Throws:
java.lang.Exception
runThroughputTests
public long[] runThroughputTests()
throws java.lang.Exception
- Returns:
- total time to run all iterations
{ingest, addDatastream, modifyDatastreamByReference,
modifyDatastreamByValue, purgeDatastream, purgeObject}
- Throws:
java.lang.Exception
runThreadedThroughputTests
public long[] runThreadedThroughputTests()
throws java.lang.Exception
- Returns:
- total time to run all iterations with threading
{ingest, addDatastream, modifyDatastreamByReference,
modifyDatastreamByValue, purgeDatastream, purgeObject,
getDatastream, getDatastreamREST}
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception