Package org.netxms.client
Interface TextOutputListener
- All Known Implementing Classes:
TextOutputAdapter
public interface TextOutputListener
Listener for text output (provided by actions, scripts, etc.)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
messageReceived
(String text) Called when new message is received.void
Called on execution failurevoid
Called when all text output provided successfullyvoid
setStreamId
(long streamId) Called when output stream ID is known
-
Method Details
-
messageReceived
Called when new message is received.- Parameters:
text
- received message
-
setStreamId
void setStreamId(long streamId) Called when output stream ID is known- Parameters:
streamId
- ID of output stream (actual meaning depends on API call)
-
onSuccess
void onSuccess()Called when all text output provided successfully -
onFailure
Called on execution failure- Parameters:
exception
- cause of operation failure
-