aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGrid.Framework.Manager/GridManagementAgent.cs
diff options
context:
space:
mode:
authorgareth2007-05-14 03:13:47 +0000
committergareth2007-05-14 03:13:47 +0000
commit64a98c736848de6099254f23483058668273c1a5 (patch)
treea8f2624277e48814531750db0ec07a8d64c1f740 /OpenGrid.Framework.Manager/GridManagementAgent.cs
parentAdded skeleton for grid management agent (diff)
downloadopensim-SC-64a98c736848de6099254f23483058668273c1a5.zip
opensim-SC-64a98c736848de6099254f23483058668273c1a5.tar.gz
opensim-SC-64a98c736848de6099254f23483058668273c1a5.tar.bz2
opensim-SC-64a98c736848de6099254f23483058668273c1a5.tar.xz
Finished off adding the new management API to gridserver
Updated VersionInfo.cs finally Updated prebuild and rebuilt nant build files Completed Management agent basics
Diffstat (limited to 'OpenGrid.Framework.Manager/GridManagementAgent.cs')
-rw-r--r--OpenGrid.Framework.Manager/GridManagementAgent.cs31
1 files changed, 30 insertions, 1 deletions
diff --git a/OpenGrid.Framework.Manager/GridManagementAgent.cs b/OpenGrid.Framework.Manager/GridManagementAgent.cs
index 04e2205..dca7a4a 100644
--- a/OpenGrid.Framework.Manager/GridManagementAgent.cs
+++ b/OpenGrid.Framework.Manager/GridManagementAgent.cs
@@ -2,5 +2,34 @@ using Nwc.XmlRpc;
2using OpenSim.Framework; 2using OpenSim.Framework;
3using OpenSim.Servers; 3using OpenSim.Servers;
4 4
5public class GridManagementAgent { 5namespace OpenGrid.Framework.Manager {
6
7 public delegate void GridManagerCallback(string param);
8
9 public class GridManagementAgent {
10
11 private GridManagerCallback thecallback;
12 private string sendkey;
13 private string recvkey;
14 private string component_type;
15
16 public GridManagementAgent(BaseHttpServer app_httpd, string component_type, string sendkey, string recvkey, GridManagerCallback thecallback)
17 {
18 this.sendkey=sendkey;
19 this.recvkey=recvkey;
20 this.component_type=component_type;
21 this.thecallback=thecallback;
22
23 switch(component_type)
24 {
25 case "gridserver":
26 GridServerManager.sendkey=this.sendkey;
27 GridServerManager.recvkey=this.recvkey;
28 GridServerManager.thecallback=thecallback;
29 app_httpd.AddXmlRPCHandler("shutdown", GridServerManager.XmlRpcShutdownMethod);
30 break;
31 }
32 }
33
34 }
6} 35}