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.

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;
}
}

Leave Comment

Your email address will not be published. Required fields are marked *

clear formSubmit