public class WVnfInstance extends WAbstractNetworkElement
Modifier and Type | Method and Description |
---|---|
double |
getCurrentCapacityInGbps()
Returns the current capacity of this VNF
|
WNode |
getHostingNode()
Returns the hosting node of the VNF instance
|
String |
getName()
Returns the user-defined name of this instance
|
Resource |
getNe()
Returns the underlying Net2Plan object.
|
double |
getOccupiedCapacityByTraversingRouteInGbps(WServiceChain sc)
Returns the VNF capacity occupied by a given service chain, or zero if (i) the service chain is down, (ii) the service chain is not traversing this VNF instance.
|
double |
getOccupiedCapacityInGbps()
Returns the VNF capacity (measured as Gbps of the traversing service chains, at the input of the VNF) that is
currently consumed by the traversing service chains
|
double |
getOccupiedCpus()
Returns the amount of occupied CPUs by this VNf instance
|
double |
getOccupiedHdInGB()
Returns the amount of occupied hard-disk in Gbytes by this VNf instance
|
double |
getOccupiedRamInGB()
Returns the amount of occupied RAM in Gbytes by this VNf instance
|
double |
getProcessingTimeInMs()
Returns the processing time in ms added to the traversing traffic to account for the end-to-end latencies
|
SortedSet<WServiceChainRequest> |
getTraversingServiceChainRequests()
Returns the service chains requests that have at least one service chain that is traversing this VNF instance
|
SortedSet<WServiceChain> |
getTraversingServiceChains()
Returns the service chains that are traversing this VNF instance
|
String |
getType()
Returns the VNF type of this instance
|
Optional<WVnfType> |
getVnfType()
Returns the WVnfType object assigned to this instance type, if any
|
void |
remove()
Removes the current VNF instance, and all the service chains traversing it
|
void |
scaleVnfCapacityAndConsumptionToBaseInstanceMultiple()
Sets the capacity of this VNF instance as well as the CPU, RAM, HD consumption, so the VNF capacity is the minimum multiple of the
capacity of the instance VNF type.
|
void |
setCapacityInGbpsOfInputTraffic(double newProcessingCapacityInGbps,
double newOccupiedCpu,
double newOccupiedRam,
double newOccupiedHd)
Sets the VNF capacity and RAM/CPU/HD occupation of this instance
|
void |
setName(String name)
Sets the user-defined name for this instance
|
void |
setProcessingTimeInMs(double procTimeInMs)
Sets the processing time in ms added to the traversing traffic to account for the end-to-end latencies
|
String |
toString() |
compareTo, equals, getAsFiber, getAsIpLayer, getAsIpLink, getAsLightpathRequest, getAsLightpathUnregenerated, getAsNode, getAsServiceChain, getAsServiceChainRequest, getAsVnfInstance, getAsWdmLayer, getId, getNet, getNetPlan, isFiber, isLayerIp, isLayerWdm, isLightpathRequest, isLightpathUnregenerated, isNode, isServiceChain, isServiceChainRequest, isVnfInstance, isWIpLink, wasRemoved
public double getCurrentCapacityInGbps()
public WNode getHostingNode()
public String getName()
public Resource getNe()
WAbstractNetworkElement
getNe
in class WAbstractNetworkElement
public double getOccupiedCapacityByTraversingRouteInGbps(WServiceChain sc)
sc
- see abovepublic double getOccupiedCapacityInGbps()
public double getOccupiedCpus()
public double getOccupiedHdInGB()
public double getOccupiedRamInGB()
public double getProcessingTimeInMs()
public SortedSet<WServiceChainRequest> getTraversingServiceChainRequests()
public SortedSet<WServiceChain> getTraversingServiceChains()
public String getType()
public Optional<WVnfType> getVnfType()
public void remove()
public void scaleVnfCapacityAndConsumptionToBaseInstanceMultiple()
public void setCapacityInGbpsOfInputTraffic(double newProcessingCapacityInGbps, double newOccupiedCpu, double newOccupiedRam, double newOccupiedHd)
newProcessingCapacityInGbps
- the new processing capacity of the VNF, measured as the maximum amount of Gbps considering the traffic of the traversing service chains, at the input of the VNFnewOccupiedCpu
- the amount of CPU occupied by this instancenewOccupiedRam
- the amount of RAM in GBytes occupied by this instancenewOccupiedHd
- the amount of hard disk in Gbytes occupied by this instancepublic void setName(String name)
name
- see abovepublic void setProcessingTimeInMs(double procTimeInMs)
procTimeInMs
- see aboveCopyright © 2018. All rights reserved.