Skip to content

Commit

Permalink
For some reason the method that I had added to retrieve storedefs was
Browse files Browse the repository at this point in the history
missing adding it back
  • Loading branch information
abh1nay committed Jun 18, 2013
1 parent f23d03b commit f84b947
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/java/voldemort/client/AbstractStoreClientFactory.java
Expand Up @@ -106,6 +106,7 @@ public abstract class AbstractStoreClientFactory implements StoreClientFactory {
private final HashSet<SchedulerService> clientAsyncServiceRepo;

private Cluster cluster;
private List<StoreDefinition> storeDefs;

public AbstractStoreClientFactory(ClientConfig config) {
this.config = config;
Expand Down Expand Up @@ -221,8 +222,7 @@ public <K, V, T> Store<K, V, T> getRawStore(String storeName,
logger.debug("Obtained stores metadata xml" + storesXml);
}

List<StoreDefinition> storeDefs = storeMapper.readStoreList(new StringReader(storesXml),
false);
storeDefs = storeMapper.readStoreList(new StringReader(storesXml), false);
StoreDefinition storeDef = null;
for(StoreDefinition d: storeDefs)
if(d.getName().equals(storeName))
Expand Down Expand Up @@ -536,4 +536,12 @@ private void stopClientAsyncSchedulers() {
protected String getClientContext() {
return clientContextName;
}

public Cluster getCluster() {
return cluster;
}

public List<StoreDefinition> getStoreDefs() {
return storeDefs;
}
}

0 comments on commit f84b947

Please sign in to comment.