public class DataReaderTools extends Object
| Constructor and Description |
|---|
DataReaderTools(Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMemoryInKiloByte(double memoryValue,
char memUnit,
String line)
Returns the amount of memory in kilobyte.
|
AbstractGCEvent.ExtendedType |
parseType(String typeString)
Returns the
ExtendedType for typeString, if it can find one. |
AbstractGCEvent.ExtendedType |
parseTypeWithCause(String typeName)
Same as @{link
parseType(String)}, but returns null instead of exception, if no type could
be found. |
public DataReaderTools(Logger logger)
public int getMemoryInKiloByte(double memoryValue,
char memUnit,
String line)
memUnit, input is
converted to kilobyte.memoryValue - amount of memorymemUnit - memory unitline - line that is parsedpublic AbstractGCEvent.ExtendedType parseType(String typeString) throws UnknownGcTypeException
ExtendedType for typeString, if it can find one. If there is a type name
including gc cause ("ParNew (promotion failed)", where (promotion failed) is the gc cause), the cause is removed
while trying to find the type.typeString - string representation of the gc eventExtendedType representing typeStringUnknownGcTypeException - If typeString can't be converted to an ExtendedTypepublic AbstractGCEvent.ExtendedType parseTypeWithCause(String typeName)
parseType(String)}, but returns null instead of exception, if no type could
be found.typeName - string representation of the gc eventExtendedType representing typeString, or null if none could be foundCopyright © 2019. All rights reserved.