Ejemplo n.º 1
0
        public object Clone()
        {
            ServersNodes serverNode = new ServersNodes();

            serverNode.ServerNodeList = ServerNodeList.Clone() as ServerNode[];
            if (nodes != null)
            {
                serverNode.nodes = new Dictionary <Alachisoft.NCache.Config.Dom.NodeIdentity, StatusInfo>();
                foreach (KeyValuePair <Alachisoft.NCache.Config.Dom.NodeIdentity, StatusInfo> pair in nodes)
                {
                    serverNode.nodes.Add(pair.Key, pair.Value);
                }
            }
            return(serverNode);
        }
Ejemplo n.º 2
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     clientNodes = (Alachisoft.NCache.Config.Dom.ClientNodes)reader.ReadObject();
     serverNodes = (ServersNodes)reader.ReadObject();
     depVersion  = (double)reader.ReadObject();
 }
Ejemplo n.º 3
0
 public CacheDeployment()
 {
     serverNodes = new ServersNodes();
 }
Ejemplo n.º 4
0
 public object Clone()
 {
     ServersNodes serverNode = new ServersNodes();
     serverNode.ServerNodeList = ServerNodeList.Clone() as ServerNode[];
     if (nodes != null)
     {
         serverNode.nodes = new Dictionary<Alachisoft.NCache.Config.Dom.NodeIdentity, StatusInfo>();
         foreach (KeyValuePair<Alachisoft.NCache.Config.Dom.NodeIdentity, StatusInfo> pair in nodes)
         {
             serverNode.nodes.Add(pair.Key, pair.Value);
         }
     }
     return serverNode;
 }