|
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.GridResource
gridsim.datagrid.DataGridResource
A resource for Data Grids enables users to run their jobs as well as to gain access to available data sets. A Data Grid resource has the following components:
Storage,
ReplicaManager,
AbstractRC,
AllocPolicy| Field Summary |
| Fields inherited from class gridsim.GridResource |
policy_, policyType_, regionalGISName_, resCalendar_, resource_, SIZE |
| 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 | |
DataGridResource(String name,
Link link,
ResourceCharacteristics resource,
ResourceCalendar calendar,
AllocPolicy policy,
ReplicaManager replicaManager)
Creates a new DataGrid resource object |
|
DataGridResource(String name,
Link link,
ResourceCharacteristics resource,
ResourceCalendar calendar,
ReplicaManager replicaManager)
Creates a new DataGrid resource object |
|
| Method Summary | |
int |
addFile(File file)
Adds a file into the resource's storage before the experiment starts. |
boolean |
addStorage(List storageList)
Adds one or more Storage elements into the resource. |
boolean |
addStorage(Storage storage)
Adds a Storage element |
boolean |
createLocalRC()
Creates a new local RC, meaning it is located inside this resource. |
AbstractRC |
getLocalRC()
Gets the local RC entity of this resource. |
double |
getTotalStorageCapacity()
Gets the total capacity of all Storage elements (in MByte) |
boolean |
hasLocalRC()
Checks whether this resource has a local RC entity or not. |
protected void |
processEndSimulation()
Notifies internal entities regarding to the end of simulation signal |
protected void |
processOtherEvent(Sim_event ev)
Processes events or services that are available for this resource |
protected void |
registerOtherEntity()
Registers other entities when a simulation starts. |
boolean |
setHigherReplicaCatalogue(String rcName)
Sets the RC name that is located outside this resource. |
boolean |
setReplicaCatalogue(AbstractRC rc)
Sets the RC entity for this resource. |
boolean |
setReplicaCatalogue(String rcName)
Sets the RC name for this resource. |
boolean |
setTierLevel(int tierLevel)
Sets the tier level of this resource (in a hierarchical model) |
| Methods inherited from class gridsim.GridResource |
body, setRegionalGIS, setRegionalGIS, SpaceShare_AllocatePEtoGridlet, spaceShared_AllocatePEtoGridlet |
| 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 |
| Constructor Detail |
public DataGridResource(String name,
Link link,
ResourceCharacteristics resource,
ResourceCalendar calendar,
ReplicaManager replicaManager)
throws Exception
name - the name to be associated with this entity (as
required by Sim_entity class from simjava package)link - the link that will be used to connect this
resource to another Entity or Router.resource - an object of ResourceCharacteristicscalendar - an object of ResourceCalendarreplicaManager - a Replica Manager that is responsible for this
resource
Exception - This happens when one of the following scenarios occur:
GridSim.init(int, Calendar, boolean, String[], String[],
String)
public DataGridResource(String name,
Link link,
ResourceCharacteristics resource,
ResourceCalendar calendar,
AllocPolicy policy,
ReplicaManager replicaManager)
throws Exception
name - the name to be associated with this entity (as
required by Sim_entity class from simjava package)link - the link that will be used to connect this
resource to another Entity or Router.resource - an object of ResourceCharacteristicscalendar - an object of ResourceCalendarpolicy - a scheduling policy for this Grid resource.replicaManager - a Replica Manager that is responsible for this
resource
Exception - This happens when one of the following scenarios occur:
GridSim.init(int, Calendar, boolean, String[], String[],
String)| Method Detail |
public boolean addStorage(List storageList)
storageList - a list of Storage elements
Storagepublic boolean addStorage(Storage storage)
storage - a Storage element
Storagepublic double getTotalStorageCapacity()
public int addFile(File file)
file - a DataGrid file
DataGridTags.FILE_ADD_SUCCESSFUL,
DataGridTags.FILE_ADD_ERROR_EMPTYpublic boolean setHigherReplicaCatalogue(String rcName)
rcName - a RC entity name
public boolean setReplicaCatalogue(String rcName)
rcName - a RC entity name
public boolean setReplicaCatalogue(AbstractRC rc)
rc - a RC entity
public boolean createLocalRC()
public boolean hasLocalRC()
public AbstractRC getLocalRC()
public boolean setTierLevel(int tierLevel)
protected void processOtherEvent(Sim_event ev)
processOtherEvent in class GridResourceev - a Sim_event objectprotected void registerOtherEntity()
registerOtherEntity in class GridResourceprotected void processEndSimulation()
|
GridSim v4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||