|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectThread
Sim_entity
GridSimCore
GridSim
GridUser
DataGridUser
public class DataGridUser
A class for representing a user in a Data Grid environment
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class GridUser |
|---|
gisID_ |
| Fields inherited from class GridSim |
|---|
GRIDSIM_VERSION_STRING, PAUSE |
| Fields inherited from class GridSimCore |
|---|
input, NETWORK_TYPE, output |
| Fields inherited from class Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
DataGridUser(String name,
Link link)
Creates a new DataGrid user. NOTE: When using this constructor, do not forget to set the regional GIS name and the Replica Catalogue name for this entity. |
|
DataGridUser(String name,
Link link,
String regionalGIS)
Creates a new DataGrid user. NOTE: When using this constructor, do not forget to set the Replica Catalogue name for this entity. |
|
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 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 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 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||