Research breakthrough possible @S-Logix pro@slogix.in

Office Address

  • 2nd Floor, #7a, High School Road, Secretariat Colony Ambattur, Chennai-600053 (Landmark: SRM School) Tamil Nadu, India
  • 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;
}
}