|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.ihe.vhl7tools.util.Vhl7Daemon
public class Vhl7Daemon
Field Summary | |
---|---|
protected java.util.Vector |
allincomingFolder
|
protected java.util.Properties |
config
|
java.lang.String |
incomingFolder
|
private static org.apache.log4j.Logger |
logger
|
java.lang.String |
profileFolder
|
java.lang.String |
resultFolder
|
java.lang.String |
root
|
protected boolean |
running
|
protected java.lang.Thread |
t
|
java.lang.String |
tableFolder
|
java.lang.String |
targetFolder
|
private java.lang.String |
whatTodo
|
Constructor Summary | |
---|---|
Vhl7Daemon()
|
Method Summary | |
---|---|
void |
configuredDaemon()
|
java.lang.String |
createValidatedHl7Command(java.io.File infile)
|
void |
executeFile(java.io.File infile)
Define the process to do with |
void |
executeshell(java.lang.String cmd)
Execute on the shell |
private static java.lang.String |
findVersion(java.io.File transactionFile,
java.lang.String transaction)
Read the transaction_standard.txt to find the HL7 message version in order to charge the table necesary for the validation |
void |
loadProperties(java.lang.String configuregfilePath)
|
static void |
main(java.lang.String[] args)
|
void |
process_file(java.io.File infile)
To run the client send the file from the incomingFolder to the targetFolder after process |
void |
run()
To run the client send the file from the incomingFolder to the targetFolder after process |
boolean |
startClient()
|
boolean |
stopClient()
|
void |
visitAllDirs(java.io.File dir)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger logger
public java.lang.String incomingFolder
public java.lang.String targetFolder
public java.lang.String root
public java.lang.String resultFolder
public java.lang.String profileFolder
public java.lang.String tableFolder
private java.lang.String whatTodo
protected java.lang.Thread t
protected boolean running
protected java.util.Properties config
protected java.util.Vector allincomingFolder
Constructor Detail |
---|
public Vhl7Daemon()
Method Detail |
---|
public boolean startClient()
public void visitAllDirs(java.io.File dir)
public void run()
run
in interface java.lang.Runnable
org.nule.integrateclient.file.FileIn#run()
public void process_file(java.io.File infile)
org.nule.integrateclient.file.FileIn#run()
private static java.lang.String findVersion(java.io.File transactionFile, java.lang.String transaction) throws java.io.IOException
messageFile
- :
is the path to transaction_standard.txt which contains the
correspondance between transaction and standard usedtransaction
- :
is the transaction involved
java.io.IOException
public java.lang.String createValidatedHl7Command(java.io.File infile)
public void executeshell(java.lang.String cmd)
cmd:
- the command specifies by the client and define on the configpublic void executeFile(java.io.File infile)
infile:File
- inpublic boolean stopClient()
public void loadProperties(java.lang.String configuregfilePath)
public void configuredDaemon()
public static void main(java.lang.String[] args)
args
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |