Skip to content
Snippets Groups Projects
Commit 5a8ee386 authored by Rob Adams's avatar Rob Adams
Browse files

Add package qualifiers to store name

parent d6debd1b
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,9 @@ import net.floodlightcontroller.debugcounter.IDebugCounterService;
public class SyncTorture implements IFloodlightModule {
protected static final Logger logger =
LoggerFactory.getLogger(SyncTorture.class);
private static final String SYNC_STORE_NAME =
SyncTorture.class.getCanonicalName() + ".torture";
ISyncService syncService;
IDebugCounterService debugCounter;
......@@ -67,7 +70,7 @@ public class SyncTorture implements IFloodlightModule {
debugCounter = context.getServiceImpl(IDebugCounterService.class);
try {
syncService.registerStore("torture", Scope.GLOBAL);
syncService.registerStore(SYNC_STORE_NAME, Scope.GLOBAL);
} catch (SyncException e) {
throw new FloodlightModuleException(e);
}
......@@ -92,7 +95,7 @@ public class SyncTorture implements IFloodlightModule {
throws FloodlightModuleException {
try {
final IStoreClient<String, TortureValue> storeClient =
syncService.getStoreClient("torture",
syncService.getStoreClient(SYNC_STORE_NAME,
String.class,
TortureValue.class);
for (int i = 0; i < numWorkers; i++) {
......
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