GreenCloud Simulator
|
#include <dchost.h>
Public Member Functions | |
DcHost () | |
virtual | ~DcHost () |
virtual void | print () |
virtual void | printTasklist () |
virtual int | command (int argc, const char *const *argv) |
virtual void | updateEnergyAndConsumption () |
Public Member Functions inherited from ResourceProvider | |
ResourceProvider () | |
virtual | ~ResourceProvider () |
void | setTskComSink (TskComSink *tcs) |
int | tryToAllocate (ResourceConsumer *rc) |
bool | releaseAllocation (ResourceConsumer *rc) |
bool | addVM (VM *newVm) |
bool | removeVM (VM *vm) |
ResourceProvider * | getHost () |
DcHost * | getRootHost () |
void | recv (ResourceConsumer *rcobj) |
double | getResTypeUtil (res_type type) |
double | getTotalCap (res_type type) |
int | testSchedulingPossibility (CloudTask *tskobj) |
int | trySchedulingTsk (CloudTask *tskobj) |
void | sendTaskOutput (CloudTask *task) |
void | scheduleNextExent (double nextDeadline) |
TskComAgent * | getTskComAgent () |
Public Attributes | |
DcRack * | rack_ |
PowerModel * | powerModel |
double | eConsumed_ |
double | eNominalrate_ |
double | eCurrentConsumption_ |
int | eDNS_enabled_ |
Public Attributes inherited from ResourceProvider | |
std::vector< std::vector< DcResource * > > | resource_list |
int | id_ |
int | ntasks_ |
double | currentLoad_ |
double | currentLoadMem_ |
double | currentLoadStor_ |
double | currentLoadNet_ |
int | eDVFS_enabled_ |
int | tskFailed_ |
TskComAgent * | tskComAgent |
Protected Member Functions | |
void | setCurrentConsumption () |
void | eUpdate () |
virtual void | addResource (DcResource *res) |
void | setPowerModel (PowerModel *pModel) |
Protected Member Functions inherited from ResourceProvider | |
virtual void | handle (Event *event) |
void | updateEvent () |
void | nextEvent (double delay) |
double | getCurrentLoad () |
double | updateResTypeUtil (res_type type) |
double | getFreeCap (res_type type) |
double | getFreeCapRecursive (res_type type) |
double | getUsedNet (bool in, bool out) |
double | getUsedNetRecursive (bool in, bool out) |
void | setTskComAgent (TskComAgent *agnt) |
void | setAgent (ProviderOutAgent *agent) |
TcpAgent * | getAgent () |
void | attachSink (VmMigrationSink *vm_mig_sink) |
void | attachSource (ProviderOutAgent *tcp_agent) |
void | detachSink (VmMigrationSink *vm_mig_sink) |
void | detachSource (ProviderOutAgent *tcp_agent) |
Protected Attributes | |
double | eLastUpdateTime_ |
Protected Attributes inherited from ResourceProvider | |
double | resource_utilization [LastResType+1] |
std::vector< ResourceConsumer * > | hosted_vms_ |
std::vector< VmMigrationSink * > | vm_migration_sinks_ |
std::vector< ProviderOutAgent * > | vm_migration_sources_ |
TskComSink * | tskComSink_ |
ProviderOutAgent * | poagent_ |
ResourceProvider * | host |
bool | started_ |
int | status_ |
Event | event_ |
Additional Inherited Members | |
Public Types inherited from ResourceProvider | |
enum | EventStatus |
Static Public Attributes inherited from ResourceProvider | |
static double | uplink_overhead =ResourceProvider::MTU/ResourceProvider::useful_bytes |
static double | MTU =1500.0 |
static double | useful_bytes =1460.0 |
DcHost::DcHost | ( | ) |
Definition at line 16 of file dchost.cc.
|
virtual |
|
protectedvirtual |
Reimplemented from ResourceProvider.
Definition at line 130 of file dchost.cc.
|
virtual |
Reimplemented from ResourceProvider.
Definition at line 44 of file dchost.cc.
|
virtual |
Implements ResourceProvider.
Definition at line 79 of file dchost.cc.
|
virtual |
|
protected |
Definition at line 102 of file dchost.cc.
|
protected |
|
virtual |
double DcHost::eCurrentConsumption_ |
int DcHost::eDNS_enabled_ |
double DcHost::eNominalrate_ |
PowerModel* DcHost::powerModel |