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() |
String |
getVMID() |
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.VirtualMachineLease
public String getVMID()
getVMID
in interface com.netflix.fenzo.VirtualMachineLease
public double cpuCores()
cpuCores
in interface com.netflix.fenzo.VirtualMachineLease
public double memoryMB()
memoryMB
in interface com.netflix.fenzo.VirtualMachineLease
public double networkMbps()
networkMbps
in interface com.netflix.fenzo.VirtualMachineLease
public double diskMB()
diskMB
in interface com.netflix.fenzo.VirtualMachineLease
public org.apache.mesos.Protos.Offer getOffer()
getOffer
in interface com.netflix.fenzo.VirtualMachineLease
public String getId()
getId
in interface com.netflix.fenzo.VirtualMachineLease
public long getOfferedTime()
getOfferedTime
in interface com.netflix.fenzo.VirtualMachineLease
public List<com.netflix.fenzo.VirtualMachineLease.Range> portRanges()
portRanges
in interface com.netflix.fenzo.VirtualMachineLease
public Map<String,org.apache.mesos.Protos.Attribute> getAttributeMap()
getAttributeMap
in interface com.netflix.fenzo.VirtualMachineLease
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.