Package org.cyclos.impl.system
Interface ProfilingServiceLocal
-
- All Superinterfaces:
ProfilingService,Service
public interface ProfilingServiceLocal extends ProfilingService
Local interface forProfilingService
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancollect(ProfilingEntry profilingEntry, Throwable error)Collects the give entry, which either completed successfully or with errorstatic voidexcludeMethodsFromProfilingContext(Class<?> clazz)Excludes methods from the profiling context that are annotated withExcludeFromProfilingContextPair<StartProfilingParams,ProfilingEntry>newIfEnabled(ProfilingEntryType type, InvocationData invocation)Creates a newProfilingEntryif the given type and invocation context matches the current profiling.-
Methods inherited from interface org.cyclos.services.system.ProfilingService
getCurrent, getData, list, load, readData, remove, removeAll, start, stop
-
-
-
-
Method Detail
-
excludeMethodsFromProfilingContext
static void excludeMethodsFromProfilingContext(Class<?> clazz)
Excludes methods from the profiling context that are annotated withExcludeFromProfilingContext- Parameters:
clazz-
-
collect
boolean collect(ProfilingEntry profilingEntry, Throwable error)
Collects the give entry, which either completed successfully or with error
-
newIfEnabled
Pair<StartProfilingParams,ProfilingEntry> newIfEnabled(ProfilingEntryType type, InvocationData invocation)
Creates a newProfilingEntryif the given type and invocation context matches the current profiling. If profiling is not running, or does not match, returns null.
-
-