|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.scheduler.DataDiscovery
public class DataDiscovery
This is the Data Discovery class. It generates a record of all successful file transfers resulting from STORE directives defined in Job Description Files. This list is made available to Storage Affinity for ([file size] + [location]) discovery.
Field Summary | |
---|---|
static long |
DEFAULT_DURATION
Duration of entry validity. |
Method Summary | |
---|---|
long |
amountAtDestination(java.lang.String localPath,
java.lang.String remotePath,
GumClient gumClient)
Determines whether a file is at a specific location |
DataDiscoveryEntry |
getDDEntry(java.lang.String fileDigest)
Retrieves an entry for a given file digest |
static DataDiscovery |
getInstance()
Allow other objects to use the same DD instance |
static DataDiscovery |
initDataDiscovery(boolean cacheFile)
Instantiate the Data Discovery lookup table |
void |
modDDEntry(java.lang.String fileDigest,
java.lang.String remotePath,
GumSpec spec)
Removes invalid locations from an entry and deletes an entry if its location sub-table is empty. |
int |
numberOfEntries()
Determines the number of unique files listed in the Data Discovery table |
void |
putDDEntry(java.lang.String fileDigest,
java.lang.String remotePath,
long fileSize,
GumClient gum)
Records STORE file transfer activity for repeated transfers. |
void |
putDDEntry(java.lang.String fileDigest,
java.lang.String remotePath,
long fileSize,
GumSpec spec)
Records STORE file transfer activity for repeated transfers. |
static void |
resetInstance()
Erases the DataDiscovery lookup table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_DURATION
Method Detail |
---|
public static DataDiscovery initDataDiscovery(boolean cacheFile) throws DDInitException
DDInitException
public static void resetInstance()
public static DataDiscovery getInstance()
public void putDDEntry(java.lang.String fileDigest, java.lang.String remotePath, long fileSize, GumSpec spec)
fileDigest
- Digest of a transfered file. Used as primary key.remotePath
- Destination file system path of transfered file.fileSize
- The size in bytes of the file transfered.spec
- The destination GuM's specificationpublic void putDDEntry(java.lang.String fileDigest, java.lang.String remotePath, long fileSize, GumClient gum)
fileDigest
- Digest of a transfered file. Used as primary key.remotePath
- Destination file system path of transfered file.fileSize
- The size in bytes of the file transfered.gum
- The destination GuM's specificationpublic DataDiscoveryEntry getDDEntry(java.lang.String fileDigest) throws DDEntryNotFoundException
fileDigest
- Digest of a transfered file.
DDEntryNotFoundException
public void modDDEntry(java.lang.String fileDigest, java.lang.String remotePath, GumSpec spec)
fileDigest
- Digest of a transfered file.remotePath
- Destination file system path of transfered file.spec
- The destination GuM's specification.public int numberOfEntries()
public long amountAtDestination(java.lang.String localPath, java.lang.String remotePath, GumClient gumClient)
localPath
- Local file system path of transfered file.remotePath
- Destination file system path of transfered file.gumClient
- Destination GuM
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |