Package main

Source Code of main.ServerMain

package main;


import network.NetworkManager;
import queries.QueryManager;
import connection.ConnectionManager;
import files.FileManager;


public final class ServerMain
{
  private static ConnectionManager connectionManager;

  private static NetworkManager networkManager;

  private static FileManager fileManager;
  private static QueryManager searchManager;

  public static void main(String[] args)
  {
    fileManager = new FileManager();
    searchManager = new QueryManager();

    connectionManager = new ConnectionManager();

    networkManager = new NetworkManager();

    System.out.println("Sillian server started");

    connectionManager.listen();
    System.out.println("listening");
  }

  public static ConnectionManager getConnectionManager()
  {
    return connectionManager;
  }

  public static NetworkManager getNetworkManager()
  {
    return networkManager;
  }

  public static FileManager getFileManager()
  {
    return fileManager;
  }

  public static QueryManager getQueryManager()
  {
    return searchManager;
  }

}
TOP

Related Classes of main.ServerMain

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.