Ejemplo n.º 1
0
        public CommandManager(PerfStatsCollector perfStatsCollector)
        {
            _perfStatsCollector = perfStatsCollector;

            CompactFormatterServices.RegisterCompactType(typeof(Alachisoft.NCache.Caching.OperationContext), 153);

            CompactFormatterServices.RegisterCompactType(typeof(Alachisoft.NCache.Common.DataStructures.EnumerationPointer), 161);

            CompactFormatterServices.RegisterCompactType(typeof(Alachisoft.NCache.Common.DataStructures.EnumerationDataChunk), 162);
        }
Ejemplo n.º 2
0
 public DistributedQueue(PerfStatsCollector statsCollector)
 {
     _perfStatsCollector = statsCollector;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Starts the socket server.It registers some types with compact Framework, 
        /// enables simple logs as well as DetailedLogs, then it checks Ncache licence information.
        /// starts connection manager and perfmon counters.
        /// </summary>
        /// <param name="bindIP" ></param>
        /// 
        public void Start(IPAddress bindIP, LoggerNames loggerName, string perfStatColInstanceName, CommandManagerType cmdMgrType)
        {
            if (loggerName == null)
                _loggerName = LoggerNames.SocketServerLogs;
            else
                _loggerName = loggerName;
            InitializeLogging();
            _perfStatsColl = new PerfStatsCollector("NCache Server", _serverPort);
            _conManager = new ConnectionManager(_perfStatsColl);
            _conManager.Start(bindIP, _serverPort, _sendBuffer, _recieveBuffer, _logger, cmdMgrType);

            //We initialize PerfstatsCollector only for SocketServer's instance for client.
            //Management socket server has just DUMMY stats collector.
            if(cmdMgrType == CommandManagerType.NCacheClient)
                _perfStatsColl.InitializePerfCounters();
        }
Ejemplo n.º 4
0
 public ConnectionManager(PerfStatsCollector statsCollector)
 {
     _eventsAndCallbackQueue = new DistributedQueue(statsCollector);
     _perfStatsCollector = statsCollector;
 }