public abstract class AbstractMonitorDataCodec extends Object implements MonitorDataCodec
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AbstractMonitorDataCodec.Builder |
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
maxLevel
if collection or map 's element is collection or map, it would deep into till to maxLevel
|
| 构造器和说明 |
|---|
AbstractMonitorDataCodec() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
codec(String eventName,
Object data)
|
protected Object |
codec(String eventName,
Object data,
int level) |
protected Collection<Object> |
codecArray(String eventName,
Object[] array,
int level) |
Collection<Object> |
codecCollection(String eventName,
Collection<?> collection)
将数组类型的集合进行转换
|
protected Collection<Object> |
codecCollection(String eventName,
Collection<?> collection,
int level) |
protected abstract Map<String,Object> |
codecElement(Object data)
|
int |
getMaxLevel() |
void |
setMaxLevel(int maxLevel) |
protected int maxLevel
public Object codec(String eventName, Object data)
codec 在接口中 MonitorDataCodecdata - public Collection<Object> codecCollection(String eventName, Collection<?> collection)
MonitorDataCodeccodecCollection 在接口中 MonitorDataCodecprotected Collection<Object> codecCollection(String eventName, Collection<?> collection, int level)
protected Collection<Object> codecArray(String eventName, Object[] array, int level)
public int getMaxLevel()
public void setMaxLevel(int maxLevel)
Copyright © 2018 Jue Ming. All rights reserved.