Top Description Fields Constructors Methods
org.eclipse.persistence.tools.profiler

public Class Profile

extends Object
implements Serializable, Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable, java.io.Serializable
Imports
java.util.*, java.io.*, org.eclipse.persistence.internal.helper.*, org.eclipse.persistence.internal.localization.*

Purpose: Any information stored for a profile operation.

Author
James Sutherland
Since
TopLink 1.0

Field Summary

Modifier and TypeField and Description
protected Class<?>
protected long
protected long
protected long
protected Map<String, Long>
protected long
protected Class<?>
protected long
protected long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addTiming(String name, long time)

public Object
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.
public Class<?>
public long
public long
public long
public long
public Map<String, Long>
public long
public Class<?>
public long
public long
public long
public void
setDomainClass(Class<?> domainClass)

public void
setLocalTime(long localTime)

public void
setLongestTime(long longestTime)

public void
setNumberOfInstancesEffected(long numberOfInstancesEffected)

public void
setOperationTimings(Map<String, Long> operationTimings)

public void
setProfileTime(long profileTime)

public void
setQueryClass(Class<?> queryClass)

public void
setShortestTime(long shortestTime)

public void
setTotalTime(long totalTime)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public void
write(Writer writer, PerformanceProfiler profiler)

Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

domainClassback to summary
protected Class<?> domainClass
localTimeback to summary
protected long localTime
longestTimeback to summary
protected long longestTime
numberOfInstancesEffectedback to summary
protected long numberOfInstancesEffected
operationTimingsback to summary
protected Map<String, Long> operationTimings
profileTimeback to summary
protected long profileTime
queryClassback to summary
protected Class<?> queryClass
shortestTimeback to summary
protected long shortestTime
totalTimeback to summary
protected long totalTime

Constructor Detail

Profileback to summary
public Profile()

Method Detail

addTimingback to summary
public void addTiming(String name, long time)
cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:Object

a clone of this instance.

Annotations
@Override
getDomainClassback to summary
public Class<?> getDomainClass()
getLocalTimeback to summary
public long getLocalTime()
getLongestTimeback to summary
public long getLongestTime()
getNumberOfInstancesEffectedback to summary
public long getNumberOfInstancesEffected()
getObjectsPerSecondback to summary
public long getObjectsPerSecond()
getOperationTimingsback to summary
public Map<String, Long> getOperationTimings()
getProfileTimeback to summary
public long getProfileTime()
getQueryClassback to summary
public Class<?> getQueryClass()
getShortestTimeback to summary
public long getShortestTime()
getTimePerObjectback to summary
public long getTimePerObject()
getTotalTimeback to summary
public long getTotalTime()
setDomainClassback to summary
public void setDomainClass(Class<?> domainClass)
setLocalTimeback to summary
public void setLocalTime(long localTime)
setLongestTimeback to summary
public void setLongestTime(long longestTime)
setNumberOfInstancesEffectedback to summary
public void setNumberOfInstancesEffected(long numberOfInstancesEffected)
setOperationTimingsback to summary
public void setOperationTimings(Map<String, Long> operationTimings)
setProfileTimeback to summary
public void setProfileTime(long profileTime)
setQueryClassback to summary
public void setQueryClass(Class<?> queryClass)
setShortestTimeback to summary
public void setShortestTime(long shortestTime)
setTotalTimeback to summary
public void setTotalTime(long totalTime)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
writeback to summary
public void write(Writer writer, PerformanceProfiler profiler)