reconstruct code && add advice for out of memory error.

This commit is contained in:
huanghongxun
2015-07-06 12:50:02 +08:00
parent d398de5d4e
commit 244b646225
183 changed files with 381 additions and 346 deletions

View File

@@ -21,7 +21,7 @@ import org.jackhuang.hellominecraft.lookandfeel.HelloMinecraftLookAndFeel;
/**
*
* @author hyh
* @author huangyuhui
*/
public class Main {

View File

@@ -8,7 +8,7 @@ import java.util.List;
/**
*
* @author hyh
* @author huangyuhui
*/
public class BukkitPlugin {

View File

@@ -6,7 +6,7 @@ package org.jackhuang.hellominecraft.svrmgr.cbplugins;
/**
*
* @author hyh
* @author huangyuhui
*/
public class Category {
public double count;

View File

@@ -8,7 +8,7 @@ import java.util.List;
/**
*
* @author hyh
* @author huangyuhui
*/
public class PluginInfo {
public String website, dbo_page, description, slug, plugin_name,

View File

@@ -6,7 +6,7 @@ package org.jackhuang.hellominecraft.svrmgr.cbplugins;
/**
*
* @author hyh
* @author huangyuhui
*/
public class PluginInformation {

View File

@@ -19,7 +19,7 @@ import org.jackhuang.hellominecraft.utils.StrUtils;
/**
*
* @author hyh
* @author huangyuhui
*/
public class PluginManager {

View File

@@ -8,7 +8,7 @@ import java.util.List;
/**
*
* @author hyh
* @author huangyuhui
*/
public class PluginVersion {
public long date;

View File

@@ -18,7 +18,7 @@ import org.jsoup.select.Elements;
/**
*
* @author hyh
* @author huangyuhui
*/
public class BukkitFormatThread extends Thread {

View File

@@ -8,7 +8,7 @@ package org.jackhuang.hellominecraft.svrmgr.installer.bukkit;
/**
*
* @author hyh
* @author huangyuhui
*/
public class BukkitVersion {

View File

@@ -18,7 +18,7 @@ import org.jsoup.select.Elements;
/**
*
* @author hyh
* @author huangyuhui
*/
public class ForgeFormatThread extends Thread {

View File

@@ -37,7 +37,7 @@ import org.tukaani.xz.XZInputStream;
/**
*
* @author hyh
* @author huangyuhui
*/
public class ForgeInstaller {

View File

@@ -6,7 +6,7 @@ package org.jackhuang.hellominecraft.svrmgr.installer.cauldron;
/**
*
* @author hyh
* @author huangyuhui
*/
public class ForgeVersion {
public String vername, ver, mcver, releasetime, changelog;

View File

@@ -8,7 +8,7 @@ package org.jackhuang.hellominecraft.svrmgr.installer.cauldron;
/**
*
* @author hyh
* @author huangyuhui
*/
public class Install {
public String profileName, target, path, version, filePath, welcome, minecraft, mirrorList, logo;

View File

@@ -8,7 +8,7 @@ package org.jackhuang.hellominecraft.svrmgr.installer.cauldron;
/**
*
* @author hyh
* @author huangyuhui
*/
public class InstallProfile {
public Install install;

View File

@@ -9,7 +9,7 @@ import java.io.File;
/**
*
* @author hyh
* @author huangyuhui
*/
public class MinecraftLibrary {

View File

@@ -9,7 +9,7 @@ import java.util.List;
/**
*
* @author hyh
* @author huangyuhui
*/
public class MinecraftVersion {

View File

@@ -10,7 +10,7 @@ import org.jackhuang.hellominecraft.svrmgr.settings.Schedule;
/**
*
* @author hyh
* @author huangyuhui
*/
public class ScheduleTranslator {

View File

@@ -38,7 +38,7 @@ import org.jackhuang.hellominecraft.utils.functions.Consumer;
/**
*
* @author hyh
* @author huangyuhui
*/
public class Server implements Event<Integer>, MonitorThread.MonitorThreadListener,
ActionListener {

View File

@@ -11,7 +11,7 @@ import org.jackhuang.hellominecraft.HMCLog;
/**
*
* @author hyh
* @author huangyuhui
*/
public class ServerChecker {

View File

@@ -16,7 +16,7 @@ import org.jackhuang.hellominecraft.svrmgr.utils.Utilities;
/**
*
* @author hyh
* @author huangyuhui
*/
public class BackupManager {

View File

@@ -6,7 +6,7 @@ package org.jackhuang.hellominecraft.svrmgr.server.download;
/**
*
* @author hyh
* @author huangyuhui
*/
public class ServerDownloadPackage {
public String mcversion, version, forgeversion, majorversion, file;

View File

@@ -11,7 +11,7 @@ import org.jackhuang.hellominecraft.svrmgr.settings.Schedule;
/**
*
* @author hyh
* @author huangyuhui
*/
public class AutoBackupSchedule extends TimerTask {

View File

@@ -10,7 +10,7 @@ import org.jackhuang.hellominecraft.svrmgr.settings.Schedule;
/**
*
* @author hyh
* @author huangyuhui
*/
public class AutoBroadcastSchedule extends TimerTask {

View File

@@ -12,7 +12,7 @@ import org.jackhuang.hellominecraft.svrmgr.settings.Schedule;
/**
*
* @author hyh
* @author huangyuhui
*/
public class AutoExecuteSchedule extends TimerTask {
Schedule main;

View File

@@ -9,7 +9,7 @@ import org.jackhuang.hellominecraft.svrmgr.server.Server;
import org.jackhuang.hellominecraft.svrmgr.settings.Schedule;
/**
*
* @author hyh
* @author huangyuhui
*/
public class AutoRestartSchedule extends TimerTask {

View File

@@ -10,7 +10,7 @@ import org.jackhuang.hellominecraft.svrmgr.settings.Schedule;
/**
*
* @author hyh
* @author huangyuhui
*/
public class AutoSaveSchedule extends TimerTask {

View File

@@ -10,7 +10,7 @@ import org.jackhuang.hellominecraft.svrmgr.settings.Schedule;
/**
*
* @author hyh
* @author huangyuhui
*/
public abstract class AutoSchedule extends TimerTask {
Schedule main;

View File

@@ -9,7 +9,7 @@ import org.jackhuang.hellominecraft.svrmgr.settings.Schedule;
/**
*
* @author hyh
* @author huangyuhui
*/
public class AutoSendCommandSchedule extends AutoSchedule {

View File

@@ -11,7 +11,7 @@ import java.util.Date;
/**
*
* @author hyh
* @author huangyuhui
*/
public class BannedPlayers extends PlayerList<BannedPlayers.BannedPlayer> {

View File

@@ -7,7 +7,7 @@ package org.jackhuang.hellominecraft.svrmgr.settings;
/**
*
* @author hyh
* @author huangyuhui
*/
public class Op extends PlayerList<Op.Operator> {

View File

@@ -17,7 +17,7 @@ import org.jackhuang.hellominecraft.svrmgr.settings.PlayerList.BasePlayer;
/**
*
* @author hyh
* @author huangyuhui
* @param <T> Player type.
*/
public abstract class PlayerList<T extends BasePlayer> {

View File

@@ -6,7 +6,7 @@ package org.jackhuang.hellominecraft.svrmgr.settings;
/**
*
* @author hyh
* @author huangyuhui
*/
public class Schedule {
public static final int

View File

@@ -8,7 +8,7 @@ import java.util.ArrayList;
/**
*
* @author hyh
* @author huangyuhui
*/
public class Settings {

View File

@@ -6,7 +6,7 @@ package org.jackhuang.hellominecraft.svrmgr.settings;
/**
*
* @author hyh
* @author huangyuhui
*/
import com.google.gson.Gson;
import java.io.File;
@@ -17,7 +17,7 @@ import org.jackhuang.hellominecraft.utils.system.IOUtils;
/**
*
* @author hyh
* @author huangyuhui
*/
public class SettingsManager {

View File

@@ -8,7 +8,7 @@ package org.jackhuang.hellominecraft.svrmgr.settings;
/**
*
* @author hyh
* @author huangyuhui
*/
public class WhiteList extends PlayerList<WhiteList.WhiteListPlayer> {

View File

@@ -14,7 +14,7 @@ import org.jackhuang.hellominecraft.HMCLog;
/**
*
* @author hyh
* @author huangyuhui
*/
public class MonitorThread extends Thread {

View File

@@ -6,7 +6,7 @@ package org.jackhuang.hellominecraft.svrmgr.utils;
/**
*
* @author hyh
* @author huangyuhui
*/
public interface IMonitorService {

View File

@@ -17,7 +17,7 @@ import org.jsoup.select.Elements;
/**
*
* @author hyh
* @author huangyuhui
*/
public class IPGet extends Thread {

View File

@@ -13,7 +13,7 @@ import java.util.zip.ZipFile;
/**
* 判断mod类型
* @author hyh
* @author huangyuhui
*/
public class ModType {

View File

@@ -6,7 +6,7 @@ package org.jackhuang.hellominecraft.svrmgr.utils;
/**
*
* @author hyh
* @author huangyuhui
*/
public class MonitorInfoBean {

View File

@@ -10,7 +10,7 @@ import org.jackhuang.hellominecraft.svrmgr.settings.SettingsManager;
/**
*
* @author hyh
* @author huangyuhui
*/
public class Utilities {

View File

@@ -6,7 +6,7 @@ package org.jackhuang.hellominecraft.svrmgr.views;
/**
*
* @author hyh
* @author huangyuhui
*/
public class CommandsWindow extends javax.swing.JDialog {

View File

@@ -16,7 +16,7 @@ import javax.swing.JTextField;
/**
*
* @author hyh
* @author huangyuhui
*/
public class InputDialog extends javax.swing.JDialog {

View File

@@ -79,7 +79,7 @@ import org.jackhuang.hellominecraft.utils.Event;
/**
*
* @author hyh
* @author huangyuhui
*/
public final class MainWindow extends javax.swing.JFrame
implements MonitorThread.MonitorThreadListener, Event<Integer> {

View File

@@ -15,7 +15,7 @@ import org.jackhuang.hellominecraft.svrmgr.utils.Utilities;
/**
*
* @author hyh
* @author huangyuhui
*/
public class PluginInfoDialog extends javax.swing.JDialog {