public class ServersManager
extends java.lang.Object
Constructor and Description |
---|
ServersManager(Power pow,
int iNoServers,
int iNoPhysicalCPUs,
int iNoVirtualCPUs) |
Modifier and Type | Method and Description |
---|---|
protected void |
executApplication(App ap)
Executing [app] by chosen cloud that has a valid reservation
|
void |
executTask(Task t)
This is invoked by chosen cloud (or executer cloud)
|
Resource |
getAvaliableResourceForTask(Task t) |
Cloud |
getCloud() |
double |
getConsumedEnergy() |
ServersManagerEntity |
getEntity() |
LocalScheduling |
getLocalScheduling() |
java.lang.String |
getServerManagerId() |
int |
getTotalVCPUs() |
Resource |
makeAppReservation(App app)
***************************************************************************************
Making reservation returns a Resource object that estimates needed energy
and occupied capacity rate with token details.
|
protected void |
refreshExecutionList() |
protected void |
releaseReservation(App ap)
Releasing reservation
|
void |
setCloud(Cloud setCloud) |
void |
setSerManagerId(java.lang.String SerManagerId) |
void |
setSManagerEntity(ServersManagerEntity smEtity)
general getters and setters
|
protected void |
taskCompleted(SimExecution simExE) |
protected void |
taskProcessing(SimExecution simExE)
*****************************************************************************************
Methods used to control the main list of SimExcuations and updating their task's status
- taskProcessing(..)
- taskCompleted (..)
- taskViolated (..)
- refreshExecutionList (..)
- forceFreeingOccupiedCPUs (..)
|
protected void |
taskViolated(SimExecution simExE) |
protected void |
updatedAssignedReceivedTasks(Task t,
boolean isInsertion) |
public ServersManager(Power pow, int iNoServers, int iNoPhysicalCPUs, int iNoVirtualCPUs)
public void setSManagerEntity(ServersManagerEntity smEtity)
public void setCloud(Cloud setCloud)
public Cloud getCloud()
public LocalScheduling getLocalScheduling()
public java.lang.String getServerManagerId()
public void setSerManagerId(java.lang.String SerManagerId)
public ServersManagerEntity getEntity()
public double getConsumedEnergy()
public int getTotalVCPUs()
public void executTask(Task t)
protected void updatedAssignedReceivedTasks(Task t, boolean isInsertion)
public Resource makeAppReservation(App app)
protected void releaseReservation(App ap)
protected void executApplication(App ap)
protected void taskProcessing(SimExecution simExE)
protected void taskCompleted(SimExecution simExE)
protected void taskViolated(SimExecution simExE)
protected void refreshExecutionList()