Package org.glassfish.admin.amx.util
Class DebugOutImpl
- java.lang.Object
-
- org.glassfish.admin.amx.util.DebugOutImpl
-
-
Constructor Summary
Constructors Constructor Description DebugOutImpl(String id, boolean debug)
DebugOutImpl(String id, boolean debug, DebugSink sink)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(Object... args)
If getDebug() returns true, output the argumentsvoid
debugMethod(String methodName, Object... args)
void
debugMethod(String msg, String methodName, Object... args)
boolean
getDebug()
Return true if debugging is on.String
getID()
Return the arbitrary identifier for this instance.static String
methodString(String name, Object... args)
void
print(Object o)
Output a message without a newline.void
println(Object o)
Output a message with a newline.void
setDebug(boolean debug)
String
toString(Object... args)
-
-
-
Method Detail
-
getID
public String getID()
Description copied from interface:DebugOut
Return the arbitrary identifier for this instance.
-
getDebug
public boolean getDebug()
Description copied from interface:DebugOut
Return true if debugging is on.
-
print
public void print(Object o)
Description copied from interface:DebugSink
Output a message without a newline.
-
println
public void println(Object o)
Description copied from interface:DebugSink
Output a message with a newline.
-
setDebug
public void setDebug(boolean debug)
-
debug
public void debug(Object... args)
Description copied from interface:DebugOut
If getDebug() returns true, output the arguments
-
debugMethod
public void debugMethod(String methodName, Object... args)
- Specified by:
debugMethod
in interfaceDebugOut
-
debugMethod
public void debugMethod(String msg, String methodName, Object... args)
- Specified by:
debugMethod
in interfaceDebugOut
-
-