diff options
author | Melanie Thielker | 2009-05-04 12:15:55 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-05-04 12:15:55 +0000 |
commit | 1b877234dada9f14cebc486cc426db892beae152 (patch) | |
tree | 762ee7172c66a78b643f4cef0eed946314816403 /OpenSim/Grid/UserServer/UserServerCommandModule.cs | |
parent | Thanks BlueWall for Mantis #3578 - adding Hypergrid connection to JSON Stats (diff) | |
download | opensim-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/UserServerCommandModule.cs')
-rw-r--r-- | OpenSim/Grid/UserServer/UserServerCommandModule.cs | 8 |
1 files changed, 4 insertions, 4 deletions
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", |