use of com.ctrip.xpipe.redis.core.store.ReplicationStoreMeta in project x-pipe by ctripcorp.
the class AbstractMetaStore method loadMeta.
@Override
public final void loadMeta() throws IOException {
synchronized (metaRef) {
ReplicationStoreMeta meta = loadMetaCreateIfEmpty(baseDir, META_FILE);
metaRef.set(meta);
logger.info("Meta loaded: {}", meta);
}
}
use of com.ctrip.xpipe.redis.core.store.ReplicationStoreMeta in project x-pipe by ctripcorp.
the class AbstractMetaStore method setRdbFileSize.
@Override
public void setRdbFileSize(long rdbFileSize) throws IOException {
synchronized (metaRef) {
ReplicationStoreMeta metaDup = dupReplicationStoreMeta();
if (metaDup.getRdbFileSize() != rdbFileSize) {
metaDup.setRdbFileSize(rdbFileSize);
saveMeta(metaDup);
}
}
}
Aggregations