Example #1
0
 public object Clone()
 {
     PerfCounters perfCounters = new PerfCounters();
     perfCounters.Enabled = Enabled;
     perfCounters.SnmpPort = SnmpPort;
     return perfCounters;
 }
Example #2
0
        public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
        {
            inproc                   = reader.ReadBoolean();
            lastModified             = reader.ReadObject() as String;
            cacheType                = reader.ReadObject() as String;
            log                      = reader.ReadObject() as Log;
            perfCounters             = reader.ReadObject() as Alachisoft.NCache.Config.Dom.PerfCounters;
            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;
            security                 = reader.ReadObject() as Alachisoft.NCache.Config.Dom.Security;
            autoBalancing            = reader.ReadObject() as AutoLoadBalancing;
            _synchronizationStrategy = reader.ReadObject() as SynchronizationStrategy;

            cacheTopology = reader.ReadObject() as CacheTopology;



            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;
            }
            deathDetection             = reader.ReadObject() as ClientDeathDetection;
            clientActivityNotification = reader.ReadObject() as ClientActivityNotification;
        }
 public CacheServerConfigSetting()
 {
     log                        = new Alachisoft.NCache.Config.Dom.Log();
     perfCounters               = new Alachisoft.NCache.Config.Dom.PerfCounters();
     cleanup                    = new Alachisoft.NCache.Config.Dom.Cleanup();
     notifications              = new Alachisoft.NCache.Config.Dom.Notifications();
     _taskConfiguration         = new TaskConfiguration();
     deathDetection             = new ClientDeathDetection();
     clientActivityNotification = new ClientActivityNotification();
     expirationPolicy           = new Alachisoft.NCache.Config.Dom.ExpirationPolicy();
 }
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     name           = reader.ReadObject() as String;
     inproc         = reader.ReadBoolean();
     lastModified   = reader.ReadObject() as String;
     cacheType      = reader.ReadObject() as String;
     log            = reader.ReadObject() as Log;
     perfCounters   = reader.ReadObject() as Alachisoft.NCache.Config.Dom.PerfCounters;
     autoBalancing  = reader.ReadObject() as AutoLoadBalancing;
     indexes        = reader.ReadObject() as QueryIndex;
     storage        = reader.ReadObject() as Alachisoft.NCache.Config.Dom.Storage;
     evictionPolicy = reader.ReadObject() as EvictionPolicy;
     cacheTopology  = reader.ReadObject() as CacheTopology;
     _alias         = reader.ReadObject() as String;
 }
        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;
        }
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
 name =reader.ReadObject() as String;
 inproc = reader.ReadBoolean();
 lastModified = reader.ReadObject()as String;
 cacheType = reader.ReadObject()as String;
 log = reader.ReadObject() as Log;
 perfCounters = reader.ReadObject() as Alachisoft.NCache.Config.Dom.PerfCounters;
 autoBalancing = reader.ReadObject() as AutoLoadBalancing;
 indexes = reader.ReadObject() as QueryIndex;
 storage = reader.ReadObject() as Alachisoft.NCache.Config.Dom.Storage;
 evictionPolicy = reader.ReadObject() as EvictionPolicy;
 cacheTopology = reader.ReadObject() as CacheTopology;
 _alias = reader.ReadObject() as String;
 }
Example #7
0
 private static PerfCounters GetPerfCounters(Hashtable settings)
 {
     PerfCounters perCounters = new PerfCounters();
     perCounters.Enabled = Convert.ToBoolean(settings["perf-counters"]);
     return perCounters;
 }
Example #8
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.ReadDouble();
            lastModified = reader.ReadObject() as string;
            cacheType = reader.ReadObject() as string;
            log = reader.ReadObject() as Log;
            perfCounters = reader.ReadObject() as PerfCounters;
            autoBalancing = reader.ReadObject() as AutoLoadBalancing;
            indexes = reader.ReadObject() as QueryIndex;
            cleanup = reader.ReadObject() as Cleanup;
            storage = reader.ReadObject() as Storage;
            evictionPolicy = reader.ReadObject() as EvictionPolicy;
            cluster = reader.ReadObject() as Cluster;            
            clientNodes = reader.ReadObject() as ClientNodes;
            _runtimeContextValue = reader.ReadObject() as string == "1" ? RtContextValue.JVCACHE : RtContextValue.NCACHE;

        }