|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.gridbus.broker.farming.globus.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()
|
|
| Method Summary | |
static java.lang.String[] |
getAvailableDNs(java.lang.String hostURL)
Gets the dns which are available for the given host. |
static long |
getCountLimit()
Gets the current limit on the number of results to be returned. |
static org.ietf.jgss.GSSCredential |
getCredentials()
Gets the credentials currently being used for authentication. |
static int |
getSearchScope()
Gets the current search scope for searches. |
static int |
getTimeLimit()
Gets the current time limit (in ms) to wait for search results. |
static boolean |
isSecure()
Checks whether secure connections are being used. |
static void |
resetSearchControls()
Resets the current search controls. |
static javax.naming.NamingEnumeration |
search(java.lang.String hostURL,
java.lang.String[] retAttrs)
Searches for all objects of the host URL. |
static 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. |
static 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. |
static void |
setCountLimit(long limit)
Sets the limit for the maximum number of results to be returned during searches. |
static void |
setSearchScope(int scope)
Sets the scope to be used during searches. |
static void |
setSecure(org.ietf.jgss.GSSCredential creds)
Sets up this MDSUtil to use secure connections. |
static 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 static 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 static 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 static 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 static void setTimeLimit(int ms)
ms - the time to wait for results.SearchControlspublic static void setCountLimit(long limit)
limit - maximum number of results to return.SearchControlspublic static void setSearchScope(int scope)
scope - the scope to be used during searches. SearchControls.SUBTREE_SCOPE, SearchControls.OBJECT_SCOPE or SearchControls.ONELEVEL_SCOPESearchControlspublic static int getTimeLimit()
SearchControlspublic static long getCountLimit()
SearchControlspublic static int getSearchScope()
SearchControlspublic static void resetSearchControls()
public static void setSecure(org.ietf.jgss.GSSCredential creds)
creds - credentials to use during authentication. null if anonymous connections are to be used.public static boolean isSecure()
public static org.ietf.jgss.GSSCredential getCredentials()
public static 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 | ||||||||||