|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Thread Sim_entity GridStatistics
public class GridStatistics
Records statistical data reported by other entities.
It stores data objects along with its arrival time and the ID of the machine and the PE (Processing Element) allocated to it. It acts as a placeholder for maintaining the amount of resource share allocated at various times for simulating time-shared scheduling using internal events.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
GridStatistics(String name)
Allocates a new GridStatistics object |
|
GridStatistics(String name,
String fileName,
boolean append,
String[] excludeFromFile,
String[] excludeFromProcessing)
Allocates a new GridStatistics object with a set of parameters |
Method Summary | |
---|---|
Accumulator |
accumulate(String category)
Accumulates objects based on a given category |
Accumulator |
accumulate(String category,
String counter)
Accumulates objects based on a given category |
void |
body()
A method that gets one process event at one time until the end of a simulation, then records its statistics. |
void |
recordStat(Stat stat)
Records the given statistics into a file |
void |
returnAccStatByCategory(Sim_event ev)
Sends an Accumulator object based on category into an event scheduler. |
Methods inherited from class Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GridStatistics(String name) throws Exception
name
- the entity name
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)
public GridStatistics(String name, String fileName, boolean append, String[] excludeFromFile, String[] excludeFromProcessing) throws Exception
name
- the entity namefileName
- the file name to be written intoappend
- if it is true, then bytes will be written to the end
of the file rather than the beginningexcludeFromFile
- List of names to be excluded from
statisticsexcludeFromProcessing
- List of names to be excluded from
writing into a file
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 Accumulator accumulate(String category)
category
- user-defined name for data type
Accumulator
public Accumulator accumulate(String category, String counter)
category
- user-defined name for data typecounter
- user-defined name for data type
Accumulator
public void body()
The services available to other GridSim entities are:
body
in class Sim_entity
public void recordStat(Stat stat)
stat
- a Stat objectStat
public void returnAccStatByCategory(Sim_event ev)
ev
- an object of Sim_eventSim_event
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |