com.ace.moab.api.reservation
Class ReservationStatistics

java.lang.Object
  extended by com.ace.moab.api.reservation.ReservationStatistics
All Implemented Interfaces:
java.io.Serializable

public class ReservationStatistics
extends java.lang.Object
implements java.io.Serializable

This class represents some basic statistical information that is kept about the usage of reservations. All metrics that are kept track relate to processor-seconds usage.

Author:
Scott Brown
See Also:
Serialized Form

Constructor Summary
ReservationStatistics()
           
 
Method Summary
 double getCaps()
          Returns the current active processor-seconds in the last reported iteration.
 double getCips()
          Returns the current idle processor-seconds in the last reported iteration.
 java.lang.Double getStatistics()
          Returns the ratio of active to idle processor-seconds.
 double getTaps()
          Returns the total active processor-seconds over the life of the reservation.
 double getTips()
          Returns the total idle processor-seconds over the life of the reservation.
 void setCaps(double caps)
          Sets the current active processor-seconds in the last reported iteration.
 void setCips(double cips)
          Sets the current idle processor-seconds in the last reported iteration.
 void setTaps(double taps)
          Sets the total active processor-seconds over the life of the reservation.
 void setTips(double tips)
          Sets the total idle processor-seconds over the life of the reservation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReservationStatistics

public ReservationStatistics()
Method Detail

getStatistics

public java.lang.Double getStatistics()
Returns the ratio of active to idle processor-seconds. This is all active processor-seconds divided by all idle processor-seconds.

Returns:
the ratio of active to idle processor-seconds.

getCaps

public double getCaps()
Returns the current active processor-seconds in the last reported iteration.

Returns:
the current active processor-seconds in the last reported iteration.

setCaps

public void setCaps(double caps)
Sets the current active processor-seconds in the last reported iteration.

Parameters:
caps - the current active processor-seconds in the last reported iteration.

getCips

public double getCips()
Returns the current idle processor-seconds in the last reported iteration.

Returns:
the current idle processor-seconds in the last reported iteration.

setCips

public void setCips(double cips)
Sets the current idle processor-seconds in the last reported iteration.

Parameters:
cips - the current idle processor-seconds in the last reported iteration.

getTaps

public double getTaps()
Returns the total active processor-seconds over the life of the reservation.

Returns:
the taps the total active processor-seconds over the life of the reservation.

setTaps

public void setTaps(double taps)
Sets the total active processor-seconds over the life of the reservation.

Parameters:
taps - the total active processor-seconds over the life of the reservation.

getTips

public double getTips()
Returns the total idle processor-seconds over the life of the reservation.

Returns:
the total idle processor-seconds over the life of the reservation.

setTips

public void setTips(double tips)
Sets the total idle processor-seconds over the life of the reservation.

Parameters:
tips - the total idle processor-seconds over the life of the reservation.


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.