org.wdssii.ltgingest
Class TelnetToLdm
java.lang.Object
org.wdssii.core.WDSSIIProgram
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TelnetToLdm
public TelnetToLdm()
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)