Skip to content

Commit 92a3694

Browse files
committed
Fixed import
1 parent 45d6231 commit 92a3694

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/redis/benchmark/utils/FileEventListener.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import org.apache.commons.io.monitor.FileAlterationMonitor;
77
import org.apache.commons.io.monitor.FileAlterationObserver;
88

9+
import static com.redis.benchmark.utils.JedisConnectionManagement.firstActiveIndex;
10+
911
public final class FileEventListener {
1012

1113
public static final FileEventListener FILE_EVENT_LISTENER = new FileEventListener();
@@ -27,9 +29,9 @@ public void start(String dir, int pollInterval) throws Exception {
2729
public void onFileCreate(File file) {
2830
System.out.println("\nDetected file create event. File: " + file);
2931
int failBackIndex = Integer.parseInt(file.getName().substring(0, 1));
30-
JedisConnectionManagement.firstActiveIndex = failBackIndex;
32+
firstActiveIndex = failBackIndex;
3133
System.out.println("User have requested a fail-back event. Setting the active multi cluster index to " + failBackIndex);
32-
JedisConnectionManagement.provider.setActiveMultiClusterIndex(JedisConnectionManagement.firstActiveIndex);
34+
JedisConnectionManagement.provider.setActiveMultiClusterIndex(firstActiveIndex);
3335
}
3436

3537
@Override

0 commit comments

Comments
 (0)