Ejemplo n.º 1
0
 public ZhimeraProxyNode(IPAddress ip, ProxyNodeController proxyController)
     : base(ip)
 {
     //	lowLevelComm = Base.LowLevelComm.getRefLowLevelComm();
     //			selfNodeBasic = new Tashjik.Common.NodeBasic(ip);
     this.proxyController = proxyController;
 }
Ejemplo n.º 2
0
        public ZhimeraRealNode(ProxyNodeController proxyNodeController, IPAddress bootStrapIP, Guid bootStrapChordInstanceGuid)
        {
            this.proxyNodeController = proxyNodeController; // new ProxyNodeController(new ProxyNodeController.CreateProxyNodeDelegate(createZhimeraProxyNode), new Guid(zhimeraGUID));

            erasureCoder = new ErasureCoder();
            _SVCEncoder = new SVCEncoder();
            chordCylinder = new ChordCylinder(bootStrapIP, bootStrapChordInstanceGuid, proxyNodeController);
        }
Ejemplo n.º 3
0
        public ZhimeraRealNode(ProxyNodeController proxyNodeController)
        {
            this.proxyNodeController = proxyNodeController;

            erasureCoder = new ErasureCoder();
            _SVCEncoder = new SVCEncoder();
            chordCylinder = new ChordCylinder(proxyNodeController);
        }
Ejemplo n.º 4
0
        private RangeIChordRing[] registry; // = new RangeDictionary<double, IChordRing>();

        #endregion Fields

        #region Constructors

        public ChordCylinder(IPAddress bootStrapIP, Guid bootStrapChordInstanceGuid, ProxyNodeController proxyNodeController)
        {
            this.proxyNodeController = proxyNodeController;

            registry = new RangeIChordRing[noOfChordRings];
            halo = new ProxyHalo();

            ZhimeraProxyNode bootstrapProxyNode = (ZhimeraProxyNode)(proxyNodeController.getProxyNode(bootStrapIP));

            double perRange = totalRange / (double)(noOfChordRings);
            for (int i = 0; i < noOfChordRings; i++)
            {

                registry[i] = new RangeIChordRing();
                registry[i].min = i * perRange;
                registry[i].max = (i + 1) * perRange;
                if (i == noOfChordRings / 2)
                    registry[i].chordRing = new RealChordRing(bootStrapIP, bootStrapChordInstanceGuid);
                else
                    registry[i].chordRing = new ProxyChordRing(halo, noOfChordRings);
            }
        }
Ejemplo n.º 5
0
        public ChordCylinder(ProxyNodeController proxyNodeController)
        {
            this.proxyNodeController = proxyNodeController;

            registry = new RangeIChordRing[noOfChordRings];
            halo = new RealHalo();

            double perRange = totalRange / (double)(noOfChordRings);
            for (int i = 0; i < noOfChordRings; i++)
            {
                registry[i] = new RangeIChordRing();
                registry[i].min = i * perRange;
                registry[i].max = (i + 1) * perRange;
                if(i == noOfChordRings/2)
                    registry[i].chordRing = new RealChordRing();
                else
                    registry[i].chordRing = new ProxyChordRing(halo, noOfChordRings);

            }
        }
Ejemplo n.º 6
0
 public StreamingOverlayServer(ProxyNodeController.CreateProxyNodeDelegate createProxyNodeDelegate, Guid overlayInstanceGuid)
 {
     proxyNodeController = new ProxyNodeController(createProxyNodeDelegate, overlayInstanceGuid);
 }
Ejemplo n.º 7
0
 public OverlayServer(ProxyNodeController.CreateProxyNodeDelegate createProxyNodeDelegate, Guid overlayInstanceGuid)
 {
     proxyNodeController = new ProxyNodeController(createProxyNodeDelegate, overlayInstanceGuid);
 }
Ejemplo n.º 8
0
 public ZhimeraServer(IPAddress bootStrapIP, Guid bootStrapChordInstanceGuid)
 {
     proxyNodeController = new ProxyNodeController(new ProxyNodeController.CreateProxyNodeDelegate(createZhimeraProxyNode), new Guid(zhimeraGUID));
     zhimeraRealNode = new ZhimeraRealNode(proxyNodeController, bootStrapIP, bootStrapChordInstanceGuid);
 }
Ejemplo n.º 9
0
 public ZhimeraServer()
 {
     proxyNodeController = new ProxyNodeController(new ProxyNodeController.CreateProxyNodeDelegate(createZhimeraProxyNode), new Guid(zhimeraGUID));
     zhimeraRealNode = new ZhimeraRealNode(proxyNodeController);
 }
Ejemplo n.º 10
0
 private static ProxyNode createZhimeraProxyNode(IPAddress IP, ProxyNodeController proxyNodeController)
 {
     return new ZhimeraProxyNode(IP, /*base.getProxyNodeController*/proxyNodeController);
     //return new ChordProxyNode(IP, base.getProxyNodeController());
     //return null;
 }