|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJobDirectory
The interface that represents the access from Job Directory to Distributed Directory Service (ADS/RSS, WP3.2).
Nested Class Summary | |
---|---|
static class |
IJobDirectory.Attribute
|
Method Summary | |
---|---|
int |
clear()
Remove the job information of all jobs, effectively emptying the job directory. |
int |
getAttribute(java.lang.String JobId,
java.lang.String attributeName,
IJobDirectoryListener listener)
|
int |
getJobContactPoint(java.lang.String jobID,
IJobDirectoryListener listener)
Invoke a query for the contact point of a job currently in the directory. |
int |
getJobIDs(IJobDirectory.Attribute attribute,
IJobDirectoryListener listener)
Get the keys that match the pair attribute name and value |
int |
modifyJobContactPoint(java.lang.String jobID,
CommunicationAddress newContactPoint,
IJobDirectoryListener listener)
Change a contact point of a job already in the directory. |
int |
putJob(java.lang.String jobID,
CommunicationAddress contactPoint,
java.lang.String userID,
IJobDirectoryListener listener)
Put a job information into the directory. |
int |
removeJob(java.lang.String jobID,
IJobDirectoryListener listener)
Remove a job's information from the directory. |
int |
setAttribute(java.lang.String jobID,
IJobDirectory.Attribute attribute)
Adds an attribute of a job or updates it in case the attribute was already set |
Method Detail |
---|
int putJob(java.lang.String jobID, CommunicationAddress contactPoint, java.lang.String userID, IJobDirectoryListener listener)
jobID
- The job's identification is the key in the DHT.contactPoint
- The node where the JobMng of the job is running at.userID
- The user that ows the joblistener
- TODO: what can be the success notification here?
int modifyJobContactPoint(java.lang.String jobID, CommunicationAddress newContactPoint, IJobDirectoryListener listener)
jobID
- The key of the job we would like to change the contact point of.newContactPoint
- The new value of the job's contact pointlistener
- TODO: what can be the success notification here?
int setAttribute(java.lang.String jobID, IJobDirectory.Attribute attribute)
jobID
- The key of the job already in the directoryattribute
- that is a pair of name and value, to be set
int removeJob(java.lang.String jobID, IJobDirectoryListener listener)
jobID
- The key of the job we would like to remove.listener
- TODO: what can be the success notification here?
int getJobContactPoint(java.lang.String jobID, IJobDirectoryListener listener)
jobID
- The key of the job that we are querying about.listener
- The listener to receive the results of the query.
int getJobIDs(IJobDirectory.Attribute attribute, IJobDirectoryListener listener)
attribute
- pair name, value we want to get the matching keyslistener
- The listener to receive the results of the query.
int getAttribute(java.lang.String JobId, java.lang.String attributeName, IJobDirectoryListener listener)
JobId
- The key of the job that we are querying about.attributeName
- we want to obtain the value of.listener
- The listener to receive the results of the query.
int clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |