Method Summary |
|
abstract public Set<Integer> | activeVms() Return the current set of active Java Virtual Machines for this
MonitoredHost. |
abstract public void | addHostListener(HostListener listener) Add a HostListener. |
public void | clearLastException() Clear the last exception. |
abstract public void | detach(MonitoredVm vm) Detach from the indicated MonitoredVm. |
public HostIdentifier | getHostIdentifier() Return the resolved HostIdentifier for this MonitoredHost. |
public int | getInterval() Get the polling interval. |
public Exception | getLastException() Get the last exception encountered while polling this MonitoredHost. |
public static MonitoredHost | getMonitoredHost(String hostIdString) Factory method to construct MonitoredHost instances to manage
connections to the host indicated by hostIdString
Parameters: hostIdString - a String representation of a HostIdentifier MonitoredHost - the MonitoredHost instance for communicatingwith the indicated host using the protocolspecified in hostIdString. throws: MonitorException - Thrown if monitoring errors occur. throws: URISyntaxException - Thrown when the hostIdString is poorlyformed. |
public static MonitoredHost | getMonitoredHost(VmIdentifier vmid) Factory method to construct a MonitoredHost instance to manage the
connection to the Java Virtual Machine indicated by vmid.
This method provide a convenient short cut for attaching to a specific
instrumented Java Virtual Machine. |
public static MonitoredHost | getMonitoredHost(HostIdentifier hostId) Factory method to construct a MonitoredHost instance to manage the
connection to the host indicated by hostId.
Parameters: hostId - the identifier for the target host. |
abstract public MonitoredVm | getMonitoredVm(VmIdentifier id) Get the MonitoredVm for the given Java Virtual Machine. |
abstract public MonitoredVm | getMonitoredVm(VmIdentifier id, int interval) Get the MonitoredVm for the given Java Virtual Machine. |
public boolean | isErrored() Test if this MonitoredHost is in the errored state. |
abstract public void | removeHostListener(HostListener listener) Remove a HostListener. |
protected static HostIdentifier | resolveHostId(HostIdentifier hostId) Method to resolve unspecified components of the given HostIdentifier
by constructing a new HostIdentifier that replaces the unspecified
components with the default values.
Parameters: hostId - the unresolved HostIdentifier. |
public void | setInterval(int interval) Set the polling interval for this MonitoredHost. |
public void | setLastException(Exception lastException) Set the last exception encountered while polling this MonitoredHost. |