Class Overview
Utility class proving concenience methods for extracting various
information from an MonitoredVm object.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Public Methods
Return the command line for the target Java application.
Parameters
vm
| the target MonitoredVm |
Returns
- String - contains the command line of the target Java
application or the the string "Unknown" if the
command line cannot be determined.
public
static
boolean
isAttachable
(MonitoredVm vm)
Returns true if the VM supports attach-on-demand.
Parameters
vm
| the target MonitoredVm
|
public
static
boolean
isKernelVM
(MonitoredVm vm)
Returns true if the target VM is a kernel VM
Parameters
vm
| the target MonitoredVm
|
Return the JVM arguments for the target Java application.
Parameters
vm
| the target MonitoredVm |
Returns
- String - contains the arguments passed to the JVM for the
target Java application or the the string "Unknown"
if the command line cannot be determined.
Return the JVM flags for the target Java application.
Parameters
vm
| the target MonitoredVm |
Returns
- String - contains the flags passed to the JVM for the
target Java application or the the string "Unknown"
if the command line cannot be determined.
Return the arguments to the main class for the target Java application.
Returns the arguments to the main class. If the arguments can't be
found, the string "Unknown" is returned.
Parameters
vm
| the target MonitoredVm |
Returns
- String - contains the arguments to the main class for the
target Java application or the the string "Unknown"
if the command line cannot be determined.
public
static
String
mainClass
(MonitoredVm vm, boolean fullPath)
Return the main class for the target Java application.
Returns the main class or the name of the jar file if the application
was started with the -jar option.
Parameters
vm
| the target MonitoredVm |
fullPath
| include the full path to Jar file, where applicable |
Returns
- String - contains the main class of the target Java
application or the the string "Unknown" if the
command line cannot be determined.
Return the Java Virtual Machine Version.
Parameters
vm
| the target MonitoredVm |
Returns
- String - contains the version of the target JVM or the
the string "Unknown" if the version cannot be
determined.