org.openhealthexchange.openpixpdq.ihe.audit
Interface IMessageTransmitter

All Known Implementing Classes:
BsdMessenger, Log4JMessenger, RSyslogMessenger

interface IMessageTransmitter

Interface for sending messages. This should only be used by the IheAuditTrail base class. It should configure one for each of the sudit reporitories it is configured for. Then when a actor instance sends the appropriate message, the base class will call each of the message transmitters in turn.

Version:
1.0 - Nov 10, 2005
Author:
Josh Flachsbart

Nested Class Summary
static class IMessageTransmitter.Severity
          Severity levels used in both RFC 3164 (BSD Syslog) and RFC 3195 (Rsyslog)
 
Method Summary
 AuditTrailDescription getAuditTrailDescription()
          Get the description of this connection.
 void sendMessage(java.lang.String message)
          Send a message using this transmitter using the default facility and level.
 void sendMessage(java.lang.String message, IMessageTransmitter.Severity severity)
          Send a message using this transmitter using the given level.
 void setDefaultSeverity(IMessageTransmitter.Severity severity)
          Set the default level for the transmitter.
 

Method Detail

sendMessage

void sendMessage(java.lang.String message)
Send a message using this transmitter using the default facility and level.


sendMessage

void sendMessage(java.lang.String message,
                 IMessageTransmitter.Severity severity)
Send a message using this transmitter using the given level.


setDefaultSeverity

void setDefaultSeverity(IMessageTransmitter.Severity severity)
Set the default level for the transmitter.


getAuditTrailDescription

AuditTrailDescription getAuditTrailDescription()
Get the description of this connection.