public class ProtocolOutputStream
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROTOCOL_FILENAME_EXTENSION
Dateiendung von gespeicherten Protokollen.
|
static java.lang.String |
PROTOCOL_FRAGMENT_EXTENSION
Dateiendung von unvollständigen Protokollen.
|
static java.lang.String |
PROTOCOL_NOT_READ_YET
Dateiendung von nicht abgerufenen Protokollen.
|
Constructor and Description |
---|
ProtocolOutputStream(long protocolId,
java.lang.String path,
ProcessingParameter pp,
int quota)
Legt legt eine Datei an, in der ein Protokoll abgelegt wird.
|
Modifier and Type | Method and Description |
---|---|
void |
abortWriting()
Schliesst den Stream und löscht das Protokoll vom Datenträger.
|
void |
appendData(ProtocolResult data)
Schreibt einen Protokolldatensatz in einem Stream.
|
void |
close()
Schließen des Streams.
|
void |
closeClientQuit()
Schliessen des Streams.
|
public static final java.lang.String PROTOCOL_FILENAME_EXTENSION
public static final java.lang.String PROTOCOL_FRAGMENT_EXTENSION
public static final java.lang.String PROTOCOL_NOT_READ_YET
public ProtocolOutputStream(long protocolId, java.lang.String path, ProcessingParameter pp, int quota) throws NoncriticalException
protocolId
- protocolId für die Datei, in die geschrieben werden soll.path
- Verzeichnis, in dem das Protokoll abgelegt werden soll. Muss auf File.separator
enden.pp
- Auftragsparameter.quota
- Minimaler verbleibender Speicherplatz auf dem Datenträgern (in MB)NoncriticalException
- Die Datei kann nicht angelegt werden; Fehler beim Schreiben der Protokollinformationen.public void appendData(ProtocolResult data) throws NoncriticalException
data
- DatensatzNoncriticalException
- Fehlermeldungpublic void close() throws NoncriticalException
PROTOCOL_FILENAME_EXTENSION
falls alle Ergebnisdatensätze geschrieben wurden.NoncriticalException
- Fehler.public void closeClientQuit() throws NoncriticalException
PROTOCOL_NOT_READ_YET
NoncriticalException
- Fehler.public void abortWriting() throws NoncriticalException
NoncriticalException
- Datei konnte nicht gelöscht werden.