|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.tools.profiler.StandardProfilerService
Use the newStandardProfilerService
static factory method(s),
not the StandardProfilerService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Nested Class Summary | |
class |
StandardProfilerService.ProfTimerTask
|
Field Summary | |
private HashMap |
adaptListMap
|
private Map |
callMap
|
private static String |
CLASSNAME
|
private static Object |
dummy
|
private static int |
MAX_PROF_HITS
|
static int |
OCCDATA
|
static int |
occHits
|
private static Object |
occHitsLock
|
static int |
OCCKEY
|
private static long |
PROF_TIMEOUT
|
static Object |
profLock
|
static boolean |
profStarted
|
private static String |
RESOURCE
|
static int |
STACK
|
private Map |
threadFrameMap
|
private Map |
threadsRunning
|
private TimerTask |
timeTask
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardProfilerService()
|
Method Summary | |
private static void |
checkAdmin()
|
int |
disableAdapters(ProfilingKey[] keys)
|
int |
enableAdapters(ProfilingKey[] keys)
|
String |
getConceptualClassname()
Deprecated. |
ProfilerWrapper |
getProfData()
|
ProfilerPollWrapper |
getProfPollData()
|
ProfilingKey[] |
getRegAdapters()
|
protected void |
initialize()
Supported API: false |
static StandardProfilerService |
newStandardProfilerService()
Default factory for the class. |
ProfilerFeedback |
pollProfData()
This call makes use of wt.feedback to report the profiling data at regular intervals |
void |
regProfOperation(ProfilingKey key,
ProfilingListener adapter)
Any service/function that wants to make one of its operations profilable, creates an adapter & a listener. |
void |
reportOpData(ProfilingKey key,
Object occuranceKey,
int cost,
Object occuranceData)
Operations being profiled will report data using this method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static boolean VERBOSE
private HashMap adaptListMap
private Map threadFrameMap
private Map threadsRunning
private Map callMap
public static final int STACK
public static final int OCCKEY
public static final int OCCDATA
public static Object profLock
public static int occHits
private static Object occHitsLock
private static Object dummy
public static boolean profStarted
private static final int MAX_PROF_HITS
private static final long PROF_TIMEOUT
private TimerTask timeTask
Constructor Detail |
public StandardProfilerService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardProfilerService newStandardProfilerService() throws WTException
WTException
public ProfilingKey[] getRegAdapters() throws WTException
getRegAdapters
in interface ProfilerService
WTException
public int enableAdapters(ProfilingKey[] keys) throws WTException
enableAdapters
in interface ProfilerService
keys
-
WTException
public int disableAdapters(ProfilingKey[] keys) throws WTException
disableAdapters
in interface ProfilerService
keys
-
WTException
public ProfilerWrapper getProfData() throws WTException
getProfData
in interface ProfilerService
WTException
public ProfilerFeedback pollProfData() throws WTException
pollProfData
in interface ProfilerService
WTException
public void regProfOperation(ProfilingKey key, ProfilingListener adapter)
regProfOperation
in interface ProfilerServiceSvr
key
- adapter
- public void reportOpData(ProfilingKey key, Object occuranceKey, int cost, Object occuranceData)
reportOpData
in interface ProfilerServiceSvr
key
- occuranceKey
- cost
- occuranceData
- protected void initialize() throws WTException
StandardManager
initialize
in class StandardManager
WTException
public ProfilerPollWrapper getProfPollData() throws WTException
WTException
private static void checkAdmin() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |