- Common ways to obtain FSEditLogOp
private void myMethod () {FSEditLogOp f =
EditLogInputStream editLogInputStream;editLogInputStream.readOp()
streams[curIdx].readOp()
FSEditLogOp.OpInstanceCache fSEditLogOpOpInstanceCache;FSEditLogOpCodes opCode;fSEditLogOpOpInstanceCache.get(opCode)
- Smart code suggestions by Codota
}
/** * Constructor for an EditLog Op. EditLog ops cannot be constructed * directly, but only through Reader#readOp. */ @VisibleForTesting protected FSEditLogOp(FSEditLogOpCodes opCode) { this.opCode = opCode; reset(); }
synchronized boolean doEditTransaction(final FSEditLogOp op) { long start = beginTransaction(); op.setTransactionId(txid); try { editLogStream.write(op); } catch (IOException ex) { // All journals failed, it is handled in logSync. } finally { op.reset(); } endTransaction(start); return shouldForceSync(); }
/** * Constructor for an EditLog Op. EditLog ops cannot be constructed * directly, but only through Reader#readOp. */ @VisibleForTesting protected FSEditLogOp(FSEditLogOpCodes opCode) { this.opCode = opCode; reset(); }
/** * Constructor for an EditLog Op. EditLog ops cannot be constructed * directly, but only through Reader#readOp. */ @VisibleForTesting protected FSEditLogOp(FSEditLogOpCodes opCode) { this.opCode = opCode; reset(); }