APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvmstat.perfdata.monitor.protocol.file

public Class FileMonitoredVm

extends AbstractMonitoredVm
Class Inheritance
Imports
sun.jvmstat.monitor.*, sun.jvmstat.monitor.event.VmListener, sun.jvmstat.perfdata.monitor.*, java.util.List, java.lang.reflect.*, java.io.*

Concrete implementation of the AbstractMonitoredVm class for the file: protocol for the HotSpot PerfData monitoring implementation.

This class provides the ability to attach to the instrumentation buffer (saved or live) of a target Java Virtual Machine by providing a file URI to a file containing the instrmentation buffer data.

Author
Brian Doherty
Since
1.5

Field Summary

Inherited from sun.jvmstat.perfdata.monitor.AbstractMonitoredVm:
intervalpdbvmid

Constructor Summary

AccessConstructor and Description
public
FileMonitoredVm(VmIdentifier
the vm identifier referring to the file
vmid
,
int
sampling interval (unused in this protocol).
interval
)

Create a FileMonitoredVm instance.

Method Summary

Modifier and TypeMethod and Description
public void
public void
Inherited from sun.jvmstat.perfdata.monitor.AbstractMonitoredVm:
clearLastExceptiondetachfindByNamefindByPatterngetBytesgetCapacitygetIntervalgetLastExceptiongetMonitorStatusgetVmIdentifierisErroredsetIntervalsetLastException

Constructor Detail

FileMonitoredVmback to summary
public FileMonitoredVm(VmIdentifier vmid, int interval) throws MonitorException

Create a FileMonitoredVm instance.

Parameters
vmid:VmIdentifier

the vm identifier referring to the file

interval:int

sampling interval (unused in this protocol).

Method Detail

addVmListenerback to summary
public void addVmListener(VmListener l)

Implements abstract sun.jvmstat.perfdata.monitor.AbstractMonitoredVm.addVmListener.

Implements sun.jvmstat.monitor.MonitoredVm.addVmListener.

Doc from sun.jvmstat.perfdata.monitor.AbstractMonitoredVm.addVmListener.

Add a VmListener. The given listener is added to the list of VmListener objects to be notified of MonitoredVm related events..

Note - the file: protocol currently does not support the registration or notification of listeners.

removeVmListenerback to summary
public void removeVmListener(VmListener l)

Implements abstract sun.jvmstat.perfdata.monitor.AbstractMonitoredVm.removeVmListener.

Implements sun.jvmstat.monitor.MonitoredVm.removeVmListener.

Doc from sun.jvmstat.perfdata.monitor.AbstractMonitoredVm.removeVmListener.

Remove a VmListener. The given listener is removed from the list of VmListener objects to be notified of MonitoredVm related events..

Note - the file: protocol currently does not support the registration or notification of listeners.