|
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
An abstract class for the functionality of a Replica Catalogue (RC) entity.
The RC entity is a core component of every Data Grid system. The
function of a RC is to store the information (metadata) about files and to
provide mapping between a filename and its physical location(s).
The RC does not have to be a single entity in a Data Grid system.
It can also be composed of several distributed components, which, by
switching the information among them, provide a transparent service to
the users and resources.
Currently, GridSim allows two possible catalogue models:
TopRegionalRC
and RegionalRC
.
The TopRegionalRC
class acts as a
centralized RC or a root RC in a hierarchical model. In constrast, the
RegionalRC
class represents a local RC
and/or a leaf RC in a hierarchical model.
Therefore, creating a new RC model can be done by extending this
class and implementing the abstract methods.
Field Summary | |
protected boolean |
localRC_
A flag that denotes whether this entity is located inside a resource or not |
protected int |
resourceID_
A resource ID that hosts this RC entity (if applicable) |
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 | |
protected |
AbstractRC(String name,
int resourceID,
Sim_port outputPort)
Creates a new local Replica Catalogue (RC) entity. |
protected |
AbstractRC(String name,
Link link)
Creates a new Replica Catalogue (RC) entity. |
Method Summary | |
void |
body()
Handles incoming requests to this entity, DO NOT OVERRIDE this method. |
protected abstract void |
processEndSimulation()
Performs last activities before the end of a simulation. |
boolean |
processEvent(Sim_event ev)
Processes incoming events one by one |
protected abstract boolean |
processOtherEvent(Sim_event ev)
Processes an incoming request that uses a user-defined tag. |
abstract boolean |
registerOriginalFile(FileAttribute fAttr,
int id)
Register a file which is already stored in a resource before the start of simulation |
protected abstract void |
registerOtherEntity()
Registers other information to a GIS entity. |
boolean |
setRegionalGIS(String name)
Sets a regional GIS name for this entity to communicate with |
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 |
protected boolean localRC_
protected int resourceID_
Constructor Detail |
protected AbstractRC(String name, int resourceID, Sim_port outputPort) throws Exception
name
- this entity nameresourceID
- resource ID that hosts this RC entityoutputPort
- resource's output port
Exception
- This happens when one of the input parameters is
invalid.protected AbstractRC(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.Method Detail |
public boolean setRegionalGIS(String name)
name
- a regional GIS name
public void body()
processOtherEvent(Sim_event)
instead.
body
in class Sim_entity
protected abstract boolean processOtherEvent(Sim_event ev)
ev
- a Sim_event object (or an incoming event or request)
protected abstract void registerOtherEntity()
protected abstract void processEndSimulation()
public abstract boolean registerOriginalFile(FileAttribute fAttr, int id)
fAttr
- a file attribute objectid
- the owner ID of this file
public boolean processEvent(Sim_event ev)
ev
- a Sim_event object
|
GridSim v4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |