
public abstract class AbstractExecutableProces extends Object implements ProcesExecutable
ProcesExecutable.ProcessingImple| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
active |
protected static int |
OLD_LOG_LENGTH
maximale lengte waarna log wordt ingekort, moet een veelvoud van 10 zijn.
|
| Constructor and Description |
|---|
AbstractExecutableProces() |
| Modifier and Type | Method and Description |
|---|---|
protected Date |
getBestandsDatum(File f) |
protected String |
getBestandsNaam(File f)
bepaal bestandnaam.
|
static ProcesExecutable |
getProces(AutomatischProces config)
ProcesExecutable factory.
|
protected boolean |
isDuplicaatLaadProces(File input,
String soort)
bepaal of het bestand een duplicaat is op basis van de bestandsnaam en
soort.
|
boolean |
isRunning() |
void |
run() |
void |
stop()
probeert het lopende proces te stoppen.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, executeprotected static final int OLD_LOG_LENGTH
volatile boolean active
public static ProcesExecutable getProces(AutomatischProces config)
config - the type of ProcesExecutable to create.public boolean isRunning()
isRunning in interface ProcesExecutablepublic void stop()
stop in interface ProcesExecutableprotected boolean isDuplicaatLaadProces(File input, String soort)
loadFromFile(bericht)
→ stagingProxy.loadBr(InputStream stream, String type, String fileName,...)
→ snapshot reader van de input stream parsed het bericht in een BrkSnapshotXMLReader of BagMutatieXMLReader die bericht voor bericht uitgelezen kunnen worden
→ bepaal of laadproces bestaat stagingProxy.laadProcesExists(filenaam/datum)
→ laadproces in database maken stagingProxy.writeLaadProces(bestand_naam/bestand_datum/soort/gebied/opmerking/status/status_datum/contact_email)
→ uitlezen xml bericht als
→ !stagingProxy.berichtExists(laadprocesid/object_ref/datum/volgordenummer)
→ stagingProxy.writeBericht(b)
input - een input bestandsoort - het type registratie, bijvoorbeeld
"brk"true als het bestand een duplicaat betreft, anders
falseprotected String getBestandsNaam(File f)
f - het bestandisDuplicaatLaadProces(java.io.File, java.lang.String)Copyright © 2014–2020 B3Partners B.V.. All rights reserved.