Package org.duracloud.syncoptimize.test
Class SyncTestManager
java.lang.Object
org.duracloud.syncoptimize.test.SyncTestManager
Manages the running of the optimizer tests. These tests use the SyncTool
to transfer content, then capture the time required for the transfer to
complete. The tests begin with a high and low thread count value and migrate
toward the fastest time. If the fastest time is the original high number,
the tests are repeated with larger thread numbers.
- Author:
- Bill Branan Date: 5/16/14
-
Constructor Summary
ConstructorsConstructorDescriptionSyncTestManager(SyncOptimizeConfig syncOptConfig, File dataDir, File workDir, SyncTestStatus syncStatus, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentStoreprotected SyncTesterintrunTest()Manages the running of sync tests to determine the optimal number of threads to maximize throughput.
-
Constructor Details
-
SyncTestManager
public SyncTestManager(SyncOptimizeConfig syncOptConfig, File dataDir, File workDir, SyncTestStatus syncStatus, String prefix) throws IOException - Throws:
IOException
-
-
Method Details
-
runTest
public int runTest()Manages the running of sync tests to determine the optimal number of threads to maximize throughput.- Returns:
- optimal thread number
-
getSyncTester
-
getContentStore
-