public class FeedbackHandlerImpl extends ComponentBase implements FeedbackHandler, EventListener
Constructor and Description |
---|
FeedbackHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
FeedbackChannel |
getChannel(java.lang.String name)
Returns the feedback channel for a name
|
java.util.Set<java.lang.String> |
getChannelNames()
Returns the feedback channels names
|
void |
handle(java.lang.String topic,
java.util.Map<java.lang.String,java.lang.String> payload)
Event callback.
|
protected void |
onInit() |
protected void |
onStart() |
protected void |
onStop() |
getAgentContext, getAgentUpdateHandler, getConfigurationHandler, getConnectionHandler, getDeploymentHandler, getDiscoveryHandler, getDownloadHandler, getEventsHandler, getExecutorService, getFeedbackHandler, getIdentificationHandler, getLoggingHandler, getWorkDir, init, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, start, stop
public FeedbackChannel getChannel(java.lang.String name) throws java.io.IOException
FeedbackHandler
getChannel
in interface FeedbackHandler
java.io.IOException
public java.util.Set<java.lang.String> getChannelNames() throws java.io.IOException
FeedbackHandler
getChannelNames
in interface FeedbackHandler
java.io.IOException
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 mapprotected void onInit() throws java.lang.Exception
onInit
in class ComponentBase
java.lang.Exception
protected void onStart() throws java.lang.Exception
onStart
in class ComponentBase
java.lang.Exception
protected void onStop() throws java.lang.Exception
onStop
in class ComponentBase
java.lang.Exception