|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.jdbc.Driver.Url
static class Driver.Url
Class Url represents Simon JDBC url. It parses given url and than provides getters for driver's propreties if provided or default values.
| Field Summary | |
|---|---|
private String |
console
|
private String |
driverId
|
private String |
format
|
private static int |
JDBC_URL_FIXED_PREFIX_LEN
|
private String |
logfile
|
private String |
logger
|
private String |
prefix
|
private String |
realDriver
|
private String |
realUrl
|
private static String |
SIMON_JDBC
|
| Constructor Summary | |
|---|---|
Driver.Url(String url)
Class constructor, parses given url and recognizes driver's properties. |
|
| Method Summary | |
|---|---|
boolean |
getConsole()
Returns true if driver's parameter simon_console is set to yes,
otherwise false. |
String |
getDriverId()
Returns driver identifier (eg. |
String |
getFormat()
Returns log format (build-in or custom) if specified. |
String |
getLogfile()
Returns filename to log events from JDBC Simons if provided. |
String |
getLogger()
Returns logger name if provided. |
String |
getPrefix()
Returns prefix for hierarchy of JDBC related Simons. |
String |
getRealDriver()
Return real driver fully classname. |
String |
getRealUrl()
Returns orignal JDBC URL without any Simon stuff. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String SIMON_JDBC
private static final int JDBC_URL_FIXED_PREFIX_LEN
private String realUrl
private String driverId
private String realDriver
private String prefix
private String logfile
private String logger
private String console
private String format
| Constructor Detail |
|---|
Driver.Url(String url)
url - given JDBC URL| Method Detail |
|---|
public String getRealUrl()
public String getDriverId()
public String getRealDriver()
public String getPrefix()
public String getLogfile()
public String getLogger()
public boolean getConsole()
true if driver's parameter simon_console is set to yes,
otherwise false.
true log to console is enabled, otherwise falsepublic String getFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||