示例#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();
   }
 }
示例#2
0
 public static void stop() {
   if (isOnline()) {
     instance.stopServer();
   } else {
     Logger.error("Server not online");
   }
 }
示例#3
0
 public static boolean isOnline() {
   return instance.isServerOnline();
 }