@Override
    public final FailStore getFailStore(Config config, String storePath) {
        if (StringUtils.isEmpty(storePath)) {
            throw new IllegalStateException("storePath should not be empty");
        }
        File dbPath = new File(storePath.concat(getName()).concat("/").concat(config.getIdentity()));
        try {
            FileUtils.createDirIfNotExist(dbPath);
        } catch (IOException e) {
            throw new IllegalStateException(e);
        }
        return newInstance(dbPath, true);
    }
@author Robert HG (254963746@qq.com) on 11/10/15.
lts-core/src/main/java/com/github/ltsopensource/core/failstore/AbstractFailStoreFactory.java