ew-profiling, 1.0

be.eliwan.profiling.service
Class ProfilingContainer

java.lang.Object
  extended by be.eliwan.profiling.service.ProfilingContainer
All Implemented Interfaces:
ProfilingBean, ProfilingSink

public class ProfilingContainer
extends Object
implements ProfilingBean, ProfilingSink

Bean for building and reading profiling data.


Constructor Summary
ProfilingContainer()
           
 
Method Summary
 void clear()
           
 List<GroupData> getGroupData()
           
 ProfilingData getTotal()
           
 void register(String group, long duration)
           
 void setRingSize(int ringSize)
          Set ring size.
 void shutdown()
          Stop processing incoming data.
 void start()
          Set up the disruptor service to have a single consumer which aggregates the data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilingContainer

public ProfilingContainer()
Method Detail

setRingSize

public void setRingSize(int ringSize)
Set ring size. Should be done before starting the ProfilingContainer. Otherwise the default value may be used.

Parameters:
ringSize - ring size

start

@PostConstruct
public void start()
Set up the disruptor service to have a single consumer which aggregates the data.


shutdown

@PreDestroy
public void shutdown()
Stop processing incoming data.


clear

public void clear()
Specified by:
clear in interface ProfilingBean

register

public void register(String group,
                     long duration)
Specified by:
register in interface ProfilingSink

getGroupData

public List<GroupData> getGroupData()
Specified by:
getGroupData in interface ProfilingBean

getTotal

public ProfilingData getTotal()
Specified by:
getTotal in interface ProfilingBean

ew-profiling, 1.0

Copyright © 2014. All rights reserved.