public class AMStatisticsCollector extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
API_EXCHANGES_PATH |
static String |
API_STATISTICS_PATH |
| Constructor and Description |
|---|
AMStatisticsCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExchangeToQueue(Exchange exc) |
protected com.fasterxml.jackson.core.JsonGenerator |
getAndResetJsonGenerator() |
String |
getClientId() |
String |
getClientSecret() |
int |
getCollectTimeInSeconds() |
String |
getHost() |
protected String |
getStringFromJsonGenerator() |
Outcome |
handleRequest(Exchange exc,
Outcome outcome)
Inits listener and puts exchange in a queue for later processing
|
Outcome |
handleResponse(Exchange exc,
Outcome outcome) |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setCollectTimeInSeconds(int collectTimeInSeconds) |
void |
setHost(String host) |
void |
shutdown() |
public static final String API_STATISTICS_PATH
public static final String API_EXCHANGES_PATH
public Outcome handleRequest(Exchange exc, Outcome outcome)
exc - outcome - public void addExchangeToQueue(Exchange exc)
public int getCollectTimeInSeconds()
public void setCollectTimeInSeconds(int collectTimeInSeconds)
public void shutdown()
protected com.fasterxml.jackson.core.JsonGenerator getAndResetJsonGenerator()
protected String getStringFromJsonGenerator() throws IOException
IOExceptionpublic String getHost()
public void setHost(String host)
public String getClientId()
public void setClientId(String clientId)
public String getClientSecret()
public void setClientSecret(String clientSecret)
Copyright © 2022. All Rights Reserved.