public MainWindow()
 {
     InitializeComponent();
     DataContext = JavaServer;
     ConfigHandler.Create();
     ConfigHandler.Load();
     Settings.Load();
     JavaServer = new JavaServer(inputXMS.Text, inputXMX.Text);
     OutputHandler.Log("Ready for launch!");
     if (Settings.AutoStart)
     {
         JavaServer.Start();
     }
     if (Settings.Debug)
     {
         Debug = true;
     }
 }
 private void ConsoleInputBox_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (ConsoleInputBox.Text.ToLower().Equals("start"))
         {
             try
             {
                 JavaServer = new JavaServer(inputXMS.Text, inputXMX.Text);
                 JavaServer.Start();
             }
             catch (NullReferenceException ex)
             {
                 OutputHandler.Log(ex.ToString(), Level.ERROR);
             }
         }
         else if (ConsoleInputBox.Text.ToLower().Equals("stop"))
         {
             JavaServer.Stop();
         }
         else if (ConsoleInputBox.Text.ToLower().Equals("restart"))
         {
             try
             {
                 JavaServer.Stop();
                 JavaServer = new JavaServer(inputXMS.Text, inputXMX.Text);
                 JavaServer.Start();
             }
             catch (NullReferenceException ex)
             {
                 OutputHandler.Log(ex.ToString(), Level.ERROR);
             }
         }
         else
         {
             JavaServer.Input(ConsoleInputBox.Text);
         }
         ConsoleInputBox.Text = "";
     }
 }
Exemple #3
0
 public void FixtureSetUp()
 {
     _server = JavaServer.Start(_groupId, _serverVersion);
 }
 public void FixtureSetUp()
 {
     _server = JavaServer.Start(_igniteVersion);
 }
 /// <summary>
 /// Starts old server node (partition awareness is not supported).
 /// </summary>
 private static IDisposable StartOldServer()
 {
     return(JavaServer.Start(JavaServer.GroupIdIgnite, "2.4.0"));
 }
Exemple #6
0
 /// <summary>
 /// Starts old server node (partition awareness is not supported).
 /// </summary>
 private static IDisposable StartOldServer()
 {
     return(JavaServer.Start("2.4.0"));
 }