com.sun.xml.ws.commons.virtualbox.IPerformanceMetric Maven / Gradle / Ivy
The newest version!
package com.sun.xml.ws.commons.virtualbox;
import javax.xml.ws.WebServiceException;
/**
* The IPerformanceMetric interface represents parameters of the given
* performance metric.
*
*/
public class IPerformanceMetric
extends VBoxObject
{
public IPerformanceMetric(String _this, VboxPortType port) {
super(_this,port);
}
/**
* Name of the metric.
*
*/
public String getMetricName() {
try {
String retVal = port.iPerformanceMetricGetMetricName(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Textual description of the metric.
*
*/
public String getDescription() {
try {
String retVal = port.iPerformanceMetricGetDescription(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Time interval between samples, measured in seconds.
*
*/
public long getPeriod() {
try {
long retVal = port.iPerformanceMetricGetPeriod(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Number of recent samples retained by the performance collector for this
* metric.
*
* When the collected sample count exceeds this number, older samples
* are discarded.
*
*/
public long getCount() {
try {
long retVal = port.iPerformanceMetricGetCount(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Unit of measurement.
*
*/
public String getUnit() {
try {
String retVal = port.iPerformanceMetricGetUnit(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Minimum possible value of this metric.
*
*/
public int getMinimumValue() {
try {
int retVal = port.iPerformanceMetricGetMinimumValue(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Maximum possible value of this metric.
*
*/
public int getMaximumValue() {
try {
int retVal = port.iPerformanceMetricGetMaximumValue(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy