
com.wavefront.agent.api.NoopProxyV2API Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy Show documentation
Show all versions of proxy Show documentation
Service for batching and relaying metric traffic to Wavefront
package com.wavefront.agent.api;
import com.fasterxml.jackson.databind.JsonNode;
import com.wavefront.api.ProxyV2API;
import com.wavefront.api.agent.AgentConfiguration;
import java.util.UUID;
import javax.ws.rs.core.Response;
/**
* Partial ProxyV2API wrapper stub that passed proxyCheckin/proxyConfigProcessed calls to the
* delegate and replaces proxyReport/proxyError with a no-op.
*
* @author [email protected]
*/
public class NoopProxyV2API implements ProxyV2API {
private final ProxyV2API wrapped;
public NoopProxyV2API(ProxyV2API wrapped) {
this.wrapped = wrapped;
}
@Override
public AgentConfiguration proxyCheckin(
UUID proxyId,
String authorization,
String hostname,
String proxyname,
String version,
Long currentMillis,
JsonNode agentMetrics,
Boolean ephemeral) {
return wrapped.proxyCheckin(
proxyId,
authorization,
hostname,
proxyname,
version,
currentMillis,
agentMetrics,
ephemeral);
}
@Override
public void proxySaveConfig(UUID uuid, JsonNode jsonNode) {}
public void proxySavePreprocessorRules(UUID uuid, JsonNode jsonNode) {}
@Override
public Response proxyReport(UUID uuid, String s, String s1) {
return Response.ok().build();
}
@Override
public void proxyConfigProcessed(UUID uuid) {
wrapped.proxyConfigProcessed(uuid);
}
@Override
public void proxyError(UUID uuid, String s) {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy