edu.jhu.cnds.Frugal
Class Cost

java.lang.Object
  |
  +--net.jini.entry.AbstractEntry
        |
        +--edu.jhu.cnds.Frugal.Cost

public class Cost
extends net.jini.entry.AbstractEntry

An entry corresponding to a given Frugal Resource's cost.

Version:
2.0
Author:
R. Sean Borgstrom
See Also:
Serialized Form

Field Summary
 java.lang.Double cost
          The computed cost for assigning a new job to this Frugal Resource.
 java.lang.String cueCard
          String with textual data about the cost for assigning a new job to this Frugal Resource.
 java.lang.Long machines
          The number of Frugal Resources currently instantiated, to the best of this Frugal Resource's knowledge.
 java.lang.Double maxLoad
          The highest load yet seen on the system, rounded upwards to the next integral power of two, to the best of this Frugal Resource's knowledge.
 
Constructor Summary
Cost()
          Creates a blank Frugal Cost entry.
Cost(long machines, long free, long total, long current, long max, double maxLoad)
          Creates a Frugal Cost entry.
 
Methods inherited from class net.jini.entry.AbstractEntry
equals, equals, hashCode, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cost

public java.lang.Double cost
The computed cost for assigning a new job to this Frugal Resource.

machines

public java.lang.Long machines
The number of Frugal Resources currently instantiated, to the best of this Frugal Resource's knowledge.

maxLoad

public java.lang.Double maxLoad
The highest load yet seen on the system, rounded upwards to the next integral power of two, to the best of this Frugal Resource's knowledge.

cueCard

public java.lang.String cueCard
String with textual data about the cost for assigning a new job to this Frugal Resource.
Constructor Detail

Cost

public Cost()
Creates a blank Frugal Cost entry.

Cost

public Cost(long machines,
            long free,
            long total,
            long current,
            long max,
            double maxLoad)
Creates a Frugal Cost entry.
Parameters:
machines - long that becomes "machines".
free - Free memory on the virtual machine on which the relevant Frugal Resource runs.
total - Total memory assigned to the virtual machine on which the relevant Frugal Resource runs.
current - Current speed on the machine on which the relevant Frugal Resource runs.
max - Maximum speed in the virtual cluster in which the relevant Frugal Resource runs. Uses 'current' if uninitialized.
maxLoad - double that becomes "maxLoad".