blob: dca7a4ac3cdcb284d92c4548e99de467fc9fffae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
using Nwc.XmlRpc;
using OpenSim.Framework;
using OpenSim.Servers;
namespace OpenGrid.Framework.Manager {
public delegate void GridManagerCallback(string param);
public class GridManagementAgent {
private GridManagerCallback thecallback;
private string sendkey;
private string recvkey;
private string component_type;
public GridManagementAgent(BaseHttpServer app_httpd, string component_type, string sendkey, string recvkey, GridManagerCallback thecallback)
{
this.sendkey=sendkey;
this.recvkey=recvkey;
this.component_type=component_type;
this.thecallback=thecallback;
switch(component_type)
{
case "gridserver":
GridServerManager.sendkey=this.sendkey;
GridServerManager.recvkey=this.recvkey;
GridServerManager.thecallback=thecallback;
app_httpd.AddXmlRPCHandler("shutdown", GridServerManager.XmlRpcShutdownMethod);
break;
}
}
}
}
|