Class RuntimeMeasurement
java.lang.Object
org.apache.olingo.server.api.debug.RuntimeMeasurement
Runtime measurements.
All times are in nanoseconds since some fixed but arbitrary time (perhaps in the future, so values may be negative).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the class name.Gets the method name.longGets the start time.longGets the stop time.voidsetClassName(String className) Sets the class name.voidsetMethodName(String methodName) Sets the method name.voidsetTimeStarted(long timeStarted) Sets the start time.voidsetTimeStopped(long timeStopped) Sets the stop time.toString()
-
Constructor Details
-
RuntimeMeasurement
public RuntimeMeasurement()
-
-
Method Details
-
setClassName
Sets the class name.- Parameters:
className- the name of the class that is measured
-
getClassName
Gets the class name.- Returns:
- the name of the class that is measured
-
setMethodName
Sets the method name.- Parameters:
methodName- the name of the method that is measured
-
getMethodName
Gets the method name.- Returns:
- the name of the method that is measured
-
setTimeStarted
public void setTimeStarted(long timeStarted) Sets the start time.- Parameters:
timeStarted- the start time in nanoseconds- See Also:
-
getTimeStarted
public long getTimeStarted()Gets the start time.- Returns:
- the start time in nanoseconds or 0 if not set yet
- See Also:
-
setTimeStopped
public void setTimeStopped(long timeStopped) Sets the stop time.- Parameters:
timeStopped- the stop time in nanoseconds- See Also:
-
getTimeStopped
public long getTimeStopped()Gets the stop time.- Returns:
- the stop time in nanoseconds or 0 if not set yet
- See Also:
-
toString
-