From 453fadd94071545b76706674bb284402c9a065c0 Mon Sep 17 00:00:00 2001
From: MW
Date: Sun, 10 Jun 2007 18:51:45 +0000
Subject: Added SandBoxManager which in sandbox mode, acts as the backend
server for the CommsManager interfaces (commsManager.gridServer etc).
---
.../GridServer/GridCommsManagerBase.cs | 2 +-
.../GridServer/GridCommsManagerLocal.cs | 12 +++++++-----
.../GridServer/GridCommsManagerOGS.cs | 2 +-
3 files changed, 9 insertions(+), 7 deletions(-)
(limited to 'Common/OpenGrid.Framework.Communications/GridServer')
diff --git a/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerBase.cs b/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerBase.cs
index eab7bac..6781806 100644
--- a/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerBase.cs
+++ b/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerBase.cs
@@ -16,7 +16,7 @@ namespace OpenGrid.Framework.Communications.GridServer
///
///
///
- internal virtual RegionCommsHostBase RegisterRegion(RegionInfo regionInfo)
+ public virtual RegionCommsHostBase RegisterRegion(RegionInfo regionInfo)
{
return null;
}
diff --git a/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerLocal.cs b/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerLocal.cs
index 9e7f1e5..bf7d5b9 100644
--- a/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerLocal.cs
+++ b/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerLocal.cs
@@ -11,19 +11,21 @@ namespace OpenGrid.Framework.Communications.GridServer
{
public class GridCommsManagerLocal : GridCommsManagerBase
{
- public GridCommsManagerLocal()
- {
+ private SandBoxManager sandBoxManager;
+ public GridCommsManagerLocal(SandBoxManager sandManager)
+ {
+ sandBoxManager = sandManager;
}
- internal override RegionCommsHostBase RegisterRegion(RegionInfo regionInfo)
+ public override RegionCommsHostBase RegisterRegion(RegionInfo regionInfo)
{
- return null;
+ return sandBoxManager.RegisterRegion(regionInfo);
}
public override List RequestNeighbours(RegionInfo regionInfo)
{
- return null;
+ return sandBoxManager.RequestNeighbours(regionInfo);
}
}
}
diff --git a/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerOGS.cs b/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerOGS.cs
index 1788873..acf8911 100644
--- a/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerOGS.cs
+++ b/Common/OpenGrid.Framework.Communications/GridServer/GridCommsManagerOGS.cs
@@ -13,7 +13,7 @@ namespace OpenGrid.Framework.Communications.GridServer
{
}
- internal override RegionCommsHostBase RegisterRegion(RegionInfo regionInfo)
+ public override RegionCommsHostBase RegisterRegion(RegionInfo regionInfo)
{
return null;
}
--
cgit v1.1