@Service(value="cuba_ScreenProfilerService") public class ScreenProfilerServiceBean extends java.lang.Object implements ScreenProfilerService
NAME
Constructor and Description |
---|
ScreenProfilerServiceBean() |
Modifier and Type | Method and Description |
---|---|
void |
clearEvents() |
void |
disableProfiling() |
void |
enableProfiling(java.util.Set<java.util.UUID> userIds,
long timeThreshold) |
java.util.List<ScreenProfilerEvent> |
getProfilerEvents() |
long |
getTimeThreshold() |
java.util.Set<java.util.UUID> |
getUserIds() |
void |
init() |
boolean |
isProfilingEnabled() |
boolean |
isProfilingEnabledForUser(java.util.UUID userId) |
void |
saveEvents(java.util.List<ScreenProfilerEvent> events) |
@PostConstruct public void init()
public boolean isProfilingEnabled()
isProfilingEnabled
in interface ScreenProfilerService
public long getTimeThreshold()
getTimeThreshold
in interface ScreenProfilerService
public java.util.Set<java.util.UUID> getUserIds()
getUserIds
in interface ScreenProfilerService
public boolean isProfilingEnabledForUser(java.util.UUID userId)
isProfilingEnabledForUser
in interface ScreenProfilerService
public void enableProfiling(java.util.Set<java.util.UUID> userIds, long timeThreshold)
enableProfiling
in interface ScreenProfilerService
public void disableProfiling()
disableProfiling
in interface ScreenProfilerService
public void saveEvents(java.util.List<ScreenProfilerEvent> events)
saveEvents
in interface ScreenProfilerService
public java.util.List<ScreenProfilerEvent> getProfilerEvents()
getProfilerEvents
in interface ScreenProfilerService
public void clearEvents()
clearEvents
in interface ScreenProfilerService