|
GridSim v4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThread
eduni.simjava.Sim_entity
gridsim.GridSimCore
gridsim.datagrid.index.AbstractRC
gridsim.datagrid.index.TopRegionalRC
This class acts as a centralized RC or a root RC in a hierarchical model.
It is responsible for generating a unique ID for each file name.
Hence, the full name of the file will be "filename+uniqueID"
when you use DataGridUser.getFullFilename(String)
RegionalRC
Field Summary | |
static String |
DEFAULT_NAME
Default name for this RC entity, which is "GridSim_TopRC". |
Fields inherited from class gridsim.datagrid.index.AbstractRC |
localRC_, resourceID_ |
Fields inherited from class gridsim.GridSimCore |
input, output |
Fields inherited from class eduni.simjava.Sim_entity |
|
Fields inherited from class Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
TopRegionalRC(Link link)
Creates a new Replica Catalogue (RC) entity with a default name. |
|
TopRegionalRC(String name,
Link link)
Creates a new Replica Catalogue (RC) entity. |
Method Summary | |
protected void |
processEndSimulation()
Performs last activities before the end of a simulation -- THIS METHOD IS EMPTY |
protected boolean |
processOtherEvent(Sim_event ev)
Processes an incoming request that uses a user-defined tag. |
boolean |
registerOriginalFile(FileAttribute fAttr,
int sourceID)
Register a file which is already stored in a resource before the start of simulation. |
protected void |
registerOtherEntity()
Registers other information to a GIS entity -- THIS METHOD IS EMPTY |
Methods inherited from class gridsim.datagrid.index.AbstractRC |
body, processEvent, setRegionalGIS |
Methods inherited from class gridsim.GridSimCore |
finalize, finalizeGridSimulation, getLink, getPingResult, isNetworked, IsNetworked, ping, ping, ping, ping, pingBlockingCall, pingBlockingCall, pingBlockingCall, pingBlockingCall, send, Send, send, Send, send, Send, send, Send, send, Send, send, Send, setBackgroundTraffic, setBackgroundTraffic, TerminateInputOutputEntities, terminateIOEntities |
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 |
Field Detail |
public static final String DEFAULT_NAME
DataGridUser
or
DataGridResource
entity about the RC id.
Constructor Detail |
public TopRegionalRC(String name, Link link) throws Exception
name
- this entity namelink
- the link that this GridSim entity will use to
communicate with other GridSim or Network entities.
Exception
- This happens when one of the input parameters is
invalid.public TopRegionalRC(Link link) throws Exception
link
- the link that this GridSim entity will use to
communicate with other GridSim or Network entities.
Exception
- This happens when the network link is nullMethod Detail |
protected boolean processOtherEvent(Sim_event ev)
processOtherEvent
in class AbstractRC
ev
- a Sim_event object (or an incoming event or request)
protected void registerOtherEntity()
registerOtherEntity
in class AbstractRC
protected void processEndSimulation()
processEndSimulation
in class AbstractRC
public boolean registerOriginalFile(FileAttribute fAttr, int sourceID)
registerOriginalFile
in class AbstractRC
fAttr
- a FileAttribute objectsourceID
- the entity ID that stores this file
|
GridSim v4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |