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)
KKApiMgrIf
apiStart
in interface KKApiMgrIf
name
- the API namepublic KKApiObjIf apiStart(java.lang.String name, boolean debugOnly)
KKApiMgrIf
apiStart
in interface KKApiMgrIf
name
- the API namedebugOnly
- Only set up the KKApiObj if debug logging is enabledpublic void apiEnd(KKApiObjIf obj)
KKApiMgrIf
apiEnd
in interface KKApiMgrIf
obj
- 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)
KKApiMgrIf
getElapsed
in interface KKApiMgrIf
obj
- the KKApiObjIf returned from the earlier apiStart callpublic long getElapsedMS(KKApiObjIf obj)
KKApiMgrIf
getElapsedMS
in interface KKApiMgrIf
obj
- the KKApiObjIf returned from the earlier apiStart callCopyright © 2018 DS Data Systems UK Ltd.