Example #1
0
        //create a completely new overlay
        public static OverlayServer createNew(Guid overlayGuid)
        {
            Console.WriteLine("TashjikServer::createNew ENTER");
            OverlayController overlayController = getController(overlayGuid);

            return(overlayController.createNew());
        }
Example #2
0
        public static OverlayServer createNew(String strOverlayType)
        {
            Console.WriteLine("TashjikServer::createNew ENTER");
            OverlayController overlayController = getController(strOverlayType);

            Console.WriteLine("TashjikServer::createNew after getting overlayController");
            return(overlayController.createNew());
        }
Example #3
0
 private static OverlayController getRefBATONController(String strOverlayType)
 {
     lock (BATONCreationLock)
     {
         if (BATONController != null)
         {
             return(BATONController);
         }
         else
         {
             BATONController = new OverlayController(overlayServerFactory, new Guid(BATONGUID), strOverlayType);
             return(BATONController);
         }
     }
 }
Example #4
0
 private static OverlayController getRefChordController(String strOverlayType)
 {
     lock (chordCreationLock)
     {
         if (chordController != null)
         {
             return(chordController);
         }
         else
         {
             chordController = new OverlayController(overlayServerFactory, new Guid(chordGUID), strOverlayType);
             return(chordController);
         }
     }
 }
Example #5
0
 private static OverlayController getRefPastrydController(String strOverlayType)
 {
     lock (pastryCreationLock)
     {
         if (pastryController != null)
         {
             return(pastryController);
         }
         else
         {
             //new guid to be added here
             pastryController = new OverlayController(overlayServerFactory, new Guid(pastryGUID), strOverlayType);
             return(pastryController);
         }
     }
 }
Example #6
0
        //get access to an overlay to which this node is already part of
        public static OverlayServer retrieve(Guid overlayGuid, Guid overlayInstanceGuid)
        {
            OverlayController overlayController = getController(overlayGuid);

            return(overlayController.retrieve(overlayInstanceGuid));
        }
Example #7
0
        public static ArrayList getList(String strOverlayType)
        {
            OverlayController overlayController = getController(strOverlayType);

            return(overlayController.getList());
        }
Example #8
0
        /*	public TashjikServer()
         *      {
         *              init();
         *      }
         *
         *      private static void init()
         *      {
         *              overlayServerFactory = new OverlayServerFactory();
         *      }
         */
        public static ArrayList getList(Guid overlayGuid)
        {
            OverlayController overlayController = getController(overlayGuid);

            return(overlayController.getList());
        }
Example #9
0
        public static OverlayServer joinExisting(IPAddress IP, String strOverlayType, Guid overlayInstanceGuid)
        {
            OverlayController overlayController = getController(strOverlayType);

            return(overlayController.joinExisting(IP, overlayInstanceGuid));
        }
Example #10
0
        //join an existing overlay to which this node is not yet a part of
        public static OverlayServer joinExisting(IPAddress IP, Guid overlayGuid, Guid overlayInstanceGuid)
        {
            OverlayController overlayController = getController(overlayGuid);

            return(overlayController.joinExisting(IP, overlayInstanceGuid));
        }
Example #11
0
 private static OverlayController getRefPastrydController(String strOverlayType)
 {
     lock(pastryCreationLock)
     {
         if(pastryController != null)
             return pastryController;
         else
         {
             //new guid to be added here
             pastryController = new OverlayController(overlayServerFactory, new Guid(pastryGUID), strOverlayType);
             return pastryController;
         }
     }
 }
Example #12
0
 private static OverlayController getRefChordController(String strOverlayType)
 {
     lock(chordCreationLock)
     {
         if(chordController != null)
             return chordController;
         else
         {
             chordController = new OverlayController(overlayServerFactory, new Guid(chordGUID), strOverlayType);
             return chordController;
         }
     }
 }
Example #13
0
 private static OverlayController getRefBATONController(String strOverlayType)
 {
     lock(BATONCreationLock)
     {
         if(BATONController != null)
             return BATONController;
         else
         {
             BATONController = new OverlayController(overlayServerFactory, new Guid(BATONGUID), strOverlayType);
             return BATONController;
         }
     }
 }