|
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.GridSim
gridsim.GridUser
gridsim.datagrid.DataGridUser
A class for representing a user in a Data Grid environment
| Field Summary |
| Fields inherited from class gridsim.GridUser |
gisID_ |
| Fields inherited from class gridsim.GridSim |
PAUSE, rand, SimulationStartDate |
| 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 | |
DataGridUser(String name,
Link link)
Creates a new DataGrid user. |
|
DataGridUser(String name,
Link link,
String regionalGIS)
Creates a new DataGrid user. |
|
DataGridUser(String name,
Link link,
String rcName,
String regionalGIS)
Creates a new DataGrid user |
|
| Method Summary | |
boolean |
addMaster(File file,
int resID)
Adds a master file to a designated resource |
boolean |
deleteFile(String filename,
int resID)
Deletes a given file stored in a resource |
boolean |
deleteMaster(String filename,
int resID)
Deletes a master file stored in a resource |
ArrayList |
getAttributeList(Filter filter)
Gets a list of file attributes from a given filter |
File |
getFile(String lfn,
int resID)
Gets a file from a specific resource |
FileAttribute |
getFileAttribute(String lfn)
Gets an attribute file for a given logical file name (lfn) |
String |
getFullFilename(String filename)
Gets a full name of the given file. |
Object[] |
getGlobalRCList()
Gets a list of global Replica Catalogue (RC) IDs. |
Object[] |
getLocalRCList()
Gets a list of local Replica Catalogue (RC) IDs from a regional GIS entity |
int |
getReplicaCatalogueID()
Gets a Replica Catalogue id |
String |
getReplicaCatalogueName()
Gets a Replica Catalogue name |
int |
getReplicaLocation(String lfn)
Gets the first resource ID that has the given logical file name (lfn). |
List |
getReplicaLocationList(String lfn)
Gets a list of resource IDs that store the given logical file name (lfn). |
List |
getReplicaLocationList(String lfn,
int rcID)
Gets a list of resource IDs that store the given logical file name (lfn). |
boolean |
replicateFile(File master,
int resID)
Makes a replica of the given master file to another resource |
boolean |
setReplicaCatalogue(AbstractRC rc)
Sets a Replica Catalogue name for this user (the old name will be overwritten). |
boolean |
setReplicaCatalogue(String rcName)
Sets a Replica Catalogue name for this user (the old name will be overwritten). |
| Methods inherited from class gridsim.GridUser |
finishSimulation, finishSimulation, getGlobalResourceARList, getGlobalResourceList, getList, getList, getLocalResourceARList, getLocalResourceList, getRegionalGISId, getRegionalGISList, getRegionalGISName, setRegionalGIS, 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, body, 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 DataGridUser(String name,
Link link)
throws Exception
name - the user namelink - a network link to connect this user to a network
Exception - happens if one of the inputs is empty or nullGridUser.setRegionalGIS(String),
GridUser.setRegionalGIS(AbstractGIS),
setReplicaCatalogue(String),
setReplicaCatalogue(AbstractRC)
public DataGridUser(String name,
Link link,
String regionalGIS)
throws Exception
name - the user namelink - a network link to connect this user to a networkregionalGIS - a Regional GIS name
Exception - happens if one of the inputs is empty or nullsetReplicaCatalogue(String),
setReplicaCatalogue(AbstractRC)
public DataGridUser(String name,
Link link,
String rcName,
String regionalGIS)
throws Exception
name - the user namelink - a network link to connect this user to a networkrcName - a Replica Catalogue nameregionalGIS - a Regional GIS name
Exception - happens if one of the inputs is empty or null| Method Detail |
public boolean setReplicaCatalogue(String rcName)
rcName - a Replica Catalogue name
public boolean setReplicaCatalogue(AbstractRC rc)
rc - a Replica Catalogue object
public String getReplicaCatalogueName()
public int getReplicaCatalogueID()
public Object[] getLocalRCList()
public Object[] getGlobalRCList()
public int getReplicaLocation(String lfn)
getReplicaLocationList(String) method instead.
In addition, this method only contacts the given/chosen RC entity, not
all RCs.
lfn - a logical file name
public List getReplicaLocationList(String lfn)
lfn - a logical file name
public List getReplicaLocationList(String lfn,
int rcID)
lfn - a logical file namercID - a RC entity ID
public FileAttribute getFileAttribute(String lfn)
lfn - a logical file name
public boolean addMaster(File file,
int resID)
file - a master fileresID - a resource ID
public boolean replicateFile(File master,
int resID)
master - a master fileresID - a resource ID that will be storing the replica file
public boolean deleteFile(String filename,
int resID)
filename - a file nameresID - a resource ID stores the file
public boolean deleteMaster(String filename,
int resID)
filename - a file nameresID - a resource ID stores the file
public ArrayList getAttributeList(Filter filter)
filter - a filtering function
public File getFile(String lfn,
int resID)
lfn - a logical file nameresID - a resource ID that contains the file
public String getFullFilename(String filename)
filename - a file name
|
GridSim v4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||