public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getFilePath(String path)
Removes header and hostname:port information from a path, leaving only the local file path.
|
static InetSocketAddress |
getTachyonMasterAddress(String path)
Obtains the InetSocketAddress from a path by parsing the hostname:port portion of the path.
|
static String |
validateTachyonPath(String path)
Validates the path, verifying that it contains the header and a hostname:port specified.
|
public static String validateTachyonPath(String path) throws IOException
path - The path to be verified.IOExceptionpublic static String getFilePath(String path) throws IOException
path - The path to obtain the local path fromIOExceptionpublic static InetSocketAddress getTachyonMasterAddress(String path) throws IOException
path - The path to obtain the InetSocketAddress from.IOExceptionCopyright © 2013. All rights reserved.