Skip to content
Snippets Groups Projects
Commit 4d270b68 authored by allanbank's avatar allanbank
Browse files

Merge pull request #359 from allanbank/pr-316

Shutdown the status thread as soon as clients complete (Issue #316)
parents 935efc64 e80aa6e6
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
package com.yahoo.ycsb; package com.yahoo.ycsb;
import java.util.List;
import java.util.Vector; import java.util.Vector;
/** /**
...@@ -29,12 +30,12 @@ import java.util.Vector; ...@@ -29,12 +30,12 @@ import java.util.Vector;
*/ */
public class TerminatorThread extends Thread { public class TerminatorThread extends Thread {
private Vector<Thread> threads; private final List<? extends Thread> threads;
private long maxExecutionTime; private long maxExecutionTime;
private Workload workload; private Workload workload;
private long waitTimeOutInMS; private long waitTimeOutInMS;
public TerminatorThread(long maxExecutionTime, Vector<Thread> threads, public TerminatorThread(long maxExecutionTime, List<? extends Thread> threads,
Workload workload) { Workload workload) {
this.maxExecutionTime = maxExecutionTime; this.maxExecutionTime = maxExecutionTime;
this.threads = threads; this.threads = threads;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment