public class FilePrinter extends DataPrinter
component, frequency, property, reportRate, samp, widgetinfo| Constructor and Description |
|---|
FilePrinter(SamplingSystemGUI ssg)
Constructor, initialize the sampling counter and creates a BeanMemoryWidget for representation.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFilename()
Return the name of the file where the data is being dumped to, or the last file used.
|
java.util.ArrayList<DataItem> |
getSamples()
Since the samples are not stored in memory, nothing can be returned.
|
void |
postProcessing()
This method should be called after stopping the sampling.
|
void |
setComponent(java.lang.String component) |
void |
setComponentAvailable(boolean available,
java.lang.String reason)
Allows to handle whether a component is or isn't available to be sampled.
|
void |
setProperty(java.lang.String property) |
void |
startSample()
Starts the sampling, connecting to ACS Manager and the Sampling Manager.
|
protected void |
updateValue(DataItem item) |
finalize, getComponent, getFrequency, getProperty, getReportRate, getSamplingWidget, getSerializableProperty, getWidget, isComponentAvailable, isStopped, pauseSampling, setFrequency, setReportRate, stopSamplingcomponentExists, deleteSample, hashPrint, propertyExists, spinUp, startSample, stopSample, tearDownpublic FilePrinter(SamplingSystemGUI ssg)
ssg - Sampling System Gui reference.public java.util.ArrayList<DataItem> getSamples()
getSamples in class DataPrinterpublic java.lang.String getFilename()
public void startSample()
throws CouldntAccessComponentEx,
TypeNotSupportedEx,
CouldntAccessPropertyEx,
SamplingManagerException
startSample in class DataPrinterCouldntAccessComponentEx - Component wasn't available at the time.TypeNotSupportedEx - Sampling Manager specific exception. Some types are currently not supported in acssamp.CouldntAccessPropertyExSamplingManagerExceptionpublic void postProcessing()
postProcessing in class DataPrinterSamplerprotected void updateValue(DataItem item)
updateValue in class DataPrinterpublic void setComponent(java.lang.String component)
setComponent in class DataPrinterpublic void setProperty(java.lang.String property)
setProperty in class DataPrinterpublic void setComponentAvailable(boolean available,
java.lang.String reason)
DataPrintersetComponentAvailable in class DataPrinteravailable - True if the component is currently available.reason - A explanation of the cause why the component isn't available.