public interface DataManagerInterface
Modifier and Type | Method and Description |
---|---|
void |
addProtocolRequest(de.bsvrz.dav.daf.main.ResultData[] resultData)
Übergeben einer Protokoll-bezogenen Anfrage
|
void |
addScriptRequest(de.bsvrz.dav.daf.main.ResultData[] resultData)
Übergeben einer Skript-bezogenen Anfrage
|
void |
addScriptRequest(ScriptRequest request)
Übergeben einer Skript-bezogenen Anfrage
|
ProtocolOutputStream |
createProtocolStream(long protocolId,
ProcessingParameter pp)
Erzeugt einen Ausgabestream für ein Protokoll.
|
void |
deleteProtocol(long protocolId)
Löscht ein gespeichertes Protokoll.
|
java.lang.String |
getAbsolutFileNameMeta(de.bsvrz.dav.daf.main.config.SystemObject script)
Liefert Pfad und Dateiname der Metainformation
|
java.lang.String |
getAbsolutFileNameSource(de.bsvrz.dav.daf.main.config.SystemObject script)
Liefert Pfad und Dateiname des Skriptquelltextes
|
java.lang.String |
getFileNameMeta(de.bsvrz.dav.daf.main.config.SystemObject script)
Liefert den Dateinamen der Metainformationen.
|
java.lang.String |
getFileNameSource(de.bsvrz.dav.daf.main.config.SystemObject script)
Liefert den Dateinamen des Skriptquelltexts.
|
de.bsvrz.sys.funclib.losb.datk.AtlMeta |
getMetaInformation(de.bsvrz.dav.daf.main.config.SystemObject script)
Liefert die zum Skript gehörenden Metainformationen.
|
java.lang.String |
getPath()
Gibt den Pfad der Protokoll- und Skriptdateien zurück.
|
ProtocolInputStream |
getSavedProtocol(long protocolId)
Liefert ein Objekt zum Zugriff auf ein gespeichertes Protokoll zurück.
|
ProtocolInputStream |
getUnreadProtocol(long protocolId)
Liefert ein Objekt zum Zugriff auf ein gespeichertes Protokoll zurück.
|
DataManagerRequest[] |
getUpcomingOps(DataManagerRequest[] dmr)
Liefert eine Liste mit anstehenden Aufgaben.
|
boolean |
isUnique(long protocolId)
Überprüft ob es zu der gegebenen Protokoll-Id bereits ein gespeichertes Protokoll gibt.
|
ProcessingInformation |
process(ProcessingParameter parameter)
Startet die Interpretation eines Skriptes.
|
ProcessingInformation |
process(java.lang.String source)
Startet die Interpretation eines Skriptes.
|
void |
shutdown()
Fährt den Data-Manager herunter.
|
void addScriptRequest(de.bsvrz.dav.daf.main.ResultData[] resultData)
resultData
- Objekt mit den Anfrageparameternvoid addScriptRequest(ScriptRequest request)
request
- Anfragevoid addProtocolRequest(de.bsvrz.dav.daf.main.ResultData[] resultData)
resultData
- Objekt mit den AnfrageparameternProcessingInformation process(ProcessingParameter parameter) throws de.bsvrz.sys.funclib.losb.exceptions.FailureException
parameter
- Auftragsparameterde.bsvrz.sys.funclib.losb.exceptions.FailureException
- Fehler beim Interpretieren des Skripts.ProcessingInformation process(java.lang.String source) throws CriticalParserException
source
- Source des SkriptobjektsCriticalParserException
- Fehlermeldungboolean isUnique(long protocolId)
protocolId
- Protokoll-Idjava.lang.String getPath()
File.separator
java.lang.String getFileNameMeta(de.bsvrz.dav.daf.main.config.SystemObject script)
script
- Skriptobjektjava.lang.String getAbsolutFileNameMeta(de.bsvrz.dav.daf.main.config.SystemObject script)
script
- Skriptobjektjava.lang.String getFileNameSource(de.bsvrz.dav.daf.main.config.SystemObject script)
script
- Skriptobjektjava.lang.String getAbsolutFileNameSource(de.bsvrz.dav.daf.main.config.SystemObject script)
script
- Skriptobjektde.bsvrz.sys.funclib.losb.datk.AtlMeta getMetaInformation(de.bsvrz.dav.daf.main.config.SystemObject script) throws de.bsvrz.sys.funclib.losb.exceptions.FailureException
script
- Skriptobjekt.null
falls keine Metainformation existiert.de.bsvrz.sys.funclib.losb.exceptions.FailureException
- Korrupte Metainformation.void shutdown()
void deleteProtocol(long protocolId) throws NoncriticalException
protocolId
- ProtocolIdNoncriticalException
- Fehler beim Löschen.ProtocolInputStream getSavedProtocol(long protocolId) throws de.bsvrz.sys.funclib.losb.exceptions.FailureException
protocolId
- Id des Protokolls, das gelesen werden soll.de.bsvrz.sys.funclib.losb.exceptions.FailureException
- Fehler.ProtocolInputStream getUnreadProtocol(long protocolId) throws de.bsvrz.sys.funclib.losb.exceptions.FailureException
protocolId
- Id des Protokolls, das gelesen werden soll.de.bsvrz.sys.funclib.losb.exceptions.FailureException
- Fehler.ProtocolOutputStream createProtocolStream(long protocolId, ProcessingParameter pp) throws NoncriticalException
protocolId
- Protokoll-Id.pp
- Auftragsparameter.NoncriticalException
- Die Datei kann nicht angelegt werden; Fehler beim Schreiben der Protokollinformationen.DataManagerRequest[] getUpcomingOps(DataManagerRequest[] dmr)
dmr
- Array, in den das Ergebnis kopiert wird. Ist der Array zu klein, so wird ein neuer Array angelegt.