org.rhq.core.domain.sync
Class ExportWrapper

java.lang.Object
  extended by org.rhq.core.domain.sync.ExportWrapper

public class ExportWrapper
extends Object

This is a class used to report both the export file itself and the notification or error messages coming from the individual subsystem exporters while creating that file.

Note that the map of the messages is filled in lazily while the stream is being read and the list of messages is not complete until you read the whole stream of the export file.


Constructor Summary
ExportWrapper(Map<String,ExporterMessages> messagesPerExporter, InputStream exportFile)
           
 
Method Summary
 InputStream getExportFile()
           
 Map<String,ExporterMessages> getMessagesPerExporter()
          The list of messages generated by the exporters while creating the export file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportWrapper

public ExportWrapper(Map<String,ExporterMessages> messagesPerExporter,
                     InputStream exportFile)
Parameters:
messagesPerExporter -
exportFile -
Method Detail

getMessagesPerExporter

public Map<String,ExporterMessages> getMessagesPerExporter()
The list of messages generated by the exporters while creating the export file. Note that this map is being written to while the export file stream is being read and therefore is not complete until the end of that stream is reached.

Returns:
the messagesPerExporter

getExportFile

public InputStream getExportFile()
Returns:
the exportFile


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.