public class Offer extends Object implements com.netflix.fenzo.VirtualMachineLease
VirtualMachineLease.
The default implementation provided by Fenzo isn't compatible with reserved resources. This implementation properly combines resources, e.g. a combination of reserved and unreserved cpus.
| Constructor and Description |
|---|
Offer(org.apache.mesos.Protos.Offer offer) |
| Modifier and Type | Method and Description |
|---|---|
double |
cpuCores() |
double |
diskMB() |
Map<String,org.apache.mesos.Protos.Attribute> |
getAttributeMap() |
String |
getId() |
org.apache.mesos.Protos.Offer |
getOffer() |
long |
getOfferedTime() |
List<org.apache.mesos.Protos.Resource> |
getResources() |
Double |
getScalarValue(String name) |
Map<String,Double> |
getScalarValues() |
String |
getVMID() |
double |
gpus() |
String |
hostname() |
double |
memoryMB() |
double |
networkMbps() |
List<com.netflix.fenzo.VirtualMachineLease.Range> |
portRanges() |
String |
toString() |
public List<org.apache.mesos.Protos.Resource> getResources()
public String hostname()
hostname in interface com.netflix.fenzo.VirtualMachineLeasepublic String getVMID()
getVMID in interface com.netflix.fenzo.VirtualMachineLeasepublic double cpuCores()
cpuCores in interface com.netflix.fenzo.VirtualMachineLeasepublic double gpus()
public double memoryMB()
memoryMB in interface com.netflix.fenzo.VirtualMachineLeasepublic double networkMbps()
networkMbps in interface com.netflix.fenzo.VirtualMachineLeasepublic double diskMB()
diskMB in interface com.netflix.fenzo.VirtualMachineLeasepublic org.apache.mesos.Protos.Offer getOffer()
getOffer in interface com.netflix.fenzo.VirtualMachineLeasepublic String getId()
getId in interface com.netflix.fenzo.VirtualMachineLeasepublic long getOfferedTime()
getOfferedTime in interface com.netflix.fenzo.VirtualMachineLeasepublic List<com.netflix.fenzo.VirtualMachineLease.Range> portRanges()
portRanges in interface com.netflix.fenzo.VirtualMachineLeasepublic Map<String,org.apache.mesos.Protos.Attribute> getAttributeMap()
getAttributeMap in interface com.netflix.fenzo.VirtualMachineLeasepublic Double getScalarValue(String name)
getScalarValue in interface com.netflix.fenzo.VirtualMachineLeasepublic Map<String,Double> getScalarValues()
getScalarValues in interface com.netflix.fenzo.VirtualMachineLeaseCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.