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.IOException
public static String getFilePath(String path) throws IOException
path
- The path to obtain the local path fromIOException
public static InetSocketAddress getTachyonMasterAddress(String path) throws IOException
path
- The path to obtain the InetSocketAddress from.IOException
Copyright © 2013. All rights reserved.