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

@@ -23,7 +23,7 @@ import org.jackhuang.hellominecraft.logging.layout.DefaultLayout;
/**
*
* @author hyh
* @author huangyuhui
*/
public class Configuration {

View File

@@ -18,7 +18,7 @@ package org.jackhuang.hellominecraft.logging;
/**
*
* @author hyh
* @author huangyuhui
*/
public enum Level {

View File

@@ -20,7 +20,7 @@ import org.jackhuang.hellominecraft.logging.message.IMessage;
/**
*
* @author hyh
* @author huangyuhui
*/
public class LogEvent {

View File

@@ -18,7 +18,7 @@ package org.jackhuang.hellominecraft.logging;
/**
*
* @author hyh
* @author huangyuhui
*/
public class LoggingException extends RuntimeException {

View File

@@ -21,7 +21,7 @@ import org.jackhuang.hellominecraft.logging.layout.ILayout;
/**
*
* @author hyh
* @author huangyuhui
*/
public abstract class AbstractAppender implements IAppender {

View File

@@ -23,7 +23,7 @@ import org.jackhuang.hellominecraft.logging.layout.ILayout;
/**
*
* @author hyh
* @author huangyuhui
*/
public class ConsoleAppender extends OutputStreamAppender {

View File

@@ -22,7 +22,7 @@ import org.jackhuang.hellominecraft.logging.layout.ILayout;
/**
*
* @author hyh
* @author huangyuhui
*/
public interface IAppender {

View File

@@ -28,7 +28,7 @@ import org.jackhuang.hellominecraft.logging.layout.ILayout;
/**
*
* @author hyh
* @author huangyuhui
*/
public abstract class OutputStreamAppender extends AbstractAppender {

View File

@@ -20,7 +20,7 @@ import org.jackhuang.hellominecraft.logging.LogEvent;
/**
*
* @author hyh
* @author huangyuhui
*/
public abstract class AbstractStringLayout implements ILayout<String> {

View File

@@ -22,7 +22,7 @@ import org.jackhuang.hellominecraft.logging.LogEvent;
/**
*
* @author hyh
* @author huangyuhui
*/
public class DefaultLayout extends AbstractStringLayout {
private static final SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");

View File

@@ -21,7 +21,7 @@ import org.jackhuang.hellominecraft.logging.LogEvent;
/**
*
* @author hyh
* @author huangyuhui
* @param <T>
*/
public interface ILayout<T extends Serializable> {

View File

@@ -21,7 +21,7 @@ import org.jackhuang.hellominecraft.logging.message.IMessage;
/**
*
* @author hyh
* @author huangyuhui
*/
public interface ILogger {

View File

@@ -18,7 +18,7 @@ package org.jackhuang.hellominecraft.logging.message;
/**
*
* @author hyh
* @author huangyuhui
*/
public abstract class AbstractMessageFactory
implements IMessageFactory {

View File

@@ -20,7 +20,7 @@ import java.io.Serializable;
/**
*
* @author hyh
* @author huangyuhui
*/
public interface IMessage extends Serializable {
String getFormattedMessage();

View File

@@ -18,7 +18,7 @@ package org.jackhuang.hellominecraft.logging.message;
/**
*
* @author hyh
* @author huangyuhui
*/
public abstract interface IMessageFactory {

View File

@@ -27,7 +27,7 @@ import java.util.Set;
/**
*
* @author hyh
* @author huangyuhui
*/
public class ParameterizedMessage
implements IMessage {

View File

@@ -18,7 +18,7 @@ package org.jackhuang.hellominecraft.logging.message;
/**
*
* @author hyh
* @author huangyuhui
*/
public final class ParameterizedMessageFactory extends AbstractMessageFactory {

View File

@@ -18,7 +18,7 @@ package org.jackhuang.hellominecraft.logging.message;
/**
*
* @author hyh
* @author huangyuhui
*/
public class SimpleMessage
implements IMessage {