|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openhealthexchange.openpixpdq.ihe.HL7Actor
public class HL7Actor
This class implements a number of useful methods shared by all IHE Actors.
| Constructor Summary | |
|---|---|
HL7Actor(com.misyshealthcare.connect.net.IConnectionDescription connection)
Creates a new HL7 Actor. |
|
HL7Actor(com.misyshealthcare.connect.net.IConnectionDescription connection,
IheAuditTrail auditTrail)
Creates a new HL7 Actor |
|
| Method Summary | |
|---|---|
IheAuditTrail |
getAuditTrail()
Gets the Audit Trail of this actor. |
com.misyshealthcare.connect.net.IConnectionDescription |
getConnection()
Gets the IConnectionDescription of this actor. |
IMesaLogger |
getMesaLogger()
Gets the MESA test logger. |
java.lang.String |
getName()
Returns a useful name for this Actor so that it can be put into debugging and logging messages. |
IMessageStoreLogger |
getStoreLogger()
Gets the Message Store logger. |
(package private) boolean |
hasMesaLogger()
Checks whether this actor has a MESA test logger. |
MessageStore |
initMessageStore(ca.uhn.hl7v2.model.Message message,
boolean isInbound)
Initiates a MessageStore instance, and log the
initial message, either in-bound message or out-bound message. |
void |
logHL7MessageError(org.apache.log4j.Logger log,
ca.uhn.hl7v2.model.Message message,
java.lang.String description)
Logs an HL7 message and description to the error log. |
void |
saveMessageStore(ca.uhn.hl7v2.model.Message message,
boolean isInbound,
MessageStore msgStore)
Persists the MessageStore log, and save the return message
which could be either in-bound or out-bound. |
void |
setMesaLogger(IMesaLogger logger)
Sets the custom logger for MESA test messages. |
void |
setStoreLogger(IMessageStoreLogger storeLogger)
Sets the logger to store message. |
void |
start()
Starts this actor. |
void |
stop()
Stops this actor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
HL7Actor(com.misyshealthcare.connect.net.IConnectionDescription connection)
public HL7Actor(com.misyshealthcare.connect.net.IConnectionDescription connection,
IheAuditTrail auditTrail)
| Method Detail |
|---|
public void start()
public void stop()
public java.lang.String getName()
public void logHL7MessageError(org.apache.log4j.Logger log,
ca.uhn.hl7v2.model.Message message,
java.lang.String description)
message - the HL7 messagedescription - a description of the problem with the messageboolean hasMesaLogger()
public IMesaLogger getMesaLogger()
public void setMesaLogger(IMesaLogger logger)
stream - The logger for MESA messagespublic IMessageStoreLogger getStoreLogger()
public void setStoreLogger(IMessageStoreLogger storeLogger)
storeLogger - the storeLogger to set
public MessageStore initMessageStore(ca.uhn.hl7v2.model.Message message,
boolean isInbound)
throws ca.uhn.hl7v2.HL7Exception
MessageStore instance, and log the
initial message, either in-bound message or out-bound message.
message - the initial message to logisInbound - whether the message is an in-bound message or out-bound message
MessageStore
ca.uhn.hl7v2.HL7Exception
public void saveMessageStore(ca.uhn.hl7v2.model.Message message,
boolean isInbound,
MessageStore msgStore)
throws ca.uhn.hl7v2.HL7Exception
MessageStore log, and save the return message
which could be either in-bound or out-bound.
message - the last message to save and logisInbound - whether the message is an in-bound message or out-bound messagemsgStore - the MessageStore instance to hold the log data
ca.uhn.hl7v2.HL7Exception - if the message could not be encodedpublic IheAuditTrail getAuditTrail()
public com.misyshealthcare.connect.net.IConnectionDescription getConnection()
IConnectionDescription of this actor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||