Package org.cyclos.services.system
Interface ProfilingService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
ProfilingServiceLocal
public interface ProfilingService extends Service
Service to manage profiling sessions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProfilingSessionVOgetCurrent()Returns the currently running profiling data, or null if not runningProfilingDatagetData()Returns the profiling dataList<ProfilingSessionVO>list()Returns all existing profiling sessionsProfilingSessionVOload(@NotNull Long id)Loads a profiling session by idStringreadData(@NotNull Long id)Reads the data of a profiling session by idvoidremove(Long id)Removes a profiling session by idintremoveAll()Removes all profiling sessionsvoidstart(StartProfilingParams params)Starts a new profiling sessionProfilingSessionVOstop()Stops the current profiling session, returning the generated session details
-
-
-
Method Detail
-
getCurrent
ProfilingSessionVO getCurrent() throws FrameworkException
Returns the currently running profiling data, or null if not running- Throws:
FrameworkException
-
getData
ProfilingData getData() throws FrameworkException
Returns the profiling data- Throws:
FrameworkException
-
list
List<ProfilingSessionVO> list()
Returns all existing profiling sessions
-
load
ProfilingSessionVO load(@NotNull @NotNull Long id) throws FrameworkException
Loads a profiling session by id- Throws:
FrameworkException
-
readData
String readData(@NotNull @NotNull Long id) throws FrameworkException
Reads the data of a profiling session by id- Throws:
FrameworkException
-
remove
void remove(Long id) throws FrameworkException
Removes a profiling session by id- Throws:
FrameworkException
-
removeAll
int removeAll() throws FrameworkExceptionRemoves all profiling sessions- Throws:
FrameworkException
-
start
void start(StartProfilingParams params) throws FrameworkException
Starts a new profiling session- Throws:
FrameworkException
-
stop
ProfilingSessionVO stop() throws FrameworkException
Stops the current profiling session, returning the generated session details- Throws:
FrameworkException
-
-