|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThread
eduni.simjava.Sim_entity
gridsim.GridSim
gridbroker.Broker
Broker class simulates the Grid resource broker. On receiving an experiment from the user entity, it carries out resource discovery, and determines deadline and budget values based on D- and B-factor, and then proceeds with scheduling.
Broker class schedules Gridlets on resources depending on user constraints, optimization strategy, and cost of resources and their availability. When it receives the results of application processing, it records parameters of interest with the gridsim.Statistics entity. When it has no more processing requirements, it sends the END_OF_SIMULATION event to the gridsim.GridSimShutdown entity.
Field Summary |
Fields inherited from class gridsim.GridSim |
input, output, rand, SimulationStartDate |
Fields inherited from class eduni.simjava.Sim_entity |
|
Fields inherited from class Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Broker(String name,
double baudRate)
Allocates a new Broker class |
Method Summary | |
void |
aggregatedScheduleReport(Experiment expt,
LinkedList BRList)
Writes a summary of the schedule report mentioning the total results of the experiment. |
void |
AggregatedScheduleReport(Experiment expt,
LinkedList BRList)
Deprecated. As of GridBroker 2.1, replaced by aggregatedScheduleReport(Experiment, LinkedList) |
void |
body()
Processes one event at one time. |
void |
scheduleReport(Experiment expt,
LinkedList BRList,
boolean reportHeaderFlag)
Invokes a schedule report for every scheduling event. |
void |
ScheduleReport(Experiment expt,
LinkedList BRList,
boolean reportHeaderFlag)
Deprecated. As of GridBroker 2.1, replaced by scheduleReport(Experiment, LinkedList, boolean) |
void |
writeAggregateScheduleReport(String reportTitle,
String reportFileFullname,
int parameter,
Experiment expt,
LinkedList BRList,
boolean reportHeaderFlag)
Writes a schedule report |
void |
WriteAggregateScheduleReport(String reportTitle,
String reportFileFullname,
int parameter,
Experiment expt,
LinkedList BRList,
boolean reportHeaderFlag)
Deprecated. As of GridBroker 2.1, replaced by writeAggregateScheduleReport(String, String, int,
Experiment, LinkedList, boolean) |
void |
writeScheduleReport(String reportTitle,
String reportFileFullname,
int parameter,
Experiment expt,
LinkedList BRList,
boolean reportHeaderFlag)
Writes a schedule report |
void |
WriteScheduleReport(String reportTitle,
String reportFileFullname,
int parameter,
Experiment expt,
LinkedList BRList,
boolean reportHeaderFlag)
Deprecated. As of GridBroker 2.1, replaced by writeScheduleReport(String, String, int, Experiment,
LinkedList, boolean) |
Methods inherited from class eduni.simjava.Sim_entity |
add_generator, add_param, add_port, clone, get_id, get_name, get_port, get_port, get_stat, run, send_on, set_invisible, set_stat, sim_cancel, sim_completed, sim_current, sim_get_next, sim_get_next, sim_hold_for, sim_hold, sim_pause_for, sim_pause_for, sim_pause_until, sim_pause_until, sim_pause, sim_process_for, sim_process_for, sim_process_until, sim_process_until, sim_process, sim_putback, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_select, sim_trace, sim_wait_for, sim_wait_for, sim_wait_for, sim_wait, sim_waiting, sim_waiting |
Methods inherited from class Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Broker(String name, double baudRate) throws Exception
name
- the entity namebaudRate
- the communication speed
Exception
- This happens when creating this entity before
initializing GridSim package or this entity name is
null or emptyGridSim.init(int, Calendar, boolean, String[], String[],
String)
Method Detail |
public void ScheduleReport(Experiment expt, LinkedList BRList, boolean reportHeaderFlag)
scheduleReport(Experiment, LinkedList, boolean)
In addition, creates report files with ".sched1", ".sched2", ".sched3" and ".sched31" extension.
expt
- an Experiment objectBRList
- a linked-list of broker resourcereportHeaderFlag
- a report header flagpublic void scheduleReport(Experiment expt, LinkedList BRList, boolean reportHeaderFlag)
In addition, creates report files with ".sched1", ".sched2", ".sched3" and ".sched31" extension.
expt
- an Experiment objectBRList
- a linked-list of broker resourcereportHeaderFlag
- a report header flagpublic void WriteScheduleReport(String reportTitle, String reportFileFullname, int parameter, Experiment expt, LinkedList BRList, boolean reportHeaderFlag)
writeScheduleReport(String, String, int, Experiment,
LinkedList, boolean)
reportTitle
- the title of a reportreportFileFullname
- the name of a reportparameter
- a resource paramterexpt
- an object of ExperimentBRList
- a linked-list of broker resourcereportHeaderFlag
- a report header flagExperiment
public void writeScheduleReport(String reportTitle, String reportFileFullname, int parameter, Experiment expt, LinkedList BRList, boolean reportHeaderFlag)
reportTitle
- the title of a reportreportFileFullname
- the name of a reportparameter
- a resource paramterexpt
- an object of ExperimentBRList
- a linked-list of broker resourcereportHeaderFlag
- a report header flagExperiment
public void AggregatedScheduleReport(Experiment expt, LinkedList BRList)
aggregatedScheduleReport(Experiment, LinkedList)
In addition, creates report files with ".sched4", ".sched5", and ".sched6" extension.
expt
- an Experiment objectBRList
- a linked-list of BrokerResource objectspublic void aggregatedScheduleReport(Experiment expt, LinkedList BRList)
In addition, creates report files with ".sched4", ".sched5", and ".sched6" extension.
expt
- an Experiment objectBRList
- a linked-list of BrokerResource objectspublic void WriteAggregateScheduleReport(String reportTitle, String reportFileFullname, int parameter, Experiment expt, LinkedList BRList, boolean reportHeaderFlag)
writeAggregateScheduleReport(String, String, int,
Experiment, LinkedList, boolean)
reportTitle
- the report titlereportFileFullname
- the file nameparameter
- the parameter of a broker resourceexpt
- an Experiment objectBRList
- a linked-list of BrokerResource objectsreportHeaderFlag
- a flag to denote writing header titles orpublic void writeAggregateScheduleReport(String reportTitle, String reportFileFullname, int parameter, Experiment expt, LinkedList BRList, boolean reportHeaderFlag)
reportTitle
- the report titlereportFileFullname
- the file nameparameter
- the parameter of a broker resourceexpt
- an Experiment objectBRList
- a linked-list of BrokerResource objectsreportHeaderFlag
- a flag to denote writing header titles orpublic void body()
body
in class Sim_entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |