public class HS_SA_Support extends Object
IMPORTANT NOTE: On some UNIX based operating systems and MacOSX operation system, Hotspot Serviceability Agent (SA) process attach may fail due to insufficient privilege. So, on these operating systems, user (runs the application) must be super user and must be already authenticated for example with"sudo"
command (also with password) to"/etc/sudoers"
file. For more information about"sudo"
, please have a look: http://en.wikipedia.org/wiki/Sudo http://linux.about.com/od/commands/l/blcmdl8_sudo.htm
HS_SA_Processor
,
HS_SA_Result
,
HS_SA_CompressedReferencesProcessor
,
HS_SA_CompressedReferencesResult
Modifier and Type | Method and Description |
---|---|
static String |
details()
Gives details about Hotspot Serviceability Agent support.
|
static HS_SA_Result |
executeOnHotspotSA(Class<? extends HS_SA_Processor> processorClass)
Executes given typed
HS_SA_Processor on HotSpot agent process and
returns a HS_SA_Result instance as result. |
static HS_SA_Result |
executeOnHotspotSA(Class<? extends HS_SA_Processor> processorClass,
int timeoutInMsecs)
Executes given typed
HS_SA_Processor on Hotspot agent process and
returns a HS_SA_Result instance as result. |
static HS_SA_Result |
executeOnHotspotSA(HS_SA_Processor processor)
Executes given
HS_SA_Processor on HotSpot agent process and
returns a HS_SA_Result instance as result. |
static HS_SA_Result |
executeOnHotspotSA(HS_SA_Processor processor,
int timeoutInMsecs)
Executes given
HS_SA_Processor on Hotspot agent process and
returns a HS_SA_Result instance as result. |
static HS_SA_CompressedReferencesResult |
getCompressedReferences()
Gets the compressed references information as
HS_SA_CompressedReferencesResult instance. |
static boolean |
isEnable()
Returns
true if HotSpot Serviceability Agent support is enable, otherwise false . |
static void |
main(String[] args) |
public static void main(String[] args)
public static boolean isEnable()
true
if HotSpot Serviceability Agent support is enable, otherwise false
.public static HS_SA_Result executeOnHotspotSA(Class<? extends HS_SA_Processor> processorClass)
HS_SA_Processor
on HotSpot agent process and
returns a HS_SA_Result
instance as result.processorClass
- the type of HS_SA_Processor
instance to executeHS_SA_Result
instance as result of processor executionpublic static HS_SA_Result executeOnHotspotSA(HS_SA_Processor processor)
HS_SA_Processor
on HotSpot agent process and
returns a HS_SA_Result
instance as result.processor
- the HS_SA_Processor
instance to executeHS_SA_Result
instance as result of processor executionpublic static HS_SA_Result executeOnHotspotSA(Class<? extends HS_SA_Processor> processorClass, int timeoutInMsecs)
HS_SA_Processor
on Hotspot agent process and
returns a HS_SA_Result
instance as result.processorClass
- the type of HS_SA_Processor
instance to executetimeoutInMsecs
- the timeout in milliseconds to wait at most for terminating connection between
current process and Hotspot agent process.HS_SA_Result
instance as result of processor executionpublic static HS_SA_Result executeOnHotspotSA(HS_SA_Processor processor, int timeoutInMsecs)
HS_SA_Processor
on Hotspot agent process and
returns a HS_SA_Result
instance as result.processor
- the HS_SA_Processor
instance to executetimeoutInMsecs
- the timeout in milliseconds to wait at most for terminating connection between
current process and Hotspot agent process.HS_SA_Result
instance as result of processor executionpublic static HS_SA_CompressedReferencesResult getCompressedReferences()
HS_SA_CompressedReferencesResult
instance.HS_SA_CompressedReferencesResult
instancepublic static String details()
Copyright © 2015. All Rights Reserved.