net.sf.logdistiller
Class Publisher

java.lang.Object
  extended by net.sf.logdistiller.Publisher
Direct Known Subclasses:
DelegatePublisher, FeedPublisher, FilePublisher, MailPublisher

public abstract class Publisher
extends Object

Base class of report publishers, for both global and group reports.


Nested Class Summary
static class Publisher.PublishException
           
 
Constructor Summary
Publisher()
           
 
Method Summary
abstract  String getId()
          Get the publisher-id for this class.
abstract  void publish(LogDistillation.Group group, LogDistiller.Report report)
          Publish a group report.
abstract  void publish(LogDistillation logdistillation, LogDistiller.Report report)
          Publish a global report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Publisher

public Publisher()
Method Detail

getId

public abstract String getId()
Get the publisher-id for this class.

Returns:
a unique publisher id

publish

public abstract void publish(LogDistillation logdistillation,
                             LogDistiller.Report report)
                      throws IOException,
                             Publisher.PublishException
Publish a global report.

Parameters:
logdistillation - the logdistillation containing the results to publish
report - the report configuration
Throws:
IOException
Publisher.PublishException

publish

public abstract void publish(LogDistillation.Group group,
                             LogDistiller.Report report)
                      throws IOException,
                             Publisher.PublishException
Publish a group report.

Parameters:
group - the logdstillation group containing the results to publish
report - the report configuration
Throws:
IOException
Publisher.PublishException


Copyright © 2004-2009. All Rights Reserved.