|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.shark.CallbackUtil
Implementation of Callback Utilities interface.
Field Summary | |
protected java.util.Map |
classes
|
protected long |
everything
|
protected boolean |
logObjectToo
|
protected boolean |
logStackTrace
|
protected java.util.Map |
methods
|
protected java.util.Properties |
properties
|
Constructor Summary | |
protected |
CallbackUtil()
|
Method Summary | |
void |
debug(WMSessionHandle shandle,
java.lang.String msg)
Log a message object with the DEBUG level. |
void |
debug(WMSessionHandle shandle,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the DEBUG level. |
void |
debug(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg)
Log a message object with the DEBUG level. |
void |
debug(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the DEBUG level. |
void |
error(WMSessionHandle shandle,
java.lang.String msg)
Log a message object with the ERROR Level. |
void |
error(WMSessionHandle shandle,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the ERROR Level. |
void |
error(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg)
Log a message object with the ERROR Level. |
void |
error(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the ERROR Level. |
java.util.Properties |
getProperties()
Returns all properties used for Shark configuration. |
java.lang.String |
getProperty(java.lang.String name)
Returns value of property propertyName used for Shark configuration. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Returns value of property name used for Shark configuration. |
void |
info(WMSessionHandle shandle,
java.lang.String msg)
Log a message object with the INFO Level. |
void |
info(WMSessionHandle shandle,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the INFO Level. |
void |
info(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg)
Log a message object with the INFO Level. |
void |
info(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the INFO Level. |
boolean |
isEnabled(WMSessionHandle shandle,
int level)
|
boolean |
isEnabled(WMSessionHandle shandle,
java.lang.String channel,
int level)
|
protected long |
lenght4location(java.lang.String location)
|
void |
methodEnd(WMSessionHandle shandle,
long stamp,
java.lang.String location,
java.lang.Object o)
|
void |
methodEnd(WMSessionHandle shandle,
long stamp,
java.lang.String location,
java.lang.Object o,
java.lang.String channel)
|
long |
methodStart(WMSessionHandle shandle,
java.lang.String location)
|
void |
setProperties(java.util.Properties props)
Sets properties for Shark configuration. |
void |
warn(WMSessionHandle shandle,
java.lang.String msg)
Log a message object with the WARN Level. |
void |
warn(WMSessionHandle shandle,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the WARN Level. |
void |
warn(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg)
Log a message object with the WARN Level. |
void |
warn(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the WARN Level. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Properties properties
protected java.util.Map methods
protected long everything
protected boolean logObjectToo
protected boolean logStackTrace
protected java.util.Map classes
Constructor Detail |
protected CallbackUtil()
Method Detail |
public java.lang.String getProperty(java.lang.String name)
getProperty
in interface CallbackUtilities
name
- property name.
public java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
getProperty
in interface CallbackUtilities
name
- property name.defaultValue
- default property value.
public java.util.Properties getProperties()
getProperties
in interface CallbackUtilities
public void setProperties(java.util.Properties props)
setProperties
in interface CallbackUtilities
props
- Properties object.public boolean isEnabled(WMSessionHandle shandle, int level)
isEnabled
in interface CallbackUtilities
public boolean isEnabled(WMSessionHandle shandle, java.lang.String channel, int level)
isEnabled
in interface CallbackUtilities
public void error(WMSessionHandle shandle, java.lang.String msg)
error
in interface CallbackUtilities
msg
- the message to log.public void error(WMSessionHandle shandle, java.lang.String msg, java.lang.Exception ex)
error
in interface CallbackUtilities
msg
- the message to log.ex
- the exception to log, including its stack trace.public void error(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg)
error
in interface CallbackUtilities
channel
- the log channel to be used for logging.msg
- the message to log.public void error(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg, java.lang.Exception ex)
error
in interface CallbackUtilities
channel
- the log channel to be used for logging.msg
- the message to log.ex
- the exception to log, including its stack trace.public void warn(WMSessionHandle shandle, java.lang.String msg)
warn
in interface CallbackUtilities
msg
- the message to log.public void warn(WMSessionHandle shandle, java.lang.String msg, java.lang.Exception ex)
warn
in interface CallbackUtilities
msg
- the message to log.ex
- the exception to log, including its stack trace.public void warn(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg)
warn
in interface CallbackUtilities
channel
- the log channel to be used for logging.msg
- the message to log.public void warn(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg, java.lang.Exception ex)
warn
in interface CallbackUtilities
channel
- the log channel to be used for logging.msg
- the message to log.ex
- the exception to log, including its stack trace.public void info(WMSessionHandle shandle, java.lang.String msg)
info
in interface CallbackUtilities
msg
- the message to log.public void info(WMSessionHandle shandle, java.lang.String msg, java.lang.Exception ex)
info
in interface CallbackUtilities
msg
- the message to log.ex
- the exception to log, including its stack trace.public void info(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg)
info
in interface CallbackUtilities
channel
- the log channel to be used for logging.msg
- the message to log.public void info(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg, java.lang.Exception ex)
info
in interface CallbackUtilities
channel
- the log channel to be used for logging.msg
- the message to log.ex
- the exception to log, including its stack trace.public void debug(WMSessionHandle shandle, java.lang.String msg)
debug
in interface CallbackUtilities
msg
- the message to log.public void debug(WMSessionHandle shandle, java.lang.String msg, java.lang.Exception ex)
debug
in interface CallbackUtilities
msg
- the message to log.ex
- the exception to log, including its stack trace.public void debug(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg)
debug
in interface CallbackUtilities
channel
- the log channel to be used for logging.msg
- the message to log.public void debug(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg, java.lang.Exception ex)
debug
in interface CallbackUtilities
channel
- the log channel to be used for logging.msg
- the message to log.ex
- the exception to log, including its stack trace.public long methodStart(WMSessionHandle shandle, java.lang.String location)
methodStart
in interface CallbackUtilities
public void methodEnd(WMSessionHandle shandle, long stamp, java.lang.String location, java.lang.Object o)
methodEnd
in interface CallbackUtilities
public void methodEnd(WMSessionHandle shandle, long stamp, java.lang.String location, java.lang.Object o, java.lang.String channel)
methodEnd
in interface CallbackUtilities
protected long lenght4location(java.lang.String location)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |