public boolean isCompactionPossible() { return getParent().isCompactionPossible(); } }
public boolean couldHaveKrf() { return getParent().couldHaveKrf(); }
public boolean isCompactionPossible() { return getParent().isCompactionPossible(); } }
public boolean couldHaveKrf() { return getParent().couldHaveKrf(); }
public void crfCreate(long oplogId) { getParent().getDiskInitFile().crfCreate(oplogId); }
public void drfCreate(long oplogId) { getParent().getDiskInitFile().drfCreate(oplogId); }
public void crfCreate(long oplogId) { getParent().getDiskInitFile().crfCreate(oplogId); }
public void drfDelete(long oplogId) { getParent().getDiskInitFile().drfDelete(oplogId); }
public void crfDelete(long oplogId) { getParent().getDiskInitFile().crfDelete(oplogId); }
public void drfDelete(long oplogId) { getParent().getDiskInitFile().drfDelete(oplogId); }
public void drfCreate(long oplogId) { getParent().getDiskInitFile().drfCreate(oplogId); }
public void crfDelete(long oplogId) { getParent().getDiskInitFile().crfDelete(oplogId); }
/** * This constructor will get invoked only in case of persistent region when it * is recovering an oplog. * * @param oplogId * @param parent */ Oplog(long oplogId, PersistentOplogSet parent) { // @todo have the crf and drf use different directories. if (oplogId > DiskId.MAX_OPLOG_ID) { throw new IllegalStateException("Too many oplogs. The oplog id can not exceed " + DiskId.MAX_OPLOG_ID); } this.isRecovering = true; this.oplogId = oplogId; this.parent = parent.getParent(); this.oplogSet = parent; this.opState = new OpState(); long maxOplogSizeParam = getParent().getMaxOplogSizeInBytes(); this.maxOplogSize = maxOplogSizeParam; setMaxCrfDrfSize(); this.stats = getParent().getStats(); this.compactOplogs = getParent().getAutoCompact(); this.closed = true; this.crf.RAFClosed = true; this.deleted.set(true); this.haveRecoveredCrf = false; this.haveRecoveredDrf = false; }
/** * This constructor will get invoked only in case of persistent region * when it is recovering an oplog. * @param oplogId * @param parent */ Oplog(long oplogId, PersistentOplogSet parent) { // @todo have the crf and drf use different directories. if (oplogId > DiskId.MAX_OPLOG_ID) { throw new IllegalStateException("Too many oplogs. The oplog id can not exceed " + DiskId.MAX_OPLOG_ID); } this.isRecovering = true; this.oplogId = oplogId; this.parent = parent.getParent(); this.oplogSet = parent; this.logger = getParent().getCache().getLoggerI18n(); this.opState = new OpState(); long maxOplogSizeParam = getParent().getMaxOplogSizeInBytes(); this.maxOplogSize = maxOplogSizeParam; setMaxCrfDrfSize(); this.stats = getParent().getStats(); this.compactOplogs = getParent().getAutoCompact(); this.closed = true; this.crf.RAFClosed = true; this.deleted.set(true); this.haveRecoveredCrf = false; this.haveRecoveredDrf = false; this.newOplog = false; this.idxkrf = new OplogIndex(this); }
this.parent = parent.getParent(); this.dirHolder = dirHolder;
this.parent = parent.getParent(); this.dirHolder = dirHolder;
allowing(oplogSet).getCurrentlyRecovering(5L); will(returnValue(drs)); allowing(oplogSet).getParent(); will(returnValue(parent)); ignoring(oplogSet);