public class DefaultController extends ComponentBase implements java.lang.Runnable, EventListener
Constructor and Description |
---|
DefaultController() |
Modifier and Type | Method and Description |
---|---|
void |
handle(java.lang.String topic,
java.util.Map<java.lang.String,java.lang.String> payload)
Event callback.
|
protected void |
onInit() |
protected void |
onStop() |
void |
run() |
protected void |
sendDeploymentCompletedEvent(org.apache.ace.agent.impl.DefaultController.UpdateInfo updateInfo,
boolean success,
java.lang.Throwable throwable) |
protected void |
sendDeploymentInstallEvent(org.apache.ace.agent.impl.DefaultController.UpdateInfo updateInfo) |
getAgentContext, getAgentUpdateHandler, getConfigurationHandler, getConnectionHandler, getDeploymentHandler, getDiscoveryHandler, getDownloadHandler, getEventsHandler, getExecutorService, getFeedbackHandler, getIdentificationHandler, getLoggingHandler, getWorkDir, init, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, onStart, start, stop
public void handle(java.lang.String topic, java.util.Map<java.lang.String,java.lang.String> payload)
EventListener
handle
in interface EventListener
topic
- The topic stringpayload
- An unmodifiable mappublic void run()
run
in interface java.lang.Runnable
protected void onInit() throws java.lang.Exception
onInit
in class ComponentBase
java.lang.Exception
protected void onStop() throws java.lang.Exception
onStop
in class ComponentBase
java.lang.Exception
protected void sendDeploymentCompletedEvent(org.apache.ace.agent.impl.DefaultController.UpdateInfo updateInfo, boolean success, java.lang.Throwable throwable)
protected void sendDeploymentInstallEvent(org.apache.ace.agent.impl.DefaultController.UpdateInfo updateInfo)