Exemple #1
0
 public BulkGetCommand(string[] keys, BitSet flagMap)
 {
     base.name       = "BulkGetCommand";
     base.BulkKeys   = keys;
     _bulkGetCommand = new Alachisoft.NCache.Common.Protobuf.BulkGetCommand();
     _bulkGetCommand.keys.AddRange(keys);
     _bulkGetCommand.flag      = flagMap.Data;
     _bulkGetCommand.requestId = base.RequestId;
 }
Exemple #2
0
 public BulkGetCommand(string[] keys, BitSet flagMap)
 {
     base.name = "BulkGetCommand";
     base.BulkKeys = keys;
     _bulkGetCommand = new Alachisoft.NCache.Common.Protobuf.BulkGetCommand();
     _bulkGetCommand.keys.AddRange(keys);
     _bulkGetCommand.flag = flagMap.Data;
     _bulkGetCommand.requestId = base.RequestId;
 }
 public BulkGetCommand(string[] keys, BitSet flagMap, string provider, int methodOverload)
 {
     base.name       = "BulkGetCommand";
     base.BulkKeys   = keys;
     _bulkGetCommand = new Alachisoft.NCache.Common.Protobuf.BulkGetCommand();
     _bulkGetCommand.keys.AddRange(keys);
     _bulkGetCommand.providerName = provider;
     _bulkGetCommand.flag         = flagMap.Data;
     _bulkGetCommand.requestId    = base.RequestId;
     _methodOverload = methodOverload;
 }
        //PROTOBUF
        private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.BulkGetCommand bulkGetCommand = command.bulkGetCommand;
            cmdInfo.Keys             = bulkGetCommand.keys.ToArray();
            cmdInfo.RequestId        = bulkGetCommand.requestId.ToString();
            cmdInfo.FlagMap          = new BitSet((byte)bulkGetCommand.flag);
            cmdInfo.ClientLastViewId = command.clientLastViewId;
            cmdInfo.CommandVersion   = command.commandVersion;
            return(cmdInfo);
        }
Exemple #5
0
        //PROTOBUF
        private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.BulkGetCommand bulkGetCommand = command.bulkGetCommand;
            cmdInfo.Keys         = bulkGetCommand.keys.ToArray();
            cmdInfo.providerName = bulkGetCommand.providerName;
            cmdInfo.RequestId    = bulkGetCommand.requestId.ToString();
            BitSet bitset = BitSet.CreateAndMarkInUse(clientManager.CacheFakePool, NCModulesConstants.SocketServer);

            bitset.Data = ((byte)bulkGetCommand.flag);

            cmdInfo.FlagMap          = bitset;
            cmdInfo.ClientLastViewId = command.clientLastViewId;
            cmdInfo.CommandVersion   = command.commandVersion;

            return(cmdInfo);
        }