public class MemoryUsage extends Object implements Processor, StatisticsService
A simple processor that provides statistics about the current Java VM memory usage.
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
key |
(package private) AtomicLong |
memoryUsed |
| Constructor and Description |
|---|
MemoryUsage() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
Statistics |
getStatistics() |
Data |
process(Data input) |
void |
reset() |
void |
setKey(String key) |
String key
AtomicLong memoryUsed
public String getKey()
public void setKey(String key)
key - the key to setpublic void reset()
throws Exception
reset in interface ServiceExceptionService.reset()public Statistics getStatistics()
getStatistics in interface StatisticsServiceStatisticsService.getStatistics()public Data process(Data input)
process in interface ProcessorProcessor.process(stream.Data)Copyright © 2018. All rights reserved.