org.jclouds.compute.domain
Class Processor

java.lang.Object
  extended by org.jclouds.compute.domain.Processor
All Implemented Interfaces:
Comparable<Processor>

public class Processor
extends Object
implements Comparable<Processor>

Processor (or CPU) as a part of Hardware of a NodeMetadata

Author:
Adrian Cole

Constructor Summary
Processor(double cores, double speed)
           
 
Method Summary
 int compareTo(Processor that)
          
 boolean equals(Object obj)
           
 double getCores()
          Amount of virtual or physical cores provided
 double getSpeed()
          Speed, not necessarily in ghz, but certainly relevant to other processors in the same provider.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Processor

public Processor(double cores,
                 double speed)
Method Detail

compareTo

public int compareTo(Processor that)

Specified by:
compareTo in interface Comparable<Processor>

getCores

public double getCores()
Amount of virtual or physical cores provided


getSpeed

public double getSpeed()
Speed, not necessarily in ghz, but certainly relevant to other processors in the same provider.


toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.