Package org.cyclos.impl.utils.cluster
Interface ProfilingManager
-
public interface ProfilingManagerManages profiling in a cluster-aware level
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcollect(ProfilingEntry entry)Collects the given entry to the current profiling sessionClusterProfilingStatscurrent()If profiling is running, returns the current in-memory metrics.StartProfilingParamsgetStartParams()If profiling is running, returns the parameters used to start it.voidstart(StartProfilingParams params)Notifies all cluster nodes that a profiling session has startedClusterStopProfilingResultstop()Notifies all cluster nodes that a profiling session has stopped, and returns all in-memory metrics for all nodes
-
-
-
Method Detail
-
collect
void collect(ProfilingEntry entry)
Collects the given entry to the current profiling session
-
current
ClusterProfilingStats current()
If profiling is running, returns the current in-memory metrics. If not running, returns null.
-
getStartParams
StartProfilingParams getStartParams()
If profiling is running, returns the parameters used to start it. If not running, returns null.
-
start
void start(StartProfilingParams params)
Notifies all cluster nodes that a profiling session has started
-
stop
ClusterStopProfilingResult stop()
Notifies all cluster nodes that a profiling session has stopped, and returns all in-memory metrics for all nodes
-
-