org.cip4.jdflib.util
Class CPUTimer.CPUTimerFactory

java.lang.Object
  extended by org.cip4.jdflib.util.CPUTimer.CPUTimerFactory
Enclosing class:
CPUTimer

public static class CPUTimer.CPUTimerFactory
extends Object

Author:
Rainer Prosi, Heidelberger Druckmaschinen *

Nested Class Summary
protected  class CPUTimer.CPUTimerFactory.ThreadIdentifier
           
 
Field Summary
protected static CPUTimer.CPUTimerFactory theFactory
           
 
Constructor Summary
CPUTimer.CPUTimerFactory()
           
 
Method Summary
 CPUTimer getCreateCurrentTimer(String id)
          get the CPUTimer for a given ID for this thread, create it if it does not yet exist the timer is in paused mode
 CPUTimer getCurrentTimer(String id)
          get the CPUTimer for a given ID for this thread the timer is in paused mode
 CPUTimer getGlobalTimer(String id)
          get the summary of all matching timers over all threads
 Vector<CPUTimer> getTimers(String id)
          get all timers for all threads for a given id
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

theFactory

protected static CPUTimer.CPUTimerFactory theFactory
Constructor Detail

CPUTimer.CPUTimerFactory

public CPUTimer.CPUTimerFactory()
Method Detail

getCurrentTimer

public CPUTimer getCurrentTimer(String id)
get the CPUTimer for a given ID for this thread the timer is in paused mode

Parameters:
id - the id for the timer
Returns:
the timer

getGlobalTimer

public CPUTimer getGlobalTimer(String id)
get the summary of all matching timers over all threads

Parameters:
id - if null get all
Returns:
a disposable summary timer

getTimers

public Vector<CPUTimer> getTimers(String id)
get all timers for all threads for a given id

Parameters:
id - if null get all
Returns:

getCreateCurrentTimer

public CPUTimer getCreateCurrentTimer(String id)
get the CPUTimer for a given ID for this thread, create it if it does not yet exist the timer is in paused mode

Parameters:
id - the id for the timer
Returns:
the timer

toString

public String toString()
Overrides:
toString in class Object
Returns:
See Also:
Object.toString()


Copyright © 2013. All Rights Reserved.