org.jclouds.compute.domain
Class Processor
java.lang.Object
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)
|
Processor
public Processor(double cores,
double speed)
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-2011 jclouds. All Rights Reserved.