//create a completely new overlay public static OverlayServer createNew(Guid overlayGuid) { Console.WriteLine("TashjikServer::createNew ENTER"); OverlayController overlayController = getController(overlayGuid); return(overlayController.createNew()); }
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()); }
private static OverlayController getRefBATONController(String strOverlayType) { lock (BATONCreationLock) { if (BATONController != null) { return(BATONController); } else { BATONController = new OverlayController(overlayServerFactory, new Guid(BATONGUID), strOverlayType); return(BATONController); } } }
private static OverlayController getRefChordController(String strOverlayType) { lock (chordCreationLock) { if (chordController != null) { return(chordController); } else { chordController = new OverlayController(overlayServerFactory, new Guid(chordGUID), strOverlayType); return(chordController); } } }
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); } } }
//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)); }
public static ArrayList getList(String strOverlayType) { OverlayController overlayController = getController(strOverlayType); return(overlayController.getList()); }
/* public TashjikServer() * { * init(); * } * * private static void init() * { * overlayServerFactory = new OverlayServerFactory(); * } */ public static ArrayList getList(Guid overlayGuid) { OverlayController overlayController = getController(overlayGuid); return(overlayController.getList()); }
public static OverlayServer joinExisting(IPAddress IP, String strOverlayType, Guid overlayInstanceGuid) { OverlayController overlayController = getController(strOverlayType); return(overlayController.joinExisting(IP, overlayInstanceGuid)); }
//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)); }
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; } } }
private static OverlayController getRefChordController(String strOverlayType) { lock(chordCreationLock) { if(chordController != null) return chordController; else { chordController = new OverlayController(overlayServerFactory, new Guid(chordGUID), strOverlayType); return chordController; } } }
private static OverlayController getRefBATONController(String strOverlayType) { lock(BATONCreationLock) { if(BATONController != null) return BATONController; else { BATONController = new OverlayController(overlayServerFactory, new Guid(BATONGUID), strOverlayType); return BATONController; } } }