|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.scheduler.DataDiscoveryEntry
public class DataDiscoveryEntry
This is the Data Discovery Entry class. It represents a single entry in the Data Discovery lookup table..
Constructor Summary | |
---|---|
DataDiscoveryEntry()
|
|
DataDiscoveryEntry(java.lang.String fileDigest,
long fileSize,
java.lang.String fileLocation,
long expireDate)
Creates a new Data Discovery entry |
Method Summary | |
---|---|
java.lang.String |
getDigest()
Returns an entry's file digest |
java.util.Map<java.lang.String,java.lang.Long> |
getLocations()
Returns an entry's locations sub-table |
long |
getSize()
Returns an enttry's file size |
void |
setDigest(java.lang.String fileDigest)
Assigns the digest value for this entry |
void |
setLocation(java.lang.String fileLocation,
long expireDate)
Adds a valid location and time-stamp to the locations sub-table |
void |
setSize(long fileSize)
Assigns the file size value for this entry |
java.lang.String |
toString()
Formats an entry as a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataDiscoveryEntry()
public DataDiscoveryEntry(java.lang.String fileDigest, long fileSize, java.lang.String fileLocation, long expireDate)
fileDigest
- Digest of a transfered file. Used as primary key.fileSize
- The size in bytes of the file transfered.fileLocation
- The full path (file://site/remote_path) of the file's
destinationexpireDate
- The date at which the location information is no longer
valid. Not yet used.Method Detail |
---|
public void setDigest(java.lang.String fileDigest)
fileDigest
- Digest of a transfered file. Used as primary key.public void setSize(long fileSize)
fileSize
- The size in bytes of the file transfered.public void setLocation(java.lang.String fileLocation, long expireDate)
fileLocation
- The full path (file://site/remote_path) of the file's
destinationexpireDate
- The date at which the location information is no longer
valid. Not yet used.public java.lang.String getDigest()
public long getSize()
public java.util.Map<java.lang.String,java.lang.Long> getLocations()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |