Exemplo n.º 1
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            _nodeConfig = reader.ReadObject() as NodeConfiguration;

            //Needs to be initialized at ever read.
            _cacheConfigsMap = new Dictionary<string, CacheConfiguration>();
            int lenght = reader.ReadInt32();
            for (int i = 0; i < lenght; i++)
            {
                _cacheConfigsMap.Add(reader.ReadObject() as string, reader.ReadObject() as CacheConfiguration);
            }
            _bindIp = reader.ReadObject() as string;
        }
Exemplo n.º 2
0
 public object Clone()
 {
     NodeConfiguration config = new NodeConfiguration();
     config._configurationId = _configurationId;
     config._connectionRetries = _connectionRetries;
     config._connectionTimeout = _connectionTimeout;
     config._retryInterval = _retryInterval;
     config._serverPort = _serverPort;
     config._requestTimeout = _requestTimeout;
     config._retryConnectionDelay = _retryConnectionDelay;
     config._jvcServerPort = _jvcServerPort;
     return config;
 }