public class MonitoredObject extends Object implements MonitoredItem
Constructor and Description |
---|
MonitoredObject() |
Modifier and Type | Method and Description |
---|---|
MonitoredObject |
addConst(CharSequence key,
Object item)
Add const monitored object.
|
MonitoredObject |
addField(CharSequence key,
Supplier<Object> item)
Add field monitored object.
|
MonitoredObject |
addObj(CharSequence key,
MonitoredItem item)
Add obj monitored object.
|
MonitoredObject |
clearConstants()
Clear constants monitored object.
|
Map<CharSequence,Object> |
getMetrics()
Gets metrics.
|
@Nonnull public MonitoredObject addConst(CharSequence key, Object item)
key
- the keyitem
- the item@Nonnull public MonitoredObject addField(CharSequence key, Supplier<Object> item)
key
- the keyitem
- the item@Nonnull public MonitoredObject addObj(CharSequence key, MonitoredItem item)
key
- the keyitem
- the item@Nonnull public MonitoredObject clearConstants()
@Nonnull public Map<CharSequence,Object> getMetrics()
MonitoredItem
getMetrics
in interface MonitoredItem
Copyright © 2019 SimiaCryptus Software. All rights reserved.