Class FilePublisher
java.lang.Object
org.eso.ias.plugin.publisher.PublisherBase
org.eso.ias.plugin.publisher.BufferedPublisherBase
org.eso.ias.plugin.publisher.impl.BufferedFilePublisherBase
org.eso.ias.plugin.publisher.impl.FilePublisher
- All Implemented Interfaces:
MonitorPointSender
A publisher that dumps messages in the passed writer.
This implementation allows to investigate the sending of monitor points to the core of the IAS by looking at the file where they are all dumped.
- Author:
- acaproni
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eso.ias.plugin.publisher.MonitorPointSender
MonitorPointSender.SenderStats -
Field Summary
Fields inherited from class org.eso.ias.plugin.publisher.PublisherBase
defaultBufferSize, defaultThrottlingTime, iso8601dateFormat, MAX_BUFFER_SIZE_PROPNAME, maxBufferSize, monitoredSystemId, monitorPoints, monitorPointsSent, numOfErrorsSending, pluginId, publishedMessages, THROTTLING_PROPNAME, throttlingTime -
Constructor Summary
ConstructorsConstructorDescriptionFilePublisher(String pluginId, String monitoredSystemId, ScheduledExecutorService executorSvc, BufferedWriter outWriter) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected StringBuild and return a string representing the dataMethods inherited from class org.eso.ias.plugin.publisher.impl.BufferedFilePublisherBase
publish, shutdown, startMethods inherited from class org.eso.ias.plugin.publisher.BufferedPublisherBase
publish, sendMonitoredPointsToIas, setUpMethods inherited from class org.eso.ias.plugin.publisher.PublisherBase
getStats, isClosed, isStopped, mergeProperties, offer, startSending, stopSending, tearDownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eso.ias.plugin.publisher.MonitorPointSender
getStats, isClosed, isStopped, offer, startSending, stopSending, tearDown
-
Constructor Details
-
FilePublisher
public FilePublisher(String pluginId, String monitoredSystemId, ScheduledExecutorService executorSvc, BufferedWriter outWriter) Constructor- Parameters:
pluginId- The identifier of the pluginmonitoredSystemId- The identifier of the system monitored by the pluginexecutorSvc- The executor serviceoutWriter- The output writer
-
-
Method Details
-
buildString
Build and return a string representing the data- Specified by:
buildStringin classBufferedFilePublisherBase- Parameters:
data- The data to be sent to core of the IAS- Returns:
- a string representing the data
- Throws:
PublisherException- In case of error building the string- See Also:
-