|
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.merge.HL7.HL7SocketConfiguration
com.merge.HL7.HL7TransmitterConfiguration
public class HL7TransmitterConfiguration
Represents the configuration of a message transmitter service.
The fields of this class are initialized either from a configuration file, from a Properties object, from values directly passed to the constructors or from the toolkit properties.
Additionally to the base classes properties, the following properties are recognized:
keepOpen
retryTimes
retryInterval
ackLevel
connectTimeout
HL7Receiver| Field Summary | |
|---|---|
static int |
ACK
This field represents the minimal level of acknowledgment checking in which, following transmittal, no checking of the message received is done. |
int |
ackLevel
This field indicates the level of acknowledgment checking. |
static int |
CODE
This field represents a level of acknowledgment checking in which the Acknowledgment Code (MSA.1) indicates success according to whether the Accept Acknowledgment Type (MSH.15) was transmitted or not. |
int |
connectTimeout
This field contains the connection timeout value in seconds. |
static int |
CONTROL_ID
This field represents the highest level of acknowledgment checking in which the Message Control ID in the MSA segment is checked against the MSH segment of the transmitted message. |
boolean |
keepOpen
This field indicates whether to keep the connection alive after a message has been transmitted successfully. |
int |
retryInterval
This field specifies the time interval, in seconds, between retries of a failed transmission. |
int |
retryTimes
This field indicates how many times to re-try a failed transmission. |
| Fields inherited from class com.merge.HL7.HL7SocketConfiguration |
|---|
autoSenseInterval, autoSenseReceiveEndSequence, characterEncoding, formatter, hostName, portNumber, receiveEndSequence, receiveTimeout, sendPacingInterval, sendTimeout, transmitEndSequence, transmitStartSequence |
| Constructor Summary | |
|---|---|
HL7TransmitterConfiguration(java.util.Properties props)
Initializes a new transmitter configuration instance using values read from a Properties object. |
|
HL7TransmitterConfiguration(java.lang.String configFile)
Initializes a new transmitter configuration instance using values read from a configuration file. |
|
HL7TransmitterConfiguration(java.lang.String hostName,
int port)
Initializes a new transmitter configuration instance for sending messages to the receiver at the specified host name and port number. |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
Provides the string representation of this transmitter configuration containing the value of all fields. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ACK
public static final int CODE
public static final int CONTROL_ID
public final boolean keepOpen
public final int retryTimes
public final int retryInterval
public final int ackLevel
ACK, CODE and
CONTROL_ID. When initializing this value through a properties object the value
of the TRANSMIT_ACK_LEVEL setting should be "ACK", "CODE" or "CONTROL_ID".
The default acknowledgment checking is CONTROL_ID.
public final int connectTimeout
| Constructor Detail |
|---|
public HL7TransmitterConfiguration(java.lang.String hostName,
int port)
hostName - The host name or IP address of the receiver.port - the port number of the receiver.public HL7TransmitterConfiguration(java.lang.String configFile)
See the class description for a list of property names.
configFile - The path to the configuration file.public HL7TransmitterConfiguration(java.util.Properties props)
See the class description for a list of property names.
props - A Properties object containing receiver configuration values.| Method Detail |
|---|
public java.lang.String toString()
toString in class HL7SocketConfiguration
|
Copyright © 2009 Merge Healthcare Inc. All Rights Reserved. | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||