/** * Return the feedbackstore for the specified storeId. If there are multiple files for this storeId the last one is * returned * * @param the * storeId * @return the feedbackstore for that storeID */ private FeedbackStore getLastStore(long storeID) throws IOException { FeedbackStore currentStore = getCurrentStore(); if (currentStore != null && currentStore.getId() == storeID) { return currentStore; } int lastFileNo = getLastLogfileNumber(storeID); return createStore(storeID, lastFileNo); }
int newFileNo = getLastLogfileNumber(storeID) + 1; currentStore = setStore(createStore(storeID, newFileNo));