Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  /*
   *  Copyright (C) 2010-2011 Oracle Corporation
   *
   *  This file is part of the VirtualBox SDK, as available from
   *  http://www.virtualbox.org.  This library is free software; you can
   *  redistribute it and/or modify it under the terms of the GNU Lesser General
   *  Public License as published by the Free Software Foundation, in version 2.1
   *  as it comes in the "COPYING.LIB" file of the VirtualBox SDK distribution.
  *  This library is distributed in the hope that it will be useful, but WITHOUT
  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
  *  License for more details.
  *
  * IPerformanceMetric.java
  *
  * DO NOT EDIT! This is a generated file.
  * Generated from: src/VBox/Main/idl/VirtualBox.xidl (VirtualBox's interface definitions in XML)
  * Generator: src/VBox/Main/glue/glue-java.xsl
  */
 
 package org.virtualbox_4_2;
 
 import javax.xml.ws.*;
 import java.util.List;

The IPerformanceMetric interface represents parameters of the given performance metric. Interface ID: {2A1A60AE-9345-4019-AD53-D34BA41CBFE9}
 
 public class IPerformanceMetric extends IUnknown {
 
     public IPerformanceMetric(String wrappedVboxPortType port) {
           super(wrappedport);
     }
Name of the metric.

Returns:
String
 
     public String getMetricName() {
       try {
          String retVal = .iPerformanceMetricGetMetricName();
          return retVal;
      } catch (InvalidObjectFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      } catch (RuntimeFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      }
     }
Object this metric belongs to.

Returns:
IUnknown
 
     public IUnknown getObject() {
       try {
          String retVal = .iPerformanceMetricGetObject();
          return (retVal.length() > 0) ? new IUnknown(retVal) : null;
      } catch (InvalidObjectFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      } catch (RuntimeFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      }
     }
Textual description of the metric.

Returns:
String
 
     public String getDescription() {
       try {
          String retVal = .iPerformanceMetricGetDescription();
          return retVal;
      } catch (InvalidObjectFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      } catch (RuntimeFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      }
     }
Time interval between samples, measured in seconds.

Returns:
Long
 
     public Long getPeriod() {
       try {
         Long retVal = .iPerformanceMetricGetPeriod();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
Number of recent samples retained by the performance collector for this metric. When the collected sample count exceeds this number, older samples are discarded.

Returns:
Long
    public Long getCount() {
      try {
         Long retVal = .iPerformanceMetricGetCount();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
Unit of measurement.

Returns:
String
    public String getUnit() {
      try {
         String retVal = .iPerformanceMetricGetUnit();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
Minimum possible value of this metric.

Returns:
Integer
    public Integer getMinimumValue() {
      try {
         Integer retVal = .iPerformanceMetricGetMinimumValue();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
Maximum possible value of this metric.

Returns:
Integer
    public Integer getMaximumValue() {
      try {
         Integer retVal = .iPerformanceMetricGetMaximumValue();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
    public static IPerformanceMetric queryInterface(IUnknown obj) {
       return obj == null ?  null : new IPerformanceMetric(obj.getWrapped(), obj.getRemoteWSPort());
    }
New to GrepCode? Check out our FAQ X