org.gcube.contentmanagement.layerindependent.servicehelper
Class DebugUtils

java.lang.Object
  extended by org.gcube.contentmanagement.layerindependent.servicehelper.DebugUtils

public class DebugUtils
extends java.lang.Object

Contains utility functionality for debugging purposes. In particular it provides methods to identify the current position in the execution stack and log it, which may be helpful in distributed environments when the use of a remote debugger is not possible for infrastrutural reasons.

Author:
michaelspringmann

Constructor Summary
DebugUtils()
           
 
Method Summary
static void logStackTrace()
          Prints the current call stack by proving an Exception, catching it immediately, and returning to regular execution.
static void printStackTrace()
          Prints the current call stack by proving an Exception, catching it immediately, and returning to regular execution.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugUtils

public DebugUtils()
Method Detail

printStackTrace

public static void printStackTrace()
Prints the current call stack by proving an Exception, catching it immediately, and returning to regular execution.


logStackTrace

public static void logStackTrace()
Prints the current call stack by proving an Exception, catching it immediately, and returning to regular execution.