CloudSim源代码学习之DatacenterBroker.docVIP

  • 4
  • 0
  • 约1.92万字
  • 约 13页
  • 2016-08-23 发布于河南
  • 举报
CloudSim源代码学习之DatacenterBroker

package org.cloudbus.cloudsim; import java.util.ArrayList;//Resizable-array implementation of the List interface import java.util.HashMap;//散列表要解决的一个问题就是散列值的冲突问题,通常是两种方法:链表法和开放地址法。链表法就是将相同hash值的对象组织成一个链表放在hash值对应的槽位 (来源:/news/1012/527961.html) import java.util.LinkedList;//The class implements the Deque interface, providing first-in-first-out queue operations for add, poll, along with other stack and deque operations import java.util.List;//An ordered collection (also known as a sequence) import java.util.Map;//An object that maps keys to values import org.cloudbus.cloudsim.core.CloudSim;//This class extends the CloudSimCore to enable network simulation in CloudSim import org.cloudbus.cloudsim.core.CloudSimTags;//Contains various static command tags that indicate a type of action that needs to be undertaken by CloudSim entities when they receive or send events import org.cloudbus.cloudsim.core.SimEntity;//This class represents a simulation entity import org.cloudbus.cloudsim.core.SimEvent;//This class represents a simulation event which is passed between the entities in the simulation import org.cloudbus.cloudsim.lists.CloudletList;//CloudletList is a collection of operations on lists of Cloudlets import org.cloudbus.cloudsim.lists.VmList;//VmList is a collection of operations on lists of VMs /**DatacentreBroker类代表一经纪人行使用户角色,隐藏了虚拟机管理,如虚拟机创建,用户任务提交和虚拟机销毁 * DatacentreBroker represents a broker * acting on behalf of a user. It hides VM management, * as vm creation, sumbission of cloudlets to this VMs * and destruction of VMs. * * @author Rodrigo N. Calheiros * @author Anton Beloglazov * @since CloudSim Toolkit 1.0 */ public class DatacenterBroker extends SimEntity { // TODO: remove unnecessary variables移除不必要的变量 /** The vm list. 虚拟机列表*/ private List? extends Vm vmList; /** The vms created list. 虚拟机创建列表*/ private List? extends Vm vmsCreatedList; /** The cloudlet list.云任务列表 */ private List? extends Cloudlet cloudletList; /** The cloud

文档评论(0)

1亿VIP精品文档

相关文档