欢迎来到天天文库
浏览记录
ID:9292370
大小:48.69 KB
页数:73页
时间:2018-04-26
《虚拟机自适应管理系统源码》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、packageorg.cloudframe.bean;publicclassCloudFrameTages{//全局静态常量,部署策略publicstaticfinalintPOLICY_RR=0;publicstaticfinalintPOLICY_PEBMAWP=1;publicstaticfinalintPOLICY_BFDSUM=2;publicstaticfinalintPOLICY_DEFAULT=3;publicfinalstaticintALLOCAL_SUCCESS=10;publicfinalstati
2、cintALLOCAL_FAILED=11;publicfinalstaticintNEED_MORE_PM=12;publicfinalstaticintNO_MORE_PM=13;publicfinalstaticintTURN_ON_PM_SUCCESS=14;}packageorg.cloudframe.bean;publicclassDatacenterInfo{privateintdatacenterId;privateStringname;privateStringarchitecture;privateSt
3、ringoperatingSystem;privateStringvmm;privatedoubletime_zone;privatedoublecost;privatedoublecostPerMen;privatedoublecostPerStorage;privatedoublecostPerBw;privatedoubleschedulingInterval;publicStringgetArchitecture(){returnarchitecture;}publicvoidsetArchitecture(Str
4、ingarchitecture){this.architecture=architecture;}publicStringgetOperatingSystem(){returnoperatingSystem;}publicvoidsetOperatingSystem(StringoperatingSystem){this.operatingSystem=operatingSystem;}publicStringgetVmm(){returnvmm;}publicvoidsetVmm(Stringvmm){this.vmm=
5、vmm;}publicdoublegetTime_zone(){returntime_zone;}publicvoidsetTime_zone(doubletime_zone){this.time_zone=time_zone;}publicdoublegetCost(){returncost;}publicvoidsetCost(doublecost){this.cost=cost;}publicdoublegetCostPerMen(){returncostPerMen;}publicvoidsetCostPerMen
6、(doublecostPerMen){this.costPerMen=costPerMen;}publicdoublegetCostPerStorage(){returncostPerStorage;}publicvoidsetCostPerStorage(doublecostPerSotrage){this.costPerStorage=costPerSotrage;}publicdoublegetCostPerBw(){returncostPerBw;}publicvoidsetCostPerBw(doublecost
7、PerBw){this.costPerBw=costPerBw;}publicintgetDatacenterId(){returndatacenterId;}publicvoidsetDatacenterId(intdatacenterId){this.datacenterId=datacenterId;}publicStringgetName(){returnname;}publicvoidsetName(Stringname){this.name=name;}publicdoublegetSchedulingInte
8、rval(){returnschedulingInterval;}publicvoidsetSchedulingInterval(doubleschedulingInterval){this.schedulingInterval=schedulingInterval;}}packageorg.cloud
此文档下载收益归作者所有