|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.support.ParsingUtils
public class ParsingUtils
Various static string and parsing utilities.
Constructor Summary | |
---|---|
ParsingUtils()
|
Method Summary | |
---|---|
static java.lang.String |
extractClasspath(java.lang.String source,
java.lang.String delimiter)
Extracts a classpath string from a source text. |
static java.lang.String |
extractRunnableCommand(java.lang.String source)
Extracts a string from another string which can be used as a command in shell. |
static long |
parseBytes(java.lang.String string)
Parses the count of bytes from a string. |
static int |
parseBytesAsMegs(java.lang.String string)
Parses the given string as a number representing megs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsingUtils()
Method Detail |
---|
public static int parseBytesAsMegs(java.lang.String string) throws java.text.ParseException
string
- the value string
java.text.ParseException
- the parse exceptionpublic static long parseBytes(java.lang.String string) throws java.text.ParseException
string
- the value string
java.text.ParseException
- the parse exceptionpublic static java.lang.String extractRunnableCommand(java.lang.String source)
source
- Source string
public static java.lang.String extractClasspath(java.lang.String source, java.lang.String delimiter)
source
- the source stringdelimiter
- the delimiter
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |