public class KKApiMgr extends java.lang.Object implements KKApiMgrIf
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
| Constructor and Description |
|---|
KKApiMgr()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
apiEnd(KKApiObjIf obj)
Called at the end of the API call - just before returning
|
KKApiObjIf |
apiStart(java.lang.String name)
Called at the start of the API call
|
KKApiObjIf |
apiStart(java.lang.String name,
boolean debugOnly)
Called at the start of the API call
|
java.lang.String |
getElapsed(KKApiObjIf obj)
Called at any time to get a String indicating the elapsed time.
|
long |
getElapsedMS(KKApiObjIf obj)
Called at any time to get a long indicating the elapsed time.
|
protected void |
logApi(java.lang.String apiName,
long start,
long end) |
public KKApiObjIf apiStart(java.lang.String name)
KKApiMgrIfapiStart in interface KKApiMgrIfname - the API namepublic KKApiObjIf apiStart(java.lang.String name, boolean debugOnly)
KKApiMgrIfapiStart in interface KKApiMgrIfname - the API namedebugOnly - Only set up the KKApiObj if debug logging is enabledpublic void apiEnd(KKApiObjIf obj)
KKApiMgrIfapiEnd in interface KKApiMgrIfobj - the KKApiObjIf returned from the earlier apiStart callprotected void logApi(java.lang.String apiName,
long start,
long end)
public java.lang.String getElapsed(KKApiObjIf obj)
KKApiMgrIfgetElapsed in interface KKApiMgrIfobj - the KKApiObjIf returned from the earlier apiStart callpublic long getElapsedMS(KKApiObjIf obj)
KKApiMgrIfgetElapsedMS in interface KKApiMgrIfobj - the KKApiObjIf returned from the earlier apiStart callCopyright © 2018 DS Data Systems UK Ltd.