Jvmstat

sun.jvmstat.perfdata.monitor.protocol.file
Class FileMonitoredVm

java.lang.Object
  extended by sun.jvmstat.perfdata.monitor.AbstractMonitoredVm
      extended by sun.jvmstat.perfdata.monitor.protocol.file.FileMonitoredVm
All Implemented Interfaces:
MonitoredVm, BufferedMonitoredVm

public class FileMonitoredVm
extends AbstractMonitoredVm

Concrete implementation of the AbstractMonitoredVm class for the file: protcol 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.

Since:
1.5

Field Summary
 
Fields inherited from class sun.jvmstat.perfdata.monitor.AbstractMonitoredVm
interval, pdb, vmid
 
Constructor Summary
FileMonitoredVm(VmIdentifier vmid, int interval)
          Create a FileMonitoredVm instance.
 
Method Summary
 void addVmListener(VmListener l)
          Add a VmListener.
 void removeVmListener(VmListener l)
          Remove a VmListener.
 
Methods inherited from class sun.jvmstat.perfdata.monitor.AbstractMonitoredVm
clearLastException, detach, findByName, findByPattern, getBytes, getCapacity, getInterval, getLastException, getMonitorStatus, getVmIdentifier, isErrored, setInterval, setLastException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileMonitoredVm

public FileMonitoredVm(VmIdentifier vmid,
                       int interval)
                throws MonitorException
Create a FileMonitoredVm instance.

Parameters:
vmid - the vm identifier referring to the file
interval - sampling interval (unused in this protocol).
Throws:
MonitorException
Method Detail

addVmListener

public void addVmListener(VmListener l)
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.

Specified by:
addVmListener in interface MonitoredVm
Specified by:
addVmListener in class AbstractMonitoredVm
Parameters:
l - the VmListener to add.

removeVmListener

public void removeVmListener(VmListener l)
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.

Specified by:
removeVmListener in interface MonitoredVm
Specified by:
removeVmListener in class AbstractMonitoredVm
Parameters:
l - the VmListener to be removed.

Jvmstat