public class QueuedAgentService extends Object implements ForceQueueEnabledAgentAPI
Modifier and Type | Class and Description |
---|---|
static class |
QueuedAgentService.PostPushDataResultTask |
static class |
QueuedAgentService.PostSourceTagResultTask |
static class |
QueuedAgentService.PostWorkUnitResultTask |
Constructor and Description |
---|
QueuedAgentService(WavefrontAPI service,
String bufferFile,
int retryThreads,
ScheduledExecutorService executorService,
boolean purge,
UUID agentId,
boolean splitPushWhenRateLimited,
RecyclableRateLimiter pushRateLimiter) |
QueuedAgentService(WavefrontAPI service,
String bufferFile,
int retryThreads,
ScheduledExecutorService executorService,
boolean purge,
UUID agentId,
boolean splitPushWhenRateLimited,
String logLevel)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
agentConfigProcessed(UUID agentId) |
void |
agentError(UUID agentId,
String details) |
AgentConfiguration |
checkin(UUID agentId,
String hostname,
String token,
String version,
Long currentMillis,
Boolean localAgent,
com.fasterxml.jackson.databind.JsonNode agentMetrics,
Boolean pushAgent,
Boolean ephemeral) |
Long |
getBytesPerMinute() |
AgentConfiguration |
getConfig(UUID agentId,
String hostname,
Long currentMillis,
Long bytesLeftForbuffer,
Long bytesPerMinuteForBuffer,
Long currentQueueSize,
String token,
String version) |
long |
getQueuedSourceTagTasksCount() |
long |
getQueuedTasksCount() |
void |
hostAuthenticated(UUID agentId,
UUID hostId) |
void |
hostConnectionEstablished(UUID agentId,
UUID hostId) |
void |
hostConnectionFailed(UUID agentId,
UUID hostId,
String details) |
javax.ws.rs.core.Response |
postPushData(UUID agentId,
UUID workUnitId,
Long currentMillis,
String format,
String pushData) |
javax.ws.rs.core.Response |
postPushData(UUID agentId,
UUID workUnitId,
Long currentMillis,
String format,
String pushData,
boolean forceToQueue) |
javax.ws.rs.core.Response |
postWorkUnitResult(UUID agentId,
UUID workUnitId,
UUID targetId,
ShellOutputDTO shellOutputDTO) |
javax.ws.rs.core.Response |
postWorkUnitResult(UUID agentId,
UUID workUnitId,
UUID targetId,
ShellOutputDTO shellOutputDTO,
boolean forceToQueue) |
javax.ws.rs.core.Response |
removeDescription(String id,
String token) |
javax.ws.rs.core.Response |
removeDescription(String id,
String token,
boolean forceToQueue) |
javax.ws.rs.core.Response |
removeTag(String id,
String token,
String tagValue) |
javax.ws.rs.core.Response |
removeTag(String id,
String token,
String tagValue,
boolean forceToQueue) |
javax.ws.rs.core.Response |
setDescription(String id,
String token,
String description) |
javax.ws.rs.core.Response |
setDescription(String id,
String token,
String desc,
boolean forceToQueue) |
static void |
setRetryBackoffBaseSeconds(com.google.common.util.concurrent.AtomicDouble newSecs) |
static void |
setSplitBatchSize(AtomicInteger newSize) |
javax.ws.rs.core.Response |
setTags(String id,
String token,
List<String> tagValuesToSet) |
javax.ws.rs.core.Response |
setTags(String id,
String token,
List<String> tagValuesToSet,
boolean forceToQueue) |
void |
shutdown() |
@Deprecated public QueuedAgentService(WavefrontAPI service, String bufferFile, int retryThreads, ScheduledExecutorService executorService, boolean purge, UUID agentId, boolean splitPushWhenRateLimited, String logLevel) throws IOException
IOException
public QueuedAgentService(WavefrontAPI service, String bufferFile, int retryThreads, ScheduledExecutorService executorService, boolean purge, UUID agentId, boolean splitPushWhenRateLimited, RecyclableRateLimiter pushRateLimiter) throws IOException
IOException
@Nullable public Long getBytesPerMinute()
public void shutdown()
public static void setRetryBackoffBaseSeconds(com.google.common.util.concurrent.AtomicDouble newSecs)
public static void setSplitBatchSize(AtomicInteger newSize)
public long getQueuedTasksCount()
public long getQueuedSourceTagTasksCount()
public AgentConfiguration getConfig(UUID agentId, String hostname, Long currentMillis, Long bytesLeftForbuffer, Long bytesPerMinuteForBuffer, Long currentQueueSize, String token, String version)
getConfig
in interface WavefrontAPI
public AgentConfiguration checkin(UUID agentId, String hostname, String token, String version, Long currentMillis, Boolean localAgent, com.fasterxml.jackson.databind.JsonNode agentMetrics, Boolean pushAgent, Boolean ephemeral)
checkin
in interface WavefrontAPI
public javax.ws.rs.core.Response postWorkUnitResult(UUID agentId, UUID workUnitId, UUID targetId, ShellOutputDTO shellOutputDTO)
postWorkUnitResult
in interface WavefrontAPI
public javax.ws.rs.core.Response postWorkUnitResult(UUID agentId, UUID workUnitId, UUID targetId, ShellOutputDTO shellOutputDTO, boolean forceToQueue)
postWorkUnitResult
in interface ForceQueueEnabledAgentAPI
public javax.ws.rs.core.Response postPushData(UUID agentId, UUID workUnitId, Long currentMillis, String format, String pushData)
postPushData
in interface WavefrontAPI
public javax.ws.rs.core.Response postPushData(UUID agentId, UUID workUnitId, Long currentMillis, String format, String pushData, boolean forceToQueue)
postPushData
in interface ForceQueueEnabledAgentAPI
public void agentError(UUID agentId, String details)
agentError
in interface WavefrontAPI
public void agentConfigProcessed(UUID agentId)
agentConfigProcessed
in interface WavefrontAPI
public void hostConnectionFailed(UUID agentId, UUID hostId, String details)
hostConnectionFailed
in interface WavefrontAPI
public void hostConnectionEstablished(UUID agentId, UUID hostId)
hostConnectionEstablished
in interface WavefrontAPI
public void hostAuthenticated(UUID agentId, UUID hostId)
hostAuthenticated
in interface WavefrontAPI
public javax.ws.rs.core.Response removeTag(String id, String token, String tagValue)
removeTag
in interface WavefrontAPI
public javax.ws.rs.core.Response removeDescription(String id, String token)
removeDescription
in interface WavefrontAPI
public javax.ws.rs.core.Response setTags(String id, String token, List<String> tagValuesToSet)
setTags
in interface WavefrontAPI
public javax.ws.rs.core.Response setDescription(String id, String token, String description)
setDescription
in interface WavefrontAPI
public javax.ws.rs.core.Response setTags(String id, String token, List<String> tagValuesToSet, boolean forceToQueue)
setTags
in interface ForceQueueEnabledAgentAPI
public javax.ws.rs.core.Response removeDescription(String id, String token, boolean forceToQueue)
removeDescription
in interface ForceQueueEnabledAgentAPI
public javax.ws.rs.core.Response setDescription(String id, String token, String desc, boolean forceToQueue)
setDescription
in interface ForceQueueEnabledAgentAPI
public javax.ws.rs.core.Response removeTag(String id, String token, String tagValue, boolean forceToQueue)
removeTag
in interface ForceQueueEnabledAgentAPI
Copyright © 2017. All rights reserved.