|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Thread Sim_entity GridSimCore GridSimShutdown
public class GridSimShutdown
GridSimShutdown waits for termination of all GridSim user entities to determine the end of simulation.
This class will be created by GridSim upon initialization of the simulation, i.e. done via GridSim.init() method. Hence, do not need to worry about creating an object of this class.
This class signals the user-defined report-writer entity to interact with the GridStatistics entity to generate a report. Finally, it signals the end of simulation to GridInformationService (GIS) entity.
GridSim.init(int, Calendar, boolean)
,
GridSim.init(int, Calendar, boolean, String[], String[], String)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class GridSimCore |
---|
input, NETWORK_TYPE, output |
Fields inherited from class Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
GridSimShutdown(String name,
int numUser)
Allocates a new GridSimShutdown object. |
|
GridSimShutdown(String name,
int numUser,
String reportWriterName)
Allocates a new GridSimShutdown object. |
Method Summary | |
---|---|
void |
body()
The main method that shuts down resources and Grid Information Service (GIS). |
Methods inherited from class GridSimCore |
---|
finalizeGridSimulation, getLink, getPingResult, isNetworked, ping, ping, ping, ping, pingBlockingCall, pingBlockingCall, pingBlockingCall, pingBlockingCall, send, send, send, send, send, send, setBackgroundTraffic, setBackgroundTraffic, terminateIOEntities |
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 GridSimShutdown(String name, int numUser, String reportWriterName) throws Exception
The total number of grid user entity plays an important role to determine whether all resources should be shut down or not. If one or more users are still not finish, then the resources will not be shut down. Therefore, it is important to give a correct number of total grid user entity. Otherwise, GridSim program will hang or encounter a weird behaviour.
name
- the name to be associated with this entity (as
required by Sim_entity class from simjava package)numUser
- total number of grid user entityreportWriterName
- a ReportWriter entity name. This entity
can be found inside a gridbroker package.
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)
,
GridSim.init(int, Calendar, boolean)
,
Sim_entity
public GridSimShutdown(String name, int numUser) throws Exception
The total number of grid user entity plays an important role to determine whether all resources should be shut down or not. If one or more users are still not finish, then the resources will not be shut down. Therefore, it is important to give a correct number of total grid user entity. Otherwise, GridSim program will hang or encounter a weird behaviour.
name
- the name to be associated with this entity (as
required by Sim_entity class from simjava package)numUser
- total number of grid user entity
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)
,
GridSim.init(int, Calendar, boolean)
,
Sim_entity
Method Detail |
---|
public void body()
body
in class Sim_entity
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |