public static class CloudSimExample8.GlobalBroker extends SimEntity
| Constructor and Description |
|---|
CloudSimExample8.GlobalBroker(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
DatacenterBroker |
getBroker() |
java.util.List<Cloudlet> |
getCloudletList() |
java.util.List<Vm> |
getVmList() |
void |
processEvent(SimEvent ev)
This method is invoked by the
Simulation class whenever there is an event in the
deferred queue, which needs to be processed by the entity. |
protected void |
setBroker(DatacenterBroker broker) |
protected void |
setCloudletList(java.util.List<Cloudlet> cloudletList) |
protected void |
setVmList(java.util.List<Vm> vmList) |
void |
shutdownEntity()
This method is invoked by the
Simulation before the simulation finishes. |
void |
startEntity()
This method is invoked by the
Simulation class when the simulation is started. |
cancelEvent, clone, getEventBuffer, getId, getName, getNextEvent, getNextEvent, getState, numEventsWaiting, numEventsWaiting, pause, run, schedule, schedule, schedule, schedule, scheduleFirst, scheduleFirst, scheduleFirst, scheduleFirst, scheduleFirstNow, scheduleFirstNow, scheduleFirstNow, scheduleFirstNow, scheduleNow, scheduleNow, scheduleNow, scheduleNow, selectEvent, send, send, send, send, sendNow, sendNow, sendNow, sendNow, setEventBuffer, setId, setState, waitForEventpublic CloudSimExample8.GlobalBroker(java.lang.String name)
public void processEvent(SimEvent ev)
SimEntitySimulation class whenever there is an event in the
deferred queue, which needs to be processed by the entity.processEvent in class SimEntityev - the event to be processed by the entitypublic void startEntity()
SimEntitySimulation class when the simulation is started. This
method should be responsible for starting the entity up.startEntity in class SimEntitypublic void shutdownEntity()
SimEntitySimulation before the simulation finishes. If you want
to save data in log files this is the method in which the corresponding code would be placed.shutdownEntity in class SimEntitypublic java.util.List<Vm> getVmList()
protected void setVmList(java.util.List<Vm> vmList)
public java.util.List<Cloudlet> getCloudletList()
protected void setCloudletList(java.util.List<Cloudlet> cloudletList)
public DatacenterBroker getBroker()
protected void setBroker(DatacenterBroker broker)