public abstract class AbstractMonitoringDataExporter extends Object
Constructor and Description |
---|
AbstractMonitoringDataExporter(PipeMonitoringService pipeMonitoringService,
SingleTaskFarmMonitoringService taskFarmMonitoringService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
addCSVLineToWriter(Writer writer,
String... args)
Add a CSV line to the specified
Writer . |
void |
extractToFile(File file)
Saves the monitored data to a specified
File . |
void |
extractToFile(String filepath)
Creates a file at the specified path and saves the monitored data to it.
|
String |
extractToString()
Returns the formatted monitored data as a
String . |
protected abstract void |
extractToWriter(Writer writer)
Writes the formatted monitored data to a
Writer . |
PipeMonitoringService |
getPipeMonitoringService() |
SingleTaskFarmMonitoringService |
getTaskFarmMonitoringService() |
public AbstractMonitoringDataExporter(PipeMonitoringService pipeMonitoringService, SingleTaskFarmMonitoringService taskFarmMonitoringService)
pipeMonitoringService
- monitoring service concerning pipestaskFarmMonitoringService
- monitoring service concerning a task farmprotected abstract void extractToWriter(Writer writer)
Writer
.writer
- writer to be written topublic void extractToFile(File file) throws IOException
File
.file
- specified fileIOException
public void extractToFile(String filepath) throws IOException
filepath
- specified file pathIOException
public String extractToString()
String
.protected static void addCSVLineToWriter(Writer writer, String... args) throws IOException
Writer
. The specified arguments are separated by commas.writer
- writer to be written toargs
- values of the lineIOException
public PipeMonitoringService getPipeMonitoringService()
public SingleTaskFarmMonitoringService getTaskFarmMonitoringService()
Copyright © 2015–2020. All rights reserved.