Exemple #1
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            tcpPort                 = reader.ReadInt32();
            numInitHosts            = reader.ReadInt32();
            connectionRetries       = reader.ReadInt32();
            connectionRetryInterval = reader.ReadInt32();
            portRange               = reader.ReadInt32();
            initialHosts            = reader.ReadObject() as string;

            joinRetryInterval = reader.ReadInt32();
            joinRetries       = reader.ReadInt32();
        }
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _connectionRetries    = reader.ReadInt32();
     _retryInterval        = reader.ReadInt32();
     _requestTimeout       = reader.ReadInt32();
     _connectionTimeout    = reader.ReadInt32();
     _serverPort           = reader.ReadInt32();
     _configurationId      = reader.ReadInt32();
     _retryConnectionDelay = reader.ReadInt32();
     _jvcServerPort        = reader.ReadInt32();
     _localServerIp        = reader.ReadObject() as string;
 }
Exemple #3
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     Group                   = reader.ReadObject() as string;
     SubGroup                = reader.ReadObject() as string;
     Version                 = reader.ReadUInt64();
     Priority                = reader.ReadInt32();
     ReSyncExpiredItems      = reader.ReadBoolean();
     ReSyncProviderCacheItem = reader.ReadObject() as string;
     Flags                   = reader.ReadObject() as BitSet;
     Value                   = reader.ReadObject();
     EntryType               = (EntryType)reader.ReadObject();
 }
Exemple #4
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            _serversList = new Dictionary <int, Dom.CacheServer>();
            int length = reader.ReadInt32();

            for (int i = 0; i < length; i++)
            {
                int key = reader.ReadInt32();
                ClientConfiguration.Dom.CacheServer value = reader.ReadObject() as ClientConfiguration.Dom.CacheServer;
                _serversList.Add(key, value);
            }
        }
Exemple #5
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            _columns = reader.ReadObject() as ColumnCollection;

            _rows = new HashVector();
            int rowCount = reader.ReadInt32();

            for (int i = 0; i < rowCount; i++)
            {
                _rows.Add(reader.ReadInt32(), reader.ReadObject() as RecordRow);
            }
        }
Exemple #6
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            _majorVersion1 = reader.ReadByte();
            _majorVersion2 = reader.ReadByte();
            _minorVersion1 = reader.ReadByte();
            _minorVersion2 = reader.ReadByte();
            _productName   = (string)reader.ReadObject();
            _editionID     = reader.ReadInt32();
            int temp = reader.ReadInt32();

            _additionalData = reader.ReadBytes(temp);
        }
Exemple #7
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;
        }
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            _registeredQueries = Common.Util.SerializationUtility.DeserializeClusteredList <ContinuousQuery>(reader);
            _clientRefs        = reader.ReadObject() as HashVector;

            _addNotifications    = reader.ReadObject() as HashVector;
            _updateNotifications = reader.ReadObject() as HashVector;
            _removeNotifications = reader.ReadObject() as HashVector;

            maxAddDFAgainstCID    = reader.ReadObject() as HashVector;
            maxUpdateDFAgainstCID = reader.ReadObject() as HashVector;
            maxRemoveDFAgainstCID = reader.ReadObject() as HashVector;

            addDFAgainstCUniqueID    = reader.ReadObject() as HashVector;
            updateDFAgainstCUniqueID = reader.ReadObject() as HashVector;
            removeDFAgainstCUniqueID = reader.ReadObject() as HashVector;
        }
Exemple #9
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            s_hostInfoMap = reader.ReadObject() as Dictionary <string, NodeOSInfo>;

            bool flag = reader.ReadBoolean();

            if (flag)
            {
                int length = reader.ReadInt32();
                _nodeinfo = new NodeOSInfo[length];

                for (int i = 0; i < length; i++)
                {
                    _nodeinfo[i] = (NodeOSInfo)reader.ReadObject();
                }
            }
        }
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _readerId         = reader.ReadObject() as string;
     _recordSet        = reader.ReadObject() as IRecordSet;
     _nodeAddress      = reader.ReadObject() as string;
     _nextIndex        = reader.ReadInt32();
     _orderbyArguments = (List <OrderByArgument>)reader.ReadObject();
     if (_orderbyArguments != null)
     {
         int noOfArgs = reader.ReadInt32();
         _orderbyArguments = new List <OrderByArgument>();
         for (int i = 0; i < noOfArgs; i++)
         {
             _orderbyArguments.Add(reader.ReadObject() as OrderByArgument);
         }
     }
     _isGrouped = reader.ReadBoolean();
 }
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            _columns = new HashVector();
            int columnCount = reader.ReadInt32();

            for (int i = 0; i < columnCount; i++)
            {
                _columns.Add(reader.ReadInt32(), reader.ReadObject() as RecordColumn);
            }

            _nameToIndex = new HashVector();
            int indexCount = reader.ReadInt32();

            for (int i = 0; i < indexCount; i++)
            {
                _nameToIndex.Add(reader.ReadObject() as string, reader.ReadInt32());
            }
        }
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            int length = reader.ReadInt32();

            _parameterList = new ArrayList();
            bool isByteArray = false;

            for (int i = 0; i < length; i++)
            {
                isByteArray = reader.ReadBoolean();
                if (isByteArray)
                {
                    int count = reader.ReadInt32();
                    _parameterList.Add(reader.ReadBytes(count));
                }
                else
                {
                    _parameterList.Add(reader.ReadObject());
                }
            }
        }
        public static ClusteredList <T> DeserializeClusteredList <T>(Runtime.Serialization.IO.CompactReader reader)
        {
            bool flag = reader.ReadBoolean();

            if (flag)
            {
                int length             = reader.ReadInt32();
                ClusteredList <T> list = new ClusteredList <T>();

                for (int i = 0; i < length; i++)
                {
                    list.Add((T)reader.ReadObject());
                }

                return(list);
            }
            else
            {
                return(null);
            }
        }
Exemple #14
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            cacheIsRunning    = reader.ReadBoolean();
            cacheIsRegistered = reader.ReadBoolean();
            licenseIsExpired  = reader.ReadBoolean();
            name                     = reader.ReadObject() as string;
            inproc                   = reader.ReadBoolean();
            configID                 = reader.ReadString();
            configVersion            = reader.ReadDouble();
            lastModified             = reader.ReadObject() as string;
            cacheType                = reader.ReadObject() as string;
            log                      = reader.ReadObject() as Log;
            perfCounters             = reader.ReadObject() as PerfCounters;
            backingSource            = reader.ReadObject() as BackingSource;
            notifications            = reader.ReadObject() as Notifications;
            cleanup                  = reader.ReadObject() as Cleanup;
            storage                  = reader.ReadObject() as Storage;
            evictionPolicy           = reader.ReadObject() as EvictionPolicy;
            cluster                  = reader.ReadObject() as Cluster;
            _replicationStrategy     = reader.ReadObject() as ReplicationStrategy;
            security                 = reader.ReadObject() as Security;
            autoBalancing            = reader.ReadObject() as AutoLoadBalancing;
            clientNodes              = reader.ReadObject() as ClientNodes;
            _sqlDependencyConfig     = reader.ReadObject() as SQLDependencyConfig;
            deathDetection           = reader.ReadObject() as ClientDeathDetection;
            _runtimeContextValue     = reader.ReadObject() as string == "1" ? RtContextValue.JVCACHE : RtContextValue.NCACHE;
            _synchronizationStrategy = reader.ReadObject() as SynchronizationStrategy;
            string temp = reader.ReadObject() as String;

            if (temp.ToLower().Equals("binary"))
            {
                _dataFormat = Common.Enum.DataFormat.Binary;
            }
            else if (temp.ToLower().Equals("object"))
            {
                _dataFormat = Common.Enum.DataFormat.Object;
            }
            clientActivityNotification = reader.ReadObject() as ClientActivityNotification;
            depversion = (double)reader.ReadObject();
        }
Exemple #15
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            if (this.nodesList == null)
            {
                this.nodesList = new ArrayList();
            }

            this.nodesList = reader.ReadObject() as ArrayList;

            bool nodeExists = reader.ReadBoolean();

            if (nodeExists)
            {
                this.nodes = new Dictionary <Alachisoft.NCache.Config.Dom.NodeIdentity, StatusInfo>();

                int count = reader.ReadInt32();
                for (int index = 0; index < count; index++)
                {
                    nodes.Add(reader.ReadObject() as Alachisoft.NCache.Config.Dom.NodeIdentity, reader.ReadObject() as StatusInfo);
                }
            }
        }
Exemple #16
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            topology         = reader.ReadObject() as string;
            activeMirrorNode = reader.ReadObject() as string;
            opTimeout        = reader.ReadInt32();
            statsRepInterval = reader.ReadInt32();
            useHeartBeat     = reader.ReadBoolean();

            channel = reader.ReadObject() as Channel;

            bool nodeExists = reader.ReadBoolean();

            if (nodeExists)
            {
                nodes = new Dictionary <NodeIdentity, StatusInfo>();
                int count = reader.ReadInt32();

                for (int i = 0; i < count; i++)
                {
                    nodes.Add(reader.ReadObject() as NodeIdentity, reader.ReadObject() as StatusInfo);
                }
            }
        }
Exemple #17
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            _cacheId = reader.ReadObject() as string;
            _defaultReadThruProvider  = reader.ReadObject() as string;
            _defaultWriteThruProvider = reader.ReadObject() as string;
            _loadBalance         = reader.ReadBoolean();
            _isRegisteredLocal   = reader.ReadBoolean();
            _serversPriorityList = new Dictionary <int, CacheServer>();
            int lenght = reader.ReadInt32();

            for (int i = 0; i < lenght; i++)
            {
                _serversPriorityList.Add(reader.ReadInt32(), reader.ReadObject() as CacheServer);
            }
            _serverName           = reader.ReadObject() as string;
            _bindIp               = reader.ReadObject() as string;
            _serverRuntimeContext = reader.ReadObject() as string == "1" ? RtContextValue.JVCACHE : RtContextValue.NCACHE;
            if (reader.ReadBoolean())
            {
                _serverMapping = reader.ReadObject() as ServerMapping;
            }
            _enableClientLogs = reader.ReadBoolean();
            _logLevel         = reader.ReadObject() as string;
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="reader"></param>
        /// <returns></returns>
        public static IDictionary <T, V> DeserializeDictionary <T, V>(Runtime.Serialization.IO.CompactReader reader)
        {
            T    key;
            V    val;
            bool flag = reader.ReadBoolean();

            if (flag)
            {
                IDictionary <T, V> dictionary = new HashVector <T, V>();
                int Length = reader.ReadInt32();
                for (int i = 0; i < Length; i++)
                {
                    key = (T)reader.ReadObject();
                    val = (V)reader.ReadObject();

                    dictionary.Add(key, val);
                }
                return(dictionary);
            }
            else
            {
                return(null);
            }
        }
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            inproc                   = reader.ReadBoolean();
            cacheType                = reader.ReadObject() as String;
            log                      = reader.ReadObject() as Log;
            perfCounters             = reader.ReadObject() as Alachisoft.NCache.Config.Dom.PerfCounters;
            indexes                  = reader.ReadObject() as QueryIndex;
            backingSource            = reader.ReadObject() as BackingSource;
            notifications            = reader.ReadObject() as Notifications;
            cleanup                  = reader.ReadObject() as Cleanup;
            storage                  = reader.ReadObject() as Alachisoft.NCache.Config.Dom.Storage;
            evictionPolicy           = reader.ReadObject() as EvictionPolicy;
            expirationPolicy         = reader.ReadObject() as ExpirationPolicy;
            _sqlDependencyConfig     = reader.ReadObject() as SQLDependencyConfig;
            _synchronizationStrategy = reader.ReadObject() as SynchronizationStrategy;
            cacheTopology            = reader.ReadObject() as CacheTopology;
            _taskConfiguration       = reader.ReadObject() as TaskConfiguration;

            string temp = reader.ReadObject() as String;

            _dataFormat                = Common.Enum.DataFormat.Binary;
            deathDetection             = reader.ReadObject() as ClientDeathDetection;
            clientActivityNotification = reader.ReadObject() as ClientActivityNotification;
        }
Exemple #20
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     this._opCounter = reader.ReadInt64();
     this._opID      = (string)reader.ReadObject();
 }
Exemple #21
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _bitset = reader.ReadByte();
 }
Exemple #22
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _size     = reader.ReadInt32();
     _tbuffer  = reader.ReadBytes(_size);
     _sequence = reader.ReadInt32();
 }
Exemple #23
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _fieldValueTable = (Hashtable)reader.ReadObject();
     _uniqueId        = (string)reader.ReadObject();
     _cqUniqueId      = (string)reader.ReadObject();
 }
Exemple #24
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     id   = reader.ReadObject() as string;
     name = reader.ReadObject() as string;
     type = reader.ReadObject() as string;
 }
Exemple #25
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     provider    = reader.ReadObject() as Provider[];
     enabled     = reader.ReadBoolean();
     writeBehind = reader.ReadObject() as WriteBehind;
 }
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _updatedCacheConfig = reader.ReadObject() as CacheServerConfig;
     _affectedNodesList  = reader.ReadObject() as ArrayList;
     _affectedPartitions = reader.ReadObject() as ArrayList;
 }
Exemple #27
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _attributeName = reader.ReadObject() as string;
     _order         = (Order)reader.ReadInt32();
 }
Exemple #28
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _sessionID = (string)reader.ReadObject();
     _key       = (string)reader.ReadObject();
 }
Exemple #29
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _domainName      = (string)reader.ReadObject();
     _distiguishNames = (Hashtable)reader.ReadObject();
     _users           = (ArrayList)reader.ReadObject();
 }
Exemple #30
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _method = (string)reader.ReadObject();
 }