Class PAL
java.lang.Object
PAL
public class PAL
extends java.lang.Object
Order PAL class used for PAL for an ordered algorithm. The class will use the data center to perform calculation on those.
PAL class will implement the Algorithm 1, 2, 3, and traffic aware for both ordered and unordered policy.
-
Field Summary
Fields Modifier and Type Field Description private DataCenter
dataCenter
-
Constructor Summary
Constructors Constructor Description PAL(DataCenter dataCenter)
Default constructor -
Method Summary
Modifier and Type Method Description int[]
ascendingOrderedOfCommunicationFre()
double
costInOrdered()
Implement Ordered PAL Algorithm 1 in paper.double
PALUnordered()
Implement the algorithm 3 in the paper.double
ultilityTrafficAwareOrdered()
Traffic Aware utility in ordered policy.double
utilityTrafficAwareUnordered()
Implement the total communication cost in unordered PAL Traffic Aware.
-
Field Details
-
Constructor Details
-
PAL
Default constructor- Parameters:
dataCenter
- - data center
-
-
Method Details
-
costInOrdered
public double costInOrdered()Implement Ordered PAL Algorithm 1 in paper.
- Returns:
- the total communication cost in PAL of a data center.
-
ascendingOrderedOfCommunicationFre
public int[] ascendingOrderedOfCommunicationFre() -
ultilityTrafficAwareOrdered
public double ultilityTrafficAwareOrdered()Traffic Aware utility in ordered policy.
This will place VM pairs (in ascending order of their communication frequency) to a physical machine that are closest to the ingress(first Middle Box).
- Returns:
- total communication cost in traffic aware ordered policy of a data center.
-
PALUnordered
public double PALUnordered()Implement the algorithm 3 in the paper.
- Returns:
- total communication cost in unordered PAL algorithm in data center.
-
utilityTrafficAwareUnordered
public double utilityTrafficAwareUnordered()Implement the total communication cost in unordered PAL Traffic Aware.
- Returns:
- total communication cost in unordered PAL Traffic Aware.
-