예제 #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());
        }
예제 #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());
        }
예제 #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);
         }
     }
 }
예제 #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);
         }
     }
 }
예제 #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);
         }
     }
 }
예제 #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));
        }
예제 #7
0
        public static ArrayList getList(String strOverlayType)
        {
            OverlayController overlayController = getController(strOverlayType);

            return(overlayController.getList());
        }
예제 #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());
        }
예제 #9
0
        public static OverlayServer joinExisting(IPAddress IP, String strOverlayType, Guid overlayInstanceGuid)
        {
            OverlayController overlayController = getController(strOverlayType);

            return(overlayController.joinExisting(IP, overlayInstanceGuid));
        }
예제 #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));
        }
예제 #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;
         }
     }
 }
예제 #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;
         }
     }
 }
예제 #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;
         }
     }
 }