Example #1
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();
            cacheType    = reader.ReadObject() as string;
            log          = reader.ReadObject() as Log;
            perfCounters = reader.ReadObject() as 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 Storage;
            evictionPolicy       = reader.ReadObject() as EvictionPolicy;
            expirationPolicy     = reader.ReadObject() as ExpirationPolicy;
            cluster              = reader.ReadObject() as Cluster;
            _replicationStrategy = reader.ReadObject() as ReplicationStrategy;

            autoBalancing            = reader.ReadObject() as AutoLoadBalancing;
            clientNodes              = reader.ReadObject() as ClientNodes;
            _sqlDependencyConfig     = reader.ReadObject() as SQLDependencyConfig;
            _taskConfiguration       = reader.ReadObject() as TaskConfiguration;
            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;

            _dataFormat = Common.Enum.DataFormat.Binary;
            clientActivityNotification = reader.ReadObject() as ClientActivityNotification;
        }
Example #2
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     itemRemove = reader.ReadBoolean();
     itemAdd    = reader.ReadBoolean();
     itemUpdate = reader.ReadBoolean();
     cacheClear = reader.ReadBoolean();
 }
Example #3
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _cacheCleared = reader.ReadBoolean();
     _itemAdded    = reader.ReadBoolean();
     _itemRemoved  = reader.ReadBoolean();
     _itemUpdated  = reader.ReadBoolean();
 }
Example #4
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     enabled     = reader.ReadBoolean();
     traceErrors = reader.ReadBoolean();
     traceDebug  = reader.ReadBoolean();
     location    = (string)reader.ReadObject();
 }
Example #5
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            _cacheId                  = reader.ReadObject() as string;
            _clientCacheId            = reader.ReadObject() as string;
            _clientCacheSyncMode      = 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;
        }
Example #6
0
 void Runtime.Serialization.ICompactSerializable.Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     data = (HashVector)reader.ReadObject();
     transferCompleted    = reader.ReadBoolean();
     sendDataSize         = reader.ReadInt64();
     _isMessageData       = reader.ReadBoolean();
     _hasLoggedOperations = reader.ReadBoolean();
 }
Example #7
0
 public new void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _isRepica       = reader.ReadBoolean();
     _inProcInstance = reader.ReadBoolean();
     _clientPort     = reader.ReadInt32();
     _nodeAt         = reader.ReadObject() as string;
     base.Deserialize(reader);
 }
Example #8
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     IsErrorLogsEnabled    = (reader.ReadBoolean());
     IsDetailedLogsEnabled = (reader.ReadBoolean());
     CacheMaxSize          = (reader.ReadInt64());
     CleanInterval         = (reader.ReadInt64());
     EvictRatio            = (reader.ReadSingle());
 }
Example #9
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _id                    = reader.ReadString();
     _chunkId               = reader.ReadInt32();
     _isDisposable          = reader.ReadBoolean();
     _nodeIpAddress         = reader.ReadObject() as Address;
     _isSocketServerDispose = reader.ReadBoolean();
 }
Example #10
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _columnName            = reader.ReadObject() as string;
     _columnType            = (ColumnType)reader.ReadInt32();
     _dataType              = (ColumnDataType)reader.ReadInt32();
     _aggregateFunctionType = (AggregateFunctionType)reader.ReadInt32();
     _isFilled              = reader.ReadBoolean();
     _isHidden              = reader.ReadBoolean();
 }
Example #11
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     this.cacheSettings   = reader.ReadObject() as CacheServerConfigSetting;
     this.cacheDeployment = reader.ReadObject() as CacheDeployment;
     this.name            = reader.ReadObject() as string;
     cacheIsRunning       = reader.ReadBoolean();
     cacheIsRegistered    = reader.ReadBoolean();
     licenseIsExpired     = reader.ReadBoolean();
 }
Example #12
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     providerName      = reader.ReadObject() as string;
     assemblyName      = reader.ReadObject() as string;
     className         = reader.ReadObject() as string;
     _fullProviderName = reader.ReadObject() as string;
     isDefaultProvider = reader.ReadBoolean();
     asyncMode         = reader.ReadBoolean();
     parameters        = reader.ReadObject() as Parameter[];
 }
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _value        = reader.ReadObject();
     _exception    = (EntryProcessorException)reader.ReadObject();
     _isSuccessful = (bool)reader.ReadBoolean();
     _key          = (string)reader.ReadString();
 }
