public class CommandParser extends AbstractService implements HarvestListener, AgentConfigListener
logger| Constructor and Description |
|---|
CommandParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommands(Command... commands)
Adds a command to this parser.
|
void |
afterHarvest(java.lang.String appName)
Called after the harvest.
|
void |
beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
Gets the agent commands from the rpm service, processes them, and returns the command results.
|
void |
configChanged(java.lang.String appName,
AgentConfig agentConfig) |
protected void |
doStart() |
protected void |
doStop() |
boolean |
isEnabled()
Is the service enabled.
|
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stoppublic void addCommands(Command... commands)
commands - public void beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
beforeHarvest in interface HarvestListenerRPMService.getAgentCommands(),
RPMService.sendCommandResults(Map)public void afterHarvest(java.lang.String appName)
HarvestListenerafterHarvest in interface HarvestListenerpublic boolean isEnabled()
Serviceprotected void doStart()
doStart in class AbstractServicepublic void configChanged(java.lang.String appName,
AgentConfig agentConfig)
configChanged in interface AgentConfigListenerprotected void doStop()
doStop in class AbstractService