From 8795dc5ee5edc4ec7ee6076d73bfb7403e1195f1 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 4 May 2007 07:29:33 +0000 Subject: [PATCH] Comments sucker! --- OpenGridServices.GridServer/GridManager.cs | 53 ++++++++++++++++++++-- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/OpenGridServices.GridServer/GridManager.cs b/OpenGridServices.GridServer/GridManager.cs index 8de752d8d9..b3b97a14c8 100644 --- a/OpenGridServices.GridServer/GridManager.cs +++ b/OpenGridServices.GridServer/GridManager.cs @@ -17,6 +17,10 @@ namespace OpenGridServices.GridServer { Dictionary _plugins = new Dictionary(); + /// + /// Adds a new grid server plugin - grid servers will be requested in the order they were loaded. + /// + /// The filename to the grid server plugin DLL public void AddPlugin(string FileName) { Assembly pluginAssembly = Assembly.LoadFrom(FileName); @@ -44,7 +48,12 @@ namespace OpenGridServices.GridServer pluginAssembly = null; } - + + /// + /// Returns a region by argument + /// + /// A UUID key of the region to return + /// A SimProfileData for the region public SimProfileData getRegion(libsecondlife.LLUUID uuid) { foreach(KeyValuePair kvp in _plugins) { @@ -60,6 +69,11 @@ namespace OpenGridServices.GridServer return null; } + /// + /// Returns a region by argument + /// + /// A regionHandle of the region to return + /// A SimProfileData for the region public SimProfileData getRegion(ulong handle) { foreach (KeyValuePair kvp in _plugins) @@ -104,6 +118,11 @@ namespace OpenGridServices.GridServer return response; } + /// + /// Performed when a region connects to the grid server initially. + /// + /// The XMLRPC Request + /// Startup parameters public XmlRpcResponse XmlRpcLoginToSimulatorMethod(XmlRpcRequest request) { XmlRpcResponse response = new XmlRpcResponse(); @@ -174,18 +193,37 @@ namespace OpenGridServices.GridServer return response; } - + /// + /// Performs a REST Get Operation + /// + /// + /// + /// + /// public string RestGetRegionMethod(string request, string path, string param) { return RestGetSimMethod("", "/sims/", param); } + /// + /// Performs a REST Set Operation + /// + /// + /// + /// + /// public string RestSetRegionMethod(string request, string path, string param) { return RestSetSimMethod("", "/sims/", param); } - + /// + /// Returns information about a sim via a REST Request + /// + /// + /// + /// + /// Information about the sim in XML public string RestGetSimMethod(string request, string path, string param) { string respstring = String.Empty; @@ -213,7 +251,14 @@ namespace OpenGridServices.GridServer return respstring; } - + /// + /// Creates or updates a sim via a REST Method Request + /// BROKEN with SQL Update + /// + /// + /// + /// + /// "OK" or an error public string RestSetSimMethod(string request, string path, string param) { Console.WriteLine("SimProfiles.cs:RestSetSimMethod() - processing request......");