Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
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.RequestId        = bulkGetCommand.requestId.ToString();
            cmdInfo.FlagMap          = new BitSet((byte)bulkGetCommand.flag);
            cmdInfo.ClientLastViewId = command.clientLastViewId;
            cmdInfo.CommandVersion   = command.commandVersion;
            return(cmdInfo);
        }
Esempio n. 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);
        }