aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer
diff options
context:
space:
mode:
authorMelanie Thielker2009-05-04 12:15:55 +0000
committerMelanie Thielker2009-05-04 12:15:55 +0000
commit1b877234dada9f14cebc486cc426db892beae152 (patch)
tree762ee7172c66a78b643f4cef0eed946314816403 /OpenSim/Grid/UserServer
parentThanks BlueWall for Mantis #3578 - adding Hypergrid connection to JSON Stats (diff)
downloadopensim-SC_OLD-1b877234dada9f14cebc486cc426db892beae152.zip
opensim-SC_OLD-1b877234dada9f14cebc486cc426db892beae152.tar.gz
opensim-SC_OLD-1b877234dada9f14cebc486cc426db892beae152.tar.bz2
opensim-SC_OLD-1b877234dada9f14cebc486cc426db892beae152.tar.xz
Refactor. Make ConsoleBase a true base class. Create CommandConsole as a simple
console capable of processing commands. Create LocalConsole as a console that uses cursor control and context help. Precursor to a distributed console system for the new grid services. No functional change intended :)
Diffstat (limited to 'OpenSim/Grid/UserServer')
-rw-r--r--OpenSim/Grid/UserServer/Main.cs4
-rw-r--r--OpenSim/Grid/UserServer/UserServerCommandModule.cs8
2 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index 0a5abd3..d9185cb 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -84,7 +84,7 @@ namespace OpenSim.Grid.UserServer
84 84
85 public OpenUser_Main() 85 public OpenUser_Main()
86 { 86 {
87 m_console = new ConsoleBase("User"); 87 m_console = new LocalConsole("User");
88 MainConsole.Instance = m_console; 88 MainConsole.Instance = m_console;
89 } 89 }
90 90
@@ -126,7 +126,7 @@ namespace OpenSim.Grid.UserServer
126 126
127 m_httpServer = new BaseHttpServer(Cfg.HttpPort); 127 m_httpServer = new BaseHttpServer(Cfg.HttpPort);
128 128
129 RegisterInterface<ConsoleBase>(m_console); 129 RegisterInterface<CommandConsole>(m_console);
130 RegisterInterface<UserConfig>(Cfg); 130 RegisterInterface<UserConfig>(Cfg);
131 131
132 //Should be in modules? 132 //Should be in modules?
diff --git a/OpenSim/Grid/UserServer/UserServerCommandModule.cs b/OpenSim/Grid/UserServer/UserServerCommandModule.cs
index f73b3de..1d74c80 100644
--- a/OpenSim/Grid/UserServer/UserServerCommandModule.cs
+++ b/OpenSim/Grid/UserServer/UserServerCommandModule.cs
@@ -49,7 +49,7 @@ namespace OpenSim.Grid.UserServer
49 { 49 {
50 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 50 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
51 51
52 protected ConsoleBase m_console; 52 protected CommandConsole m_console;
53 protected UserConfig m_cfg; 53 protected UserConfig m_cfg;
54 54
55 protected UserDataBaseService m_userDataBaseService; 55 protected UserDataBaseService m_userDataBaseService;
@@ -88,8 +88,8 @@ namespace OpenSim.Grid.UserServer
88 m_loginService = loginService; 88 m_loginService = loginService;
89 } 89 }
90 90
91 ConsoleBase console; 91 CommandConsole console;
92 if ((m_core.TryGet<ConsoleBase>(out console)) && (m_cfg != null) 92 if ((m_core.TryGet<CommandConsole>(out console)) && (m_cfg != null)
93 && (m_userDataBaseService != null) && (m_loginService != null)) 93 && (m_userDataBaseService != null) && (m_loginService != null))
94 { 94 {
95 RegisterConsoleCommands(console); 95 RegisterConsoleCommands(console);
@@ -101,7 +101,7 @@ namespace OpenSim.Grid.UserServer
101 101
102 } 102 }
103 103
104 private void RegisterConsoleCommands(ConsoleBase console) 104 private void RegisterConsoleCommands(CommandConsole console)
105 { 105 {
106 m_console = console; 106 m_console = console;
107 m_console.Commands.AddCommand("userserver", false, "create user", 107 m_console.Commands.AddCommand("userserver", false, "create user",