//PROTOBUF public override void ExecuteCommand(ClientManager clientManager, Alachisoft.NCache.Common.Protobuf.Command command) { CommandInfo cmdInfo; try { cmdInfo = ParseCommand(command, clientManager).clone(); } catch (Exception exc) { if (!base.immatureId.Equals("-2")) { _serializedResponsePackets.Add(Alachisoft.NCache.Common.Util.ResponseHelper.SerializeExceptionResponseWithoutType(exc, command.requestID, command.commandID)); } return; } Alachisoft.NCache.Caching.Cache cache = null; try { string server = ConnectionManager.ServerIpAddress; int port = ConnectionManager.ServerPort; cache = CacheProvider.Provider.GetCacheInstanceIgnoreReplica(cmdInfo.CacheId); if (cache == null) { throw new Exception("Cache is not registered"); } if (!cache.IsRunning) { throw new Exception("Cache is not running"); } #if (SERVER) if (cache.CacheType.Equals("replicated-server")) { cache.GetLeastLoadedServer(ref server, ref port); } else { if (cache.IsCoordinator) /*return this node information...*/ } { else { cache.GetActiveServer(ref server, ref port); } }