| java.lang.Object org.griphyn.cPlanner.common.Utility
Utility | public class Utility (Code) | | A utility class that contains a few common utility/helper functions used in
Pegasus. At present they are preliminary URL decomposition functions.
author: Karan Vahi author: Gaurang Mehta version: $Revision: 50 $ |
Method Summary | |
public static String | getAbsolutePath(String url) It returns the absolute path of the url. | public static String | getHostName(String urlPrefix) This returns the host name of the server, given a url prefix.
Parameters: urlPrefix - the urlPrefix of the server. | public static String | pruneURLPrefix(String url) Prunes the url prefix to ensure that only the url prefix as wanted
by Pegasus goes through. |
getAbsolutePath | public static String getAbsolutePath(String url)(Code) | | It returns the absolute path of the url. The absolute path is the
directory path in the URL. In the GVDS lingo, it refers to the mount
points too.
Parameters: url - String String |
getHostName | public static String getHostName(String urlPrefix)(Code) | | This returns the host name of the server, given a url prefix.
Parameters: urlPrefix - the urlPrefix of the server. String |
pruneURLPrefix | public static String pruneURLPrefix(String url)(Code) | | Prunes the url prefix to ensure that only the url prefix as wanted
by Pegasus goes through. This is due to the different manner in which
url prefix was used earlier.
For e.g the function when passed a url
gsiftp://dataserver.phys.uwm.edu/~/griphyn_test/ligodemo_output/
returns url gsiftp://dataserver.phys.uwm.edu.
Parameters: url - the url prefix. String |
|
|