Package org.cyclos.impl.system
Class ProfilingEntry
- java.lang.Object
-
- org.cyclos.impl.system.ProfilingElement
-
- org.cyclos.impl.system.ProfilingEntry
-
- All Implemented Interfaces:
Serializable
public class ProfilingEntry extends ProfilingElement
Represents a single profiling entry (a request to a service / custom web service or scheduled task execution)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProfilingEntry()ProfilingEntry(ProfilingEntryType type, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCacheProducing(String cacheName, int time)voidaddEvent(ProfilingEvent event)static voidexcludeClassFromProfilingContext(String className)Excludes a class by its name from the profiling context.static voidexcludeMethodFromProfilingContext(String className, String methodName)Excludes a method of a given class from the profiling context.static voidexcludePackageFromProfilingContext(String className)Excludes the container package of the given class from the profiling context.Map<String,Integer>getCacheProducing()StringgetChannel()StringgetErrorTrace()List<ProfilingEvent>getEvents()StringgetHost()StringgetName()StringgetNetwork()ObjectgetParameters()StringgetRemoteAddress()ObjectgetResult()Set<org.apache.commons.lang3.tuple.Triple<String,String,String>>getScripts()Returns the scripts executed during this profiling entry.
Each script is represented by a triple of: script name, script type, function nameIntegergetSeq()StringgetSessionToken()StringgetTaskClassName()ProfilingEntryTypegetType()StringgetUser()voidsetCacheProducing(Map<String,Integer> cacheProducing)voidsetChannel(String channel)voidsetErrorTrace(String errorTrace)voidsetEvents(List<ProfilingEvent> events)voidsetHost(String host)voidsetName(String name)voidsetNetwork(String network)voidsetParameters(Object parameters)voidsetRemoteAddress(String remoteAddress)voidsetResult(Object result)voidsetSeq(Integer seq)voidsetSessionToken(String sessionToken)voidsetTaskClassName(String taskClassName)voidsetType(ProfilingEntryType type)voidsetUser(String user)-
Methods inherited from class org.cyclos.impl.system.ProfilingElement
end, getDuration, getTimestamp, setDuration, setTimestamp
-
-
-
-
Constructor Detail
-
ProfilingEntry
public ProfilingEntry()
-
ProfilingEntry
public ProfilingEntry(ProfilingEntryType type, String name)
-
-
Method Detail
-
excludeClassFromProfilingContext
public static void excludeClassFromProfilingContext(String className)
Excludes a class by its name from the profiling context.
-
excludeMethodFromProfilingContext
public static void excludeMethodFromProfilingContext(String className, String methodName)
Excludes a method of a given class from the profiling context.
-
excludePackageFromProfilingContext
public static void excludePackageFromProfilingContext(String className)
Excludes the container package of the given class from the profiling context.
-
addCacheProducing
public void addCacheProducing(String cacheName, int time)
-
addEvent
public void addEvent(ProfilingEvent event)
-
getChannel
public String getChannel()
-
getErrorTrace
public String getErrorTrace()
-
getEvents
public List<ProfilingEvent> getEvents()
-
getHost
public String getHost()
-
getName
public String getName()
-
getNetwork
public String getNetwork()
-
getParameters
public Object getParameters()
-
getRemoteAddress
public String getRemoteAddress()
-
getResult
public Object getResult()
-
getScripts
public Set<org.apache.commons.lang3.tuple.Triple<String,String,String>> getScripts()
Returns the scripts executed during this profiling entry.
Each script is represented by a triple of: script name, script type, function name
-
getSeq
public Integer getSeq()
-
getSessionToken
public String getSessionToken()
-
getTaskClassName
public String getTaskClassName()
-
getType
public ProfilingEntryType getType()
-
getUser
public String getUser()
-
setChannel
public void setChannel(String channel)
-
setErrorTrace
public void setErrorTrace(String errorTrace)
-
setEvents
public void setEvents(List<ProfilingEvent> events)
-
setHost
public void setHost(String host)
-
setName
public void setName(String name)
-
setNetwork
public void setNetwork(String network)
-
setParameters
public void setParameters(Object parameters)
-
setRemoteAddress
public void setRemoteAddress(String remoteAddress)
-
setResult
public void setResult(Object result)
-
setSeq
public void setSeq(Integer seq)
-
setSessionToken
public void setSessionToken(String sessionToken)
-
setTaskClassName
public void setTaskClassName(String taskClassName)
-
setType
public void setType(ProfilingEntryType type)
-
setUser
public void setUser(String user)
-
-