org.wdssii.ltgingest
Class TelnetToLdm

java.lang.Object
  extended by org.wdssii.core.WDSSIIProgram
      extended by org.wdssii.ltgingest.TelnetToLdm

public class TelnetToLdm
extends WDSSIIProgram

Accesses ASCII text data available via telnet to a port on local machine, inserts the data into a LDM queue for rebroadcast.

Author:
lakshman

Field Summary
private  String dateFormatInLines
           
private  int everyNseconds
           
private  Date lastWrittenTime
           
private  String ldmInsertCommand
           
private  List<String> lines
           
private static org.apache.commons.logging.Log log
           
private  String machine
           
private  String outputDir
           
private  int port
           
 
Constructor Summary
TelnetToLdm()
           
 
Method Summary
 void execute()
          Start doing main task.
 String getDateFormatInLines()
           
 int getEveryNseconds()
           
 String getLdmInsertCommand()
           
 String getMachine()
           
 String getOutputDir()
           
 int getPort()
           
static void main(String[] args)
           
 void setDateFormatInLines(String dateFormatInLines)
           
 void setEveryNseconds(int everyNseconds)
           
 void setLdmInsertCommand(String ldmInsertCommand)
           
 void setMachine(String machine)
           
 void setOutputDir(String outputDir)
           
 void setPort(int port)
           
private  void updateData(String line)
           
private  void writeData()
           
 
Methods inherited from class org.wdssii.core.WDSSIIProgram
getPropertiesFromCommandLine, getSubTypeForElevation, isRealTime, printUsage, setRealTime, setup, setup, setupAndExecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log

machine

private String machine

port

private int port

everyNseconds

private int everyNseconds

ldmInsertCommand

private String ldmInsertCommand

dateFormatInLines

private String dateFormatInLines

outputDir

private String outputDir

lines

private List<String> lines

lastWrittenTime

private Date lastWrittenTime
Constructor Detail

TelnetToLdm

public TelnetToLdm()
Method Detail

getMachine

public String getMachine()

setMachine

public void setMachine(String machine)

getPort

public int getPort()

setPort

public void setPort(int port)

getEveryNseconds

public int getEveryNseconds()

setEveryNseconds

public void setEveryNseconds(int everyNseconds)

getLdmInsertCommand

public String getLdmInsertCommand()

setLdmInsertCommand

public void setLdmInsertCommand(String ldmInsertCommand)

getDateFormatInLines

public String getDateFormatInLines()

setDateFormatInLines

public void setDateFormatInLines(String dateFormatInLines)

getOutputDir

public String getOutputDir()
Overrides:
getOutputDir in class WDSSIIProgram

setOutputDir

public void setOutputDir(String outputDir)
Overrides:
setOutputDir in class WDSSIIProgram

execute

public void execute()
Description copied from class: WDSSIIProgram
Start doing main task.

Specified by:
execute in class WDSSIIProgram

updateData

private void updateData(String line)

writeData

private void writeData()

main

public static void main(String[] args)