src/jdk.jvmstat/share/classes/sun/jvmstat/perfdata/monitor/AbstractMonitoredVm.java

Print this page




  78     /**
  79      * {@inheritDoc}
  80      */
  81     public Monitor findByName(String name) throws MonitorException {
  82         return pdb.findByName(name);
  83     }
  84 
  85     /**
  86      * {@inheritDoc}
  87      */
  88     public List<Monitor> findByPattern(String patternString) throws MonitorException {
  89         return pdb.findByPattern(patternString);
  90     }
  91 
  92     /**
  93      * {@inheritDoc}
  94      */
  95     public void detach() {
  96         /*
  97          * no default action required because the detach operation for the
  98          * native byte buffer is managed by the sun.misc.Perf class.
  99          */
 100     }
 101 
 102 
 103     /* ---- Methods to support polled MonitoredVm Implementations ----- */
 104 
 105     /**
 106      * {@inheritDoc}
 107      */
 108     public void setInterval(int interval) {
 109         this.interval = interval;
 110     }
 111 
 112     /**
 113      * {@inheritDoc}
 114      */
 115     public int getInterval() {
 116         return interval;
 117     }
 118 




  78     /**
  79      * {@inheritDoc}
  80      */
  81     public Monitor findByName(String name) throws MonitorException {
  82         return pdb.findByName(name);
  83     }
  84 
  85     /**
  86      * {@inheritDoc}
  87      */
  88     public List<Monitor> findByPattern(String patternString) throws MonitorException {
  89         return pdb.findByPattern(patternString);
  90     }
  91 
  92     /**
  93      * {@inheritDoc}
  94      */
  95     public void detach() {
  96         /*
  97          * no default action required because the detach operation for the
  98          * native byte buffer is managed by the Perf class.
  99          */
 100     }
 101 
 102 
 103     /* ---- Methods to support polled MonitoredVm Implementations ----- */
 104 
 105     /**
 106      * {@inheritDoc}
 107      */
 108     public void setInterval(int interval) {
 109         this.interval = interval;
 110     }
 111 
 112     /**
 113      * {@inheritDoc}
 114      */
 115     public int getInterval() {
 116         return interval;
 117     }
 118