public class ServerlessHarvestService extends AbstractService implements HarvestService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HARVEST_LIMITS |
logger| Constructor and Description |
|---|
ServerlessHarvestService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHarvestable(Harvestable harvestable) |
void |
addHarvestListener(HarvestListener listener) |
protected void |
doStart() |
protected void |
doStop() |
java.util.Map<java.lang.String,java.lang.Object> |
getEventDataHarvestLimits()
Returns the object structure that will be marshaled to JSON for `event_harvest_config` that will get sent
up on connect.
|
void |
harvestNow()
Perform an immediate harvest.
|
boolean |
isEnabled()
Is the service enabled.
|
void |
removeHarvestable(Harvestable harvestable) |
void |
removeHarvestablesByAppName(java.lang.String appName) |
void |
removeHarvestListener(HarvestListener listener) |
void |
startHarvest(IRPMService rpmService)
Start a harvest task for the RPM service.
|
void |
startHarvestables(IRPMService rpmService,
AgentConfig config)
Configure harvestables with their limits.
|
void |
stopHarvest(IRPMService rpmService) |
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stoppublic static final java.lang.String HARVEST_LIMITS
public boolean isEnabled()
Serviceprotected void doStart()
doStart in class AbstractServiceprotected void doStop()
doStop in class AbstractServicepublic void startHarvest(IRPMService rpmService)
startHarvest in interface HarvestServicepublic void startHarvestables(IRPMService rpmService, AgentConfig config)
public void stopHarvest(IRPMService rpmService)
stopHarvest in interface HarvestServicepublic void addHarvestable(Harvestable harvestable)
addHarvestable in interface HarvestServicepublic void removeHarvestable(Harvestable harvestable)
removeHarvestable in interface HarvestServicepublic void removeHarvestablesByAppName(java.lang.String appName)
removeHarvestablesByAppName in interface HarvestServicepublic void addHarvestListener(HarvestListener listener)
addHarvestListener in interface HarvestServicepublic void removeHarvestListener(HarvestListener listener)
removeHarvestListener in interface HarvestServicepublic void harvestNow()
harvestNow in interface HarvestServicepublic java.util.Map<java.lang.String,java.lang.Object> getEventDataHarvestLimits()
HarvestServicegetEventDataHarvestLimits in interface HarvestService