|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttachyon.command.Utils
public class Utils
Class for convenience methods used by TFsShell.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static String validateTachyonPath(String path) throws InvalidPathException
path
- The path to be verified.
InvalidPathException
public static String getFilePath(String path) throws InvalidPathException
path
- The path to obtain the local path from
InvalidPathException
public static InetSocketAddress getTachyonMasterAddress(String path) throws InvalidPathException
path
- The path to obtain the InetSocketAddress from.
InvalidPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |