public class CollectorUtil extends Object
Constructor and Description |
---|
CollectorUtil() |
Modifier and Type | Method and Description |
---|---|
Result |
getResultByCorrelator(List<Result> results,
String correlator)
Get a particular Result object which maps to the given correlator
|
void |
mapMetaData(MonitoringEvent event)
Feed the serverAddress, serverName, clusterDomain and ClusterSubDomain values to the event.
|
void |
mapResultAttributesToPoJo(Result result,
Object event)
Map the attributes on the result to the given event Object using reflection
|
void |
setFieldValue(Object event,
Attribute attribute)
Set the value of the attribute to the matching property of the event Object.
|
public Result getResultByCorrelator(List<Result> results, String correlator)
results
- the list of resultscorrelator
- the correlatorpublic void mapResultAttributesToPoJo(Result result, Object event) throws AttributeMapperException
result
- The Result object with the attribute valuesevent
- The POJO to be updated with the attribute values.AttributeMapperException
public void mapMetaData(MonitoringEvent event)
event
- The monitoring eventpublic void setFieldValue(Object event, Attribute attribute) throws AttributeMapperException
event
- The event object that should be filled with the attribute valueattribute
- The Attribute that should be set to the event fieldAttributeMapperException
Copyright © 2019 WSO2. All rights reserved.