|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.gridbus.broker.util.MDSUtil
Privides a utility class for accessing directory information. Wraps around DirContext class.
DirContext| Field Summary | |
static java.lang.String |
DEFAULT_CONTEXTNAME
|
static java.lang.String |
DEFAULT_FILTER
|
| Constructor Summary | |
MDSUtil()
Creates an instance of MDSUtil and initialises any default settings. |
|
| Method Summary | |
java.lang.String[] |
getAvailableDNs(java.lang.String hostURL)
Gets the dns which are available for the given host. |
long |
getCountLimit()
Gets the current limit on the number of results to be returned. |
org.ietf.jgss.GSSCredential |
getCredentials()
Gets the credentials currently being used for authentication. |
int |
getSearchScope()
Gets the current search scope for searches. |
int |
getTimeLimit()
Gets the current time limit (in ms) to wait for search results. |
boolean |
isSecure()
Checks whether secure connections are being used. |
void |
resetSearchControls()
Resets the current search controls. |
javax.naming.NamingEnumeration |
search(java.lang.String hostURL,
java.lang.String[] retAttrs)
Searches for all objects of the host URL. |
javax.naming.NamingEnumeration |
search(java.lang.String hostURL,
java.lang.String filter,
java.lang.String[] retAttrs)
Searches for objects matching the given filter of the hsot URL. |
javax.naming.NamingEnumeration |
search(java.lang.String hostURL,
java.lang.String contextName,
java.lang.String filter,
java.lang.String[] retAttrs)
Searches objects matching the given filter of the host URL. |
void |
setCountLimit(long limit)
Sets the limit for the maximum number of results to be returned during searches. |
void |
setSearchScope(int scope)
Sets the scope to be used during searches. |
void |
setSecure(org.ietf.jgss.GSSCredential creds)
Sets up this MDSUtil to use secure connections. |
void |
setTimeLimit(int ms)
Sets the time limit (in ms) to wait for search results. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_CONTEXTNAME
public static final java.lang.String DEFAULT_FILTER
| Constructor Detail |
public MDSUtil()
| Method Detail |
public javax.naming.NamingEnumeration search(java.lang.String hostURL,
java.lang.String[] retAttrs)
throws javax.naming.NamingException
hostURL - URL of the host to search.retAttrs - - the attributes to return. null indicates that all attributes are to be returned; an empty array indicates that none are to be returned.
javax.naming.NamingException
public javax.naming.NamingEnumeration search(java.lang.String hostURL,
java.lang.String filter,
java.lang.String[] retAttrs)
throws javax.naming.NamingException
hostURL - URL of the host to search.filter - the filter expression to use for the search.retAttrs - the attributes to return. null indicates that all attributes are to be returned; an empty array indicates that none are to be returned.
javax.naming.NamingException
public javax.naming.NamingEnumeration search(java.lang.String hostURL,
java.lang.String contextName,
java.lang.String filter,
java.lang.String[] retAttrs)
throws javax.naming.NamingException
hostURL - URL of the host to search.contextName - the name of the context to search.filter - the filter expression to use for the search.retAttrs - the attributes to return. null indicates that all attributes are to be returned; an empty array indicates that none are to be returned.
javax.naming.NamingExceptionpublic void setTimeLimit(int ms)
ms - the time to wait for results.SearchControlspublic void setCountLimit(long limit)
limit - maximum number of results to return.SearchControlspublic void setSearchScope(int scope)
scope - the scope to be used during searches. SearchControls.SUBTREE_SCOPE, SearchControls.OBJECT_SCOPE or SearchControls.ONELEVEL_SCOPESearchControlspublic int getTimeLimit()
SearchControlspublic long getCountLimit()
SearchControlspublic int getSearchScope()
SearchControlspublic void resetSearchControls()
public void setSecure(org.ietf.jgss.GSSCredential creds)
creds - credentials to use during authentication. null if anonymous connections are to be used.public boolean isSecure()
public org.ietf.jgss.GSSCredential getCredentials()
public java.lang.String[] getAvailableDNs(java.lang.String hostURL)
throws javax.naming.NamingException
hostURL - url for the host to look up.
javax.naming.NamingException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||