public class BastExportApp extends BaseConsoleProgram
Zur Verwendung siehe printVerwendung()
Achtung: vor Aufruf der run-Methode muss
LogosClientDavConnection
initialisiert sein.
BaseConsoleProgram.ShutDownThread
Modifier and Type | Field and Description |
---|---|
(package private) int |
_BastFormat |
(package private) Calendar |
_CalEnd |
(package private) Calendar |
_CalStart |
(package private) File |
_Dir |
(package private) List<String> |
_LzzPidList |
private static SimpleDateFormat |
DATE_FORMAT |
private static Logger |
logger |
Constructor and Description |
---|
BastExportApp(File dir,
int iBastFormat,
Date von,
Date bis,
List<String> lzzPidList)
erzeugt die Application
|
Modifier and Type | Method and Description |
---|---|
(package private) static int |
getBASTFormatAsInt(String sBAStFormat) |
static void |
main(String[] args) |
static void |
printVerwendung()
Verwendung wird ausgegeben.
|
void |
run()
wird nach der Erzeugung der Verbindung zum Datenverteiler aufgerufen.
|
addShutdownHook, start
private static Logger logger
private static SimpleDateFormat DATE_FORMAT
Calendar _CalStart
Calendar _CalEnd
File _Dir
int _BastFormat
public BastExportApp(File dir, int iBastFormat, Date von, Date bis, List<String> lzzPidList)
dir
- Verzeichnis in das die Dateien gespeichert werden sollen.iBastFormat
- einer der Werte aus BastExporter
von
- Datebis
- DatelzzPidList
- List mit den Pids der auszugebenden Zählstellen, wenn null
werden alle ausgegeben.public void run()
BaseConsoleProgram
run
in class BaseConsoleProgram
public static void main(String[] args)
static int getBASTFormatAsInt(String sBAStFormat)
public static void printVerwendung()
neben den Parametern für den Datenverteiler sind anzugeben: -von="TT.MM.JJJJ SS:MM\" (wenn nicht angeben, erfolgt Abfrage) -bis="TT.MM.JJJJ SS:MM\" (wenn nicht angeben, erfolgt Abfrage) -bastformat=V2004|SA|MV|MVTest -dir=directoryZumSpeichern -lzz=lzzPid (mehrfache Angabe möglich, wird der Parameter nicht angegeben, werden die Daten aller Zählstellen ausgegeben).
Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.