Package org.cloudbus.cloudsim.core
Class CloudInformationService
java.lang.Object
org.cloudbus.cloudsim.core.CloudSimEntity
org.cloudbus.cloudsim.core.CloudInformationService
- All Implemented Interfaces:
Cloneable
,Comparable<SimEntity>
,Runnable
,Identifiable
,Nameable
,SimEntity
A Cloud Information Service (CIS) is an entity that provides cloud resource
registration, indexing and discovery services. The Cloud datacenters tell their
readiness to process Cloudlets by registering themselves with this entity.
Other entities such as the broker can contact this class for
resource discovery service, which returns a list of registered resource.
In summary, it acts like a yellow page service. An instance of this class is automatically created by CloudSim upon initialisation of the simulation.
- Since:
- CloudSim Toolkit 1.0
- Author:
- Manzur Murshed, Rajkumar Buyya
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cloudbus.cloudsim.core.SimEntity
SimEntity.State
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the list of all registered Datacenters.void
processEvent
(SimEvent evt) Processes events or services that are available for the entity.void
shutdown()
Shuts down the entity.protected void
The method has no effect at the current class.Methods inherited from class org.cloudbus.cloudsim.core.CloudSimEntity
cancelEvent, clone, compareTo, equals, getId, getName, getNextEvent, getNextEvent, getShutdownTime, getSimulation, getStartTime, getState, hashCode, isAlive, isFinished, isStarted, pause, run, run, schedule, schedule, schedule, schedule, schedule, schedule, scheduleFirst, scheduleFirst, scheduleFirstNow, scheduleFirstNow, scheduleNow, scheduleNow, selectEvent, send, send, sendNow, sendNow, setEventBuffer, setId, setName, setSimulation, setState, start, waitForEvent
-
Method Details
-
startInternal
protected void startInternal()The method has no effect at the current class.- Specified by:
startInternal
in classCloudSimEntity
-
processEvent
Description copied from interface:SimEntity
Processes events or services that are available for the entity. This method is invoked by theCloudSim
class whenever there is an event in the deferred queue, which needs to be processed by the entity.- Parameters:
evt
- information about the event just happened
-
shutdown
public void shutdown()Description copied from interface:SimEntity
Shuts down the entity. This method is invoked by theCloudSim
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.- Specified by:
shutdown
in interfaceSimEntity
- Overrides:
shutdown
in classCloudSimEntity
-
getDatacenterList
Gets the list of all registered Datacenters.- Returns:
-