public class TrackingOptions
extends java.lang.Object
Controller.startCPURecording(boolean, TrackingOptions)
} and
Controller.startAllocRecording(boolean, TrackingOptions)
. Please see the help topic on request
tracking for more information.
After constructing an instance of this class, all request tracking options are set to false.Modifier and Type | Field and Description |
---|---|
static TrackingOptions |
AWT
Only track AWT, same as new TrackingOptions().awt(true).
|
static TrackingOptions |
EXECUTORS
Only track executors, same as new TrackingOptions().executors(true).
|
static TrackingOptions |
NONE
The default value used by
Controller.startCPURecording(boolean) and Controller.startAllocRecording(boolean, TrackingOptions) |
static TrackingOptions |
REMOTE_EJB
Only track remote EJBs, same as new TrackingOptions().remoteEjb(true).
|
static TrackingOptions |
RMI
Only track RMI, same as new TrackingOptions().rmi(true).
|
static TrackingOptions |
SWT
Only track SWT, same as new TrackingOptions().swt(true).
|
static TrackingOptions |
THREAD_START
Only track thread start, same as new TrackingOptions().threadStart(true).
|
static TrackingOptions |
WEB_SERVICES
Only track web services, same as new TrackingOptions().webServices(true).
|
Constructor and Description |
---|
TrackingOptions()
Create a new instance with no tracking types enabled.
|
Modifier and Type | Method and Description |
---|---|
TrackingOptions |
awt(boolean awt)
Determines if AWT should be tracked.
|
TrackingOptions |
executors(boolean executors)
Determines if executors should be tracked.
|
TrackingOptions |
freeze()
Make these tracking options unmodifiable.
|
boolean |
isAwt()
Returns if AWT is tracked.
|
boolean |
isExecutors()
Returns if executors are tracked.
|
boolean |
isRemoteEjb()
Returns if remote EJBs are tracked.
|
boolean |
isRmi()
Returns if RMI is tracked.
|
boolean |
isSwt()
Returns if SWT is tracked.
|
boolean |
isThreadStart()
Returns if thread start is tracked.
|
boolean |
isWebServices()
Returns if web services are tracked.
|
TrackingOptions |
remoteEjb(boolean remoteEjb)
Determines if remote EJBs should be tracked.
|
TrackingOptions |
rmi(boolean rmi)
Determines if RMI should be tracked.
|
TrackingOptions |
swt(boolean swt)
Determines if SWT should be tracked.
|
TrackingOptions |
threadStart(boolean threadStart)
Determines if thread start should be tracked.
|
TrackingOptions |
webServices(boolean webServices)
Determines if web services should be tracked.
|
public static final TrackingOptions NONE
Controller.startCPURecording(boolean)
and Controller.startAllocRecording(boolean, TrackingOptions)
public static final TrackingOptions THREAD_START
public static final TrackingOptions EXECUTORS
public static final TrackingOptions AWT
public static final TrackingOptions SWT
public static final TrackingOptions RMI
public static final TrackingOptions REMOTE_EJB
public static final TrackingOptions WEB_SERVICES
public TrackingOptions()
public TrackingOptions threadStart(boolean threadStart)
threadStart
- the new valuepublic TrackingOptions executors(boolean executors)
executors
- the new valuepublic TrackingOptions awt(boolean awt)
awt
- the new valuepublic TrackingOptions swt(boolean swt)
swt
- the new valuepublic TrackingOptions rmi(boolean rmi)
rmi
- the new valuepublic TrackingOptions webServices(boolean webServices)
webServices
- the new valuepublic TrackingOptions remoteEjb(boolean remoteEjb)
remoteEjb
- the new valuepublic boolean isThreadStart()
public boolean isExecutors()
public boolean isAwt()
public boolean isSwt()
public boolean isRemoteEjb()
public boolean isWebServices()
public boolean isRmi()
public TrackingOptions freeze()