Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to offload applications in EdgeCloudSim?

Description

The “EdgeOrchestrator.java”abstract file should be extended and getDeviceToOffload(), getVmToOffload abstract methods have to implement for offloading the taks from where you want.

Sample Code

public class newEdgeOrchestrator extends EdgeOrchestrator
{
protected String policy;
protected String simScenario;

public newEdgeOrchestrator(String policy, String simScenario)
{
super(policy, simScenario);
}

public void initialize()
{
.
. initialize edge orchestrator
.
}

public int getDeviceToOffload(Task task)
{
. code to decide where to offload
.
return result;
}

public Vm getVmToOffload(Task task, int deviceId)
{
.
. code to return proper VM from the edge orchestrator point of view
.
return selectedVm;
}
}