org.javasimon.jdbc.logging
Class CallbackLogParams

java.lang.Object
  extended by org.javasimon.jdbc.logging.CallbackLogParams

final class CallbackLogParams
extends Object

CallbackLogParams is data object and contains parameters from callback that are interesting for logging.

Since:
2.0
Version:
$Revision: 304 $ $Date: 2011-04-08 10:39:02 +0200 (Fri, 08 Apr 2011) $
Author:
Radovan Sninsky
See Also:
SimonFormatter

Field Summary
private  Callback.Event event
           
private  String fullName
           
private  String localName
           
private  String note
           
private  long split
           
 
Constructor Summary
CallbackLogParams(String fullName, Callback.Event event, long split, String note)
          Class constructor, initialize all properties.
 
Method Summary
 Callback.Event getEvent()
          Getter for stopwatch event (start, stop, etc.), see Callback.Event.
 String getFullName()
          Getter for Simon fully qualified name.
 String getLocalName()
          Getter for Simon local name, just name after last dot.
 String getNote()
          Getter for Simon note.
 long getSplit()
          Getter for stopwatch split.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fullName

private String fullName

localName

private String localName

event

private Callback.Event event

split

private long split

note

private String note
Constructor Detail

CallbackLogParams

CallbackLogParams(String fullName,
                  Callback.Event event,
                  long split,
                  String note)
Class constructor, initialize all properties.

Parameters:
fullName - full name of Simon
event - event (see Callback.Event)
split - split in ms
note - provided note
Method Detail

getFullName

public String getFullName()
Getter for Simon fully qualified name.

Returns:
Simon fullname

getLocalName

public String getLocalName()
Getter for Simon local name, just name after last dot.

Returns:
Simon local name

getEvent

public Callback.Event getEvent()
Getter for stopwatch event (start, stop, etc.), see Callback.Event.

Returns:
stopwatch event

getSplit

public long getSplit()
Getter for stopwatch split.

Returns:
stopwatch split

getNote

public String getNote()
Getter for Simon note.

Returns:
Simon note

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.