server.framework
Class Utils

java.lang.Object
  extended by server.framework.Utils

public abstract class Utils
extends java.lang.Object

Utility class used to print server info to the console.

Author:
Martin Jarrett, Eivind Sorteberg

Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String getCurrentTime()
           
static void printTimeStampedInfo(java.lang.String info)
          Prints time stamped info using System.out.
static void printTimeStampedInfo(java.lang.String info, boolean error)
          Method that prints the provided information with a timestamp, in the format "
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getCurrentTime

public static java.lang.String getCurrentTime()
Returns:
The current time in the format "HH:mm:ss [yyyy-MM-dd]".

printTimeStampedInfo

public static void printTimeStampedInfo(java.lang.String info,
                                        boolean error)
Method that prints the provided information with a timestamp, in the format "
Parameters:
info - The message to print.
error - If true, the method prints an error message, if not, System.out is used.

printTimeStampedInfo

public static void printTimeStampedInfo(java.lang.String info)
Prints time stamped info using System.out.

Parameters:
info - The message to print.
See Also:
printTimeStampedInfo(String, boolean)