Rio Project 4.2 API Documentation



org.rioproject.system.measurable.cpu
Class MpstatOutputParser

java.lang.Object
  extended by org.rioproject.system.measurable.cpu.CPUExecHandler
      extended by org.rioproject.system.measurable.cpu.MpstatOutputParser
All Implemented Interfaces:
MeasurableMonitor<CpuUtilization>

public class MpstatOutputParser
extends CPUExecHandler

The MpstatOutputParser parses the output of the mpstat command on Solaris

Author:
Dennis Reedy

Constructor Summary
MpstatOutputParser()
           
 
Method Summary
 String getCommand()
          Get the command to execute
 double getUtilization()
           
 void parse(InputStream in)
           
 
Methods inherited from class org.rioproject.system.measurable.cpu.CPUExecHandler
getExecutorService, getMeasuredResource, setID, setThresholdValues, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MpstatOutputParser

public MpstatOutputParser()
Method Detail

parse

public void parse(InputStream in)
Specified by:
parse in class CPUExecHandler

getUtilization

public double getUtilization()
Specified by:
getUtilization in class CPUExecHandler

getCommand

public String getCommand()
Description copied from class: CPUExecHandler
Get the command to execute

Specified by:
getCommand in class CPUExecHandler
Returns:
command the name of the command

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.