Ejemplo n.º 1
0
 // to create edits and get edits filename
 private static ImmutableSet <FSEditLogOpCodes> SkippedOps()
 {
     ImmutableSet.Builder <FSEditLogOpCodes> b = ImmutableSet.Builder();
     // Deprecated opcodes
     ((ImmutableSet.Builder <FSEditLogOpCodes>)((ImmutableSet.Builder <FSEditLogOpCodes>
                                                 )((ImmutableSet.Builder <FSEditLogOpCodes>)((ImmutableSet.Builder <FSEditLogOpCodes
                                                                                                                    >)b.Add(FSEditLogOpCodes.OpDatanodeAdd)).Add(FSEditLogOpCodes.OpDatanodeRemove))
                                                .Add(FSEditLogOpCodes.OpSetNsQuota)).Add(FSEditLogOpCodes.OpClearNsQuota)).Add(FSEditLogOpCodes
                                                                                                                               .OpSetGenstampV1);
     // Cannot test delegation token related code in insecure set up
     ((ImmutableSet.Builder <FSEditLogOpCodes>)((ImmutableSet.Builder <FSEditLogOpCodes>
                                                 )b.Add(FSEditLogOpCodes.OpGetDelegationToken)).Add(FSEditLogOpCodes.OpRenewDelegationToken
                                                                                                    )).Add(FSEditLogOpCodes.OpCancelDelegationToken);
     // Skip invalid opcode
     b.Add(FSEditLogOpCodes.OpInvalid);
     return((ImmutableSet <FSEditLogOpCodes>)b.Build());
 }