Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Which means that it is necessary to use alias option value as defined by above.

The value set in CHALLENGE_RESPONSE_SECRET var will be used to recover the key from the key store.

...

To use the sync service, you need create two vars ISyncService and IStoreClient and initiate the syncService: 

Code Block
languagejava
private ISyncService syncService;

...


private IStoreClient<String, String> storeFT;

...


this.syncService = context.getServiceImpl(ISyncService.class);

 

And as well as start your store with global scope (which means to sync remote updates):


try {
this.syncService.registerStore("NameOfMyStore", Scope.GLOBAL);
this.storeFT = this.syncService
.getStoreClient("NameOfMyStore",
String.class,
String.class);
this.storeFT.addStoreListener(this);
} catch (SyncException e) {
throw new FloodlightModuleException("Error while setting up sync service", e);
}

...