|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectThread
Sim_entity
GridSimCore
GridResource
DataGridResource
public class 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| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class GridResource |
|---|
policy_, policyType_, regionalGISName_, resCalendar_, resource_, SIZE |
| Fields inherited from class GridSimCore |
|---|
input, NETWORK_TYPE, output |
| 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 GridResource |
|---|
body, getAllocationPolicy, getResourceCharacteristics, setRegionalGIS, setRegionalGIS |
| 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 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)
tierLevel - the tier level of this resource
protected void processOtherEvent(Sim_event ev)
processOtherEvent in class GridResourceev - a Sim_event objectprotected void registerOtherEntity()
registerOtherEntity in class GridResourceReplicaManager.registerAllMasterFiles()protected void processEndSimulation()
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||