// If specifed, use LocalKeyValueStorage - key-value file based storage
storageInstance = new LocalKeyValueStorage(context);
} else {
LOG.debug("Using Persistence API to store data");
// If not specifed, use ambari-views Persistence API
storageInstance = new InstanceKeyValueStorage(context);
}
}
return storageInstance;
}