Example #14
0
 void Runtime.Serialization.ICompactSerializable.Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     data = (HashVector)reader.ReadObject();
     transferCompleted = reader.ReadBoolean();
     sendDataSize      = reader.ReadInt64();
     _dataType         = (DataType)reader.ReadByte();
 }
Example #15
0
        //public ArrayList PayLoad
        //{
        //    get { return _payLoad; }
        //}

        //public ArrayList PayLoadCompilationInfo
        //{
        //    get { return _payLoadCompilationInformation; }
        //}

        #region ICompactSerializable Members

        void Runtime.Serialization.ICompactSerializable.Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            data = (HashVector)reader.ReadObject();
            transferCompleted = reader.ReadBoolean();
            //_payLoadCompilationInformation = reader.ReadObject() as ArrayList;
            this.sendDataSize = reader.ReadInt64();
        }
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     this.Pointer      = (TaskEnumeratorPointer)reader.ReadObject();
     this.RecordSet    = (DictionaryEntry)reader.ReadObject();
     this.NodeAddress  = reader.ReadString();
     this.IsLastResult = reader.ReadBoolean();
 }
Example #17
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _info  = reader.ReadObject() as string;
     Status = (CacheStatus)reader.ReadInt32();
     IsCoordinatorInternal = reader.ReadBoolean();
     configID      = reader.ReadString();
     configVersion = reader.ReadDouble();
 }
Example #18
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     opTimeout                 = reader.ReadInt32();
     statsRepInterval          = reader.ReadInt32();
     useHeartBeat              = reader.ReadBoolean();
     this._replicationStrategy = reader.ReadObject() as ReplicationStrategy;
     channel = reader.ReadObject() as Channel;
 }
Example #19
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     this.maxTasks         = reader.ReadInt32();
     this.chunkSize        = reader.ReadInt32();
     this.communicateStats = reader.ReadBoolean();
     this.queueSize        = reader.ReadInt32();
     this.maxExceptions    = reader.ReadInt32();
 }
Example #20
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     id              = reader.ReadObject() as string;
     name            = reader.ReadObject() as string;
     portable        = reader.ReadBoolean();
     portableClasses = reader.ReadObject() as PortableClass[];
     PortableClasses = reader.ReadObject() as PortableClass[];
     attrbiuteList   = reader.ReadObject() as AttributeListUnion;
 }
Example #21
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _isPartial = reader.ReadBoolean();
     _typeSpecificPredicates           = reader.ReadObject() as HashVector;
     _registeredTypes                  = reader.ReadObject() as ClusteredList <string>;
     _cqManagerState                   = reader.ReadObject() as ContinuousQueryManagerState;
     _typeSpecificRegisteredPredicates = reader.ReadObject() as HashVector;
     _typeSpecificEvalIndexes          = reader.ReadObject() as HashVector;
 }
Example #22
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     IsSurrogate = reader.ReadBoolean();
     _columns    = reader.ReadObject() as ColumnCollection;
     _objects    = new ClusteredArray <object>(_columns.Count);
     for (int i = 0; i < _objects.Length; i++)
     {
         _objects[i] = reader.ReadObject();
     }
 }
Example #23
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _cacheId         = reader.ReadObject() as string;
     _topology        = (CacheTopology)reader.ReadInt32();
     _running         = reader.ReadBoolean();
     _dataCapacity    = reader.ReadInt64();
     _cachePropString = reader.ReadObject() as string;
     _partId          = reader.ReadObject() as string;
     _managementPort  = reader.ReadInt32();
     _pid             = reader.ReadInt32();
 }
Example #24
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                   = new BitSet(reader.ReadByte());
     Value                   = reader.ReadObject();
 }
Example #25
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();
        }
Example #26
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);
                }
            }
        }
Example #27
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();
                }
            }
        }
Example #28
0
 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 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);
            }
        }
Example #30
0
        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());
                }
            }
        }