diff options
Diffstat (limited to 'OpenGridServices.GridServer/Main.cs')
-rw-r--r-- | OpenGridServices.GridServer/Main.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenGridServices.GridServer/Main.cs b/OpenGridServices.GridServer/Main.cs index 1a2a0fb..5d51edf 100644 --- a/OpenGridServices.GridServer/Main.cs +++ b/OpenGridServices.GridServer/Main.cs | |||
@@ -35,6 +35,7 @@ using System.Net; | |||
35 | using System.Threading; | 35 | using System.Threading; |
36 | using System.Reflection; | 36 | using System.Reflection; |
37 | using libsecondlife; | 37 | using libsecondlife; |
38 | using OpenGrid.Framework.Manager; | ||
38 | using OpenSim.Framework; | 39 | using OpenSim.Framework; |
39 | using OpenSim.Framework.Sims; | 40 | using OpenSim.Framework.Sims; |
40 | using OpenSim.Framework.Console; | 41 | using OpenSim.Framework.Console; |
@@ -91,6 +92,15 @@ namespace OpenGridServices.GridServer | |||
91 | 92 | ||
92 | } | 93 | } |
93 | 94 | ||
95 | public void managercallback(string cmd) { | ||
96 | switch(cmd) { | ||
97 | case "shutdown": | ||
98 | RunCmd("shutdown",new string[0]); | ||
99 | break; | ||
100 | } | ||
101 | } | ||
102 | |||
103 | |||
94 | public void Startup() | 104 | public void Startup() |
95 | { | 105 | { |
96 | m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Main.cs:Startup() - Loading configuration"); | 106 | m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Main.cs:Startup() - Loading configuration"); |
@@ -105,6 +115,7 @@ namespace OpenGridServices.GridServer | |||
105 | 115 | ||
106 | m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Main.cs:Startup() - Starting HTTP process"); | 116 | m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Main.cs:Startup() - Starting HTTP process"); |
107 | BaseHttpServer httpServer = new BaseHttpServer(8001); | 117 | BaseHttpServer httpServer = new BaseHttpServer(8001); |
118 | GridManagementAgent GridManagerAgent = new GridManagementAgent(httpServer,"gridserver",Cfg.SimSendKey,Cfg.SimRecvKey,managercallback); | ||
108 | 119 | ||
109 | httpServer.AddXmlRPCHandler("simulator_login", m_gridManager.XmlRpcLoginToSimulatorMethod); | 120 | httpServer.AddXmlRPCHandler("simulator_login", m_gridManager.XmlRpcLoginToSimulatorMethod); |
110 | 121 | ||