Package org.duracloud.syncoptimize.test
Class SyncTestManager
- java.lang.Object
-
- org.duracloud.syncoptimize.test.SyncTestManager
-
public class SyncTestManager extends Object
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
Constructors Constructor Description SyncTestManager(SyncOptimizeConfig syncOptConfig, File dataDir, File workDir, SyncTestStatus syncStatus, String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ContentStoregetContentStore()protected SyncTestergetSyncTester()intrunTest()Manages the running of sync tests to determine the optimal number of threads to maximize throughput.
-
-
-
Constructor Detail
-
SyncTestManager
public SyncTestManager(SyncOptimizeConfig syncOptConfig, File dataDir, File workDir, SyncTestStatus syncStatus, String prefix) throws IOException
- Throws:
IOException
-
-
Method Detail
-
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
protected SyncTester getSyncTester()
-
getContentStore
protected ContentStore getContentStore()
-
-