Enum Class CloudSimTag
- All Implemented Interfaces:
Serializable
,Comparable<CloudSimTag>
,Constable
- Since:
- CloudSim Toolkit 1.0
- Author:
- Manzur Murshed, Rajkumar Buyya, Anthony Sulistio, Manoel Campos da Silva Filho
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCancels a Cloudlet submitted in the Datacenter entity.Request a Cloudlet to be set as failed.Requests an indefinite-length Cloudlet (negative value) to be finished by setting its length as the current number of processed MI.Requests a Cloudlet to be cancelled.Pauses a Cloudlet submitted in the Datacenter entity.Pauses a Cloudlet submitted in the Datacenter entity with an acknowledgement.Request a Cloudlet to be set as ready to start executing inside a VM.Resumes a Cloudlet submitted in the Datacenter entity.Resumes a Cloudlet submitted in the Datacenter entity with an acknowledgement.Denotes the return of a finished Cloudlet back to the sender.Denotes the submission of a Cloudlet.Denotes the submission of a Cloudlet with an acknowledgement.Request a Cloudlet to have its attributes changed.Denotes a request from a broker to aCloudInformationService
to get the list of all Datacenters, including the ones that can support advanced reservation.Denotes a request from a Datacenter to register itself.Tag used for requesting an entity to shut down.Denotes failure events such as hosts or VMs failures.Denotes a request to a Datacenter to add a Host or list of Hosts to a Datacenter.Denotes a request to generate a host failure.Denotes a tag for shutting down aHost
inside aDatacenter
.Denotes a tag for starting up aHost
inside aDatacenter
.Denotes a request to a Datacenter to remove a Host or list of Hosts from a Datacenter.This tag is used to return the ping request back to sender.This tag is used by an entity to send ping requests.Denotes the transmission of packets down through the network topology.Denotes the transmission of packets targeting a given Host.Denotes the transmission of packets up through the network topology.An unclassified tag.Denotes a power measurement performed periodically by aPowerMeter
on entities having aPowerModel
, such asDatacenter
s andHost
s.Denotes a request to register aCloudInformationService
entity as a regional CIS.Denotes a request to get a list of other regional CIS entities from the system CIS entity.Denotes the end of simulation.Denotes a request to create a new VM in aDatacenter
where theSimEvent.getData()
of the reply event is aVm
object.Denotes a request to retry creating waiting VMs from aDatacenterBroker
.Denotes a request to destroy a VM in aDatacenter
.Denotes a request to destroy a new VM in aDatacenter
with acknowledgement information sent by the Datacenter.Denotes a request to finish the migration of a new VM in aDatacenter
.Denotes a request to finish the migration of a new VM in aDatacenter
with acknowledgement information sent by the Datacenter.Denotes an internal event generated in aDatacenter
to notify itself to update the processing of cloudlets.Denotes a request vertical scaling of VM resources such as Ram, Bandwidth or Pe. -
Method Summary
Modifier and TypeMethodDescriptionboolean
between
(CloudSimTag startInclusive, CloudSimTag endInclusive) Checks if this tag is between a given range of tags, according to theirEnum.ordinal()
values.int
priority()
Gets the event tag priority.static CloudSimTag
Returns the enum constant of this class with the specified name.static CloudSimTag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface java.lang.Comparable
compareTo
-
Enum Constant Details
-
NONE
An unclassified tag. -
ENTITY_SHUTDOWN
Tag used for requesting an entity to shut down. That ensures a graceful shutdown, after other entity events are processed. -
SIMULATION_END
Denotes the end of simulation. -
DC_REGISTRATION_REQUEST
Denotes a request from a Datacenter to register itself. This tag is normally used betweenCloudInformationService
and Datacenter entities. When such aSimEvent
is sent, theSimEvent.getData()
must be aDatacenter
object. -
DC_LIST_REQUEST
Denotes a request from a broker to aCloudInformationService
to get the list of all Datacenters, including the ones that can support advanced reservation. -
REGISTER_REGIONAL_CIS
Denotes a request to register aCloudInformationService
entity as a regional CIS. When such aSimEvent
is sent, theSimEvent.getData()
must be aCloudInformationService
object. -
REQUEST_REGIONAL_CIS
Denotes a request to get a list of other regional CIS entities from the system CIS entity. -
ICMP_PKT_SUBMIT
This tag is used by an entity to send ping requests. -
ICMP_PKT_RETURN
This tag is used to return the ping request back to sender. -
CLOUDLET_RETURN
Denotes the return of a finished Cloudlet back to the sender. This tag is normally used by Datacenter entity. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_SUBMIT
Denotes the submission of a Cloudlet. This tag is normally used between a DatacenterBroker and Datacenter entity. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_SUBMIT_ACK
Denotes the submission of a Cloudlet with an acknowledgement. This tag is normally used between DatacenterBroker and Datacenter entity. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_CANCEL
Cancels a Cloudlet submitted in the Datacenter entity. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_PAUSE
Pauses a Cloudlet submitted in the Datacenter entity. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_PAUSE_ACK
Pauses a Cloudlet submitted in the Datacenter entity with an acknowledgement. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_RESUME
Resumes a Cloudlet submitted in the Datacenter entity. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_RESUME_ACK
Resumes a Cloudlet submitted in the Datacenter entity with an acknowledgement. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_READY
Request a Cloudlet to be set as ready to start executing inside a VM. This event is sent by a DatacenterBroker to itself to define the time when a specific Cloudlet should start executing. This tag is commonly used when Cloudlets are created from a trace file such as aGoogle Cluster Trace
.When the status of a Cloudlet is set to
When an event of this type is sent, theCloudlet.Status.READY
, the Cloudlet can be selected to start running as soon as possible by aCloudletScheduler
.SimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_FAIL
Request a Cloudlet to be set as failed. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_FINISH
Requests an indefinite-length Cloudlet (negative value) to be finished by setting its length as the current number of processed MI. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object.Events with a negative tag have higher priority. In this case, if a message with this tag is sent, it means that the Cloudlet has to be finished by replacing its negative length with an actual positive value. Only after that, the processing of Cloudlets can be updated. That is way this event must be processed before other events.
-
CLOUDLET_KILL
Requests a Cloudlet to be cancelled. The Cloudlet can be cancelled under user request or because another Cloudlet on which this one was dependent died. When an event of this type is sent, theSimEvent.getData()
must be aCloudlet
object. -
CLOUDLET_UPDATE_ATTRIBUTES
Request a Cloudlet to have its attributes changed. When an event of this type is sent, theSimEvent.getData()
must be aRunnable
that represents a no-argument and no-return function that will perform the Cloudlet attribute update. The Runnable most encapsulate everything needed to update the Cloudlet's attributes, including the Cloudlet which will be updated.Since the logic to update the attributes of a Cloudlet can be totally customized according to the researcher needs, there is no standard way to perform such an operation. As an example, you may want to reduce by half the number of PEs required by a Cloudlet from a list at a given time. This way, the Runnable function may be defined as a Lambda Expression as follows. Realize the
cloudletList
is considered to be accessible anywhere in the surrounding scope.Runnable runnable = () -> cloudletList.forEach(cloudlet -> cloudlet.setNumberOfPes(cloudlet.getNumberOfPes()/2));
The
runnable
variable must be set as the data for the event to be sent with this tag. -
VM_CREATE_RETRY
Denotes a request to retry creating waiting VMs from aDatacenterBroker
. -
VM_CREATE_ACK
Denotes a request to create a new VM in aDatacenter
where theSimEvent.getData()
of the reply event is aVm
object.Using this tag, the Datacenter acknowledges the reception of the request. To check if the VM was in fact created inside the requested Datacenter one has only to call
Vm.isCreated()
. -
VM_DESTROY
Denotes a request to destroy a VM in aDatacenter
. When an event of this type is sent, theSimEvent.getData()
must be aVm
object. -
VM_DESTROY_ACK
Denotes a request to destroy a new VM in aDatacenter
with acknowledgement information sent by the Datacenter. When an event of this type is sent, theSimEvent.getData()
must be aVm
object. -
VM_MIGRATE
Denotes a request to finish the migration of a new VM in aDatacenter
. When an event of this type is sent, theSimEvent.getData()
must be aMap.Entry<Vm, Host>
representing to whichHost
a VM must be migrated.If
Host.NULL
is given, the Datacenter will try to find a suitable Host when the migration request message is processed. -
VM_MIGRATE_ACK
Denotes a request to finish the migration of a new VM in aDatacenter
with acknowledgement information sent by the Datacenter.- See Also:
-
VM_UPDATE_CLOUDLET_PROCESSING
Denotes an internal event generated in aDatacenter
to notify itself to update the processing of cloudlets.When an event of this type is sent, the
SimEvent.getData()
can be aHost
object to indicate that just the Cloudlets running in VMs inside such a Host must be updated. The Host is an optional parameter which if omitted, means that all Hosts from the Datacenter will have its cloudlets updated. -
VM_VERTICAL_SCALING
Denotes a request vertical scaling of VM resources such as Ram, Bandwidth or Pe. When an event of this type is sent, theSimEvent.getData()
must be aVerticalVmScaling
object. -
NETWORK_EVENT_UP
Denotes the transmission of packets up through the network topology. -
NETWORK_EVENT_SEND
-
NETWORK_EVENT_DOWN
Denotes the transmission of packets down through the network topology. -
NETWORK_EVENT_HOST
Denotes the transmission of packets targeting a given Host. TheSimEvent.getData()
must be aHostPacket
to be processed. -
FAILURE
Denotes failure events such as hosts or VMs failures. -
HOST_FAILURE
Denotes a request to generate a host failure. -
HOST_ADD
Denotes a request to a Datacenter to add a Host or list of Hosts to a Datacenter. TheSimEvent.getData()
must be a Host to be added to the Datacenter where the message is being sent to. The source of such events is theCloudInformationService
. -
HOST_REMOVE
Denotes a request to a Datacenter to remove a Host or list of Hosts from a Datacenter. TheSimEvent.getData()
must be the ID of the Host that will be removed from the Datacenter they belong to.For this event, it's used the ID instead of the Host itself because the Host instance with the specified ID should be looked into the Datacenter Host list in order to remove it. A Host should be removed in case of maintenance or failure, but there isn't such a distinction yet, so a failure is simulated to remove the Host. The source of such events is the
CloudInformationService
. -
POWER_MEASUREMENT
Denotes a power measurement performed periodically by aPowerMeter
on entities having aPowerModel
, such asDatacenter
s andHost
s. -
HOST_POWER_ON
Denotes a tag for starting up aHost
inside aDatacenter
. When such aSimEvent
is sent, theSimEvent.getData()
must be aHost
object. -
HOST_POWER_OFF
Denotes a tag for shutting down aHost
inside aDatacenter
. When such aSimEvent
is sent, theSimEvent.getData()
must be aHost
object.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
priority
public int priority()Gets the event tag priority. Negative values indicates higher priority. -
between
Checks if this tag is between a given range of tags, according to theirEnum.ordinal()
values.- Parameters:
startInclusive
- the tag starting the range to checkendInclusive
- the tag finishing the range to check- Returns:
-