Exemple #1
0
 public static void start(String databaseName, String databasePath) {
   if (isOnline()) {
     Logger.error("Server Already online");
   } else {
     instance.databaseName = databaseName;
     instance.databasePath = databasePath;
     instance.startServer();
   }
 }
Exemple #2
0
 public static void stop() {
   if (isOnline()) {
     instance.stopServer();
   } else {
     Logger.error("Server not online");
   }
 }
Exemple #3
0
 public static boolean isOnline() {
   return instance.isServerOnline();
 }