de.bsvrz.ars.ars.persistence
Class ContainerHdr

java.lang.Object
  extended by de.bsvrz.ars.ars.persistence.KeyValProps
      extended by de.bsvrz.ars.ars.persistence.ContainerHdr

public class ContainerHdr
extends KeyValProps

Klasse, die einen Container-Header repraesentiert. Ist eine Ansammlung vpn KeyValParam- Objekten, die die speziellen Eigenschaften eines Eintrags kapseln.

Author:
beck et al. projects GmbH, Alexander Schmidt

Field Summary
protected static List<KeyValParam> allParams
          Sortierte Liste aller ContainerHeader-Parameter.
static KeyValParam CHP_ANZ_DS
           
static KeyValParam CHP_ARC_TIME_MAX
           
static KeyValParam CHP_ARC_TIME_MIN
           
static KeyValParam CHP_ASP_ID
           
static KeyValParam CHP_ATG_ID
           
static KeyValParam CHP_CONT_ID
          Container-Header-Parameter.
static KeyValParam CHP_DATA_IDX_MAX
           
static KeyValParam CHP_DATA_IDX_MIN
           
static KeyValParam CHP_DATA_KIND
           
static KeyValParam CHP_DATA_TIME_MAX
           
static KeyValParam CHP_DATA_TIME_MIN
           
static KeyValParam CHP_DELETED
           
static KeyValParam CHP_LOESCHEN
          Das ist ein absoluter Zeitpunkt in Millisekunden.
static KeyValParam CHP_LOESCHUTZ
          Dies ist ein absoluter Zeitpunkt in Millisekunden.
static KeyValParam CHP_MEDIUM_ID
           
static KeyValParam CHP_OBJ_ID
           
static KeyValParam CHP_RESTORED
           
static KeyValParam CHP_SIM_VAR
           
static KeyValParam CHP_TO_SAVE
           
static KeyValParam CHP_UNUSED_TEST_PARAM
           
private static int CONT_UNCLOSED
          Wert von anzDS bei nicht abgeschlossenem Container.
private static int DATAKIND_STR_LEN
          Laenge einer Datensatzart bei textueller Repraesentation mit 'OA', 'ON', 'NA' oder 'NN'.
private static String DATAKIND_UNDEF
           
private static String[] DATAKINDS
          Textuelle Repraesentation der Datensatzarten.
static int HDR_TXT_LEN
          Laenge des Key/Value-Blocks in Byte.
static String MEDIUM_DESTROYED
          Medium-ID bei gesichertem Container mit dauerhaft nicht mehr verfuegbarem Medium.
static String MEDIUM_UNSAVED
          Medium-ID bei noch nicht auf externes Medium gesichertem Container.
private static int SV_STR_LEN
          Laenge der Simulationsvariante (0-999) in Dezimaldarstellung.
 
Fields inherited from class de.bsvrz.ars.ars.persistence.KeyValProps
BOOL_STR_LEN, BYTE4_MAXVAL, BYTE5_MAXVAL, BYTE6_MAXVAL, BYTE8_MAXVAL, BYTES4_STR_LEN, BYTES5_STR_LEN, BYTES6_STR_LEN, BYTES8_STR_LEN, CH_DELIM, FALSE, properties, TRUE
 
Constructor Summary
ContainerHdr()
           
 
Method Summary
static List<KeyValParam> getAllParams()
          Liefert eine sortierte Liste aller Container-Header-Parameter.
 ArchiveDataKind getValAsArchiveDataKind(KeyValParam chp)
           
 void readContainerHdr(byte[] buf, int length)
           
 void setVal(KeyValParam chp, ArchiveDataKind val)
           
 String writeContainerHdr()
           
 
Methods inherited from class de.bsvrz.ars.ars.persistence.KeyValProps
clear, createNumParam, createStringParam, createStringParam, getValAsBool, getValAsInt, getValAsLong, getValAsString, setDefaultVal, setVal, setVal, setVal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allParams

protected static final List<KeyValParam> allParams
Sortierte Liste aller ContainerHeader-Parameter.


SV_STR_LEN

private static final int SV_STR_LEN
Laenge der Simulationsvariante (0-999) in Dezimaldarstellung.

See Also:
Constant Field Values

DATAKIND_STR_LEN

private static final int DATAKIND_STR_LEN
Laenge einer Datensatzart bei textueller Repraesentation mit 'OA', 'ON', 'NA' oder 'NN'.

See Also:
Constant Field Values

MEDIUM_UNSAVED

public static final String MEDIUM_UNSAVED
Medium-ID bei noch nicht auf externes Medium gesichertem Container.

See Also:
Constant Field Values

MEDIUM_DESTROYED

public static final String MEDIUM_DESTROYED
Medium-ID bei gesichertem Container mit dauerhaft nicht mehr verfuegbarem Medium.

See Also:
Constant Field Values

DATAKIND_UNDEF

private static final String DATAKIND_UNDEF
See Also:
Constant Field Values

CONT_UNCLOSED

private static final int CONT_UNCLOSED
Wert von anzDS bei nicht abgeschlossenem Container.

See Also:
Constant Field Values

DATAKINDS

private static final String[] DATAKINDS
Textuelle Repraesentation der Datensatzarten. Die ersten vier Indexe entsprechen Util.getDataKindIndex(ArchiveDataKind).


CHP_CONT_ID

public static final KeyValParam CHP_CONT_ID
Container-Header-Parameter.


CHP_ANZ_DS

public static final KeyValParam CHP_ANZ_DS

CHP_OBJ_ID

public static final KeyValParam CHP_OBJ_ID

CHP_ATG_ID

public static final KeyValParam CHP_ATG_ID

CHP_ASP_ID

public static final KeyValParam CHP_ASP_ID

CHP_SIM_VAR

public static final KeyValParam CHP_SIM_VAR

CHP_DATA_KIND

public static final KeyValParam CHP_DATA_KIND

CHP_DATA_IDX_MIN

public static final KeyValParam CHP_DATA_IDX_MIN

CHP_DATA_IDX_MAX

public static final KeyValParam CHP_DATA_IDX_MAX

CHP_DATA_TIME_MIN

public static final KeyValParam CHP_DATA_TIME_MIN

CHP_DATA_TIME_MAX

public static final KeyValParam CHP_DATA_TIME_MAX

CHP_ARC_TIME_MIN

public static final KeyValParam CHP_ARC_TIME_MIN

CHP_ARC_TIME_MAX

public static final KeyValParam CHP_ARC_TIME_MAX

CHP_TO_SAVE

public static final KeyValParam CHP_TO_SAVE

CHP_MEDIUM_ID

public static final KeyValParam CHP_MEDIUM_ID

CHP_LOESCHEN

public static final KeyValParam CHP_LOESCHEN
Das ist ein absoluter Zeitpunkt in Millisekunden. Wenn der Container abgeschlossen wird, wird dieser Zeitpunkt auf die Archivzeit des juengsten Datensatzes + den parametrierten Vorhaltezeitraum gesetzt. Dieser Parameter wird in den TAnfArS "Loeschzeitpunkt" oder "Vorhaltezeitraum" genannt.


CHP_LOESCHUTZ

public static final KeyValParam CHP_LOESCHUTZ
Dies ist ein absoluter Zeitpunkt in Millisekunden. Bei jeder Anfrage oder Archivinfo-Anfrage wird CHP_NO_DEL_TIL = max(CHP_DELETE_AT + atg.archivEinstellung::LöschschutzverlängerungMax, max(jetzt + atg.archivEinstellung::Löschschutzverlängerung, CHP_NO_DEL_TIL)) gesetzt. Bei einer manuellen Loeschschutzverlaengerung um T_lsv (atg.archivAnfrageschnittstelle:Typ13) wird CHP_NO_DEL_TIL = max(CHP_DELETE_AT + atg.archivEinstellung::LöschschutzverlängerungMax, max(jetzt + T_lsv, CHP_NO_DEL_TIL)) gesetzt.


CHP_DELETED

public static final KeyValParam CHP_DELETED

CHP_RESTORED

public static final KeyValParam CHP_RESTORED

CHP_UNUSED_TEST_PARAM

public static final KeyValParam CHP_UNUSED_TEST_PARAM

HDR_TXT_LEN

public static final int HDR_TXT_LEN
Laenge des Key/Value-Blocks in Byte.

Constructor Detail

ContainerHdr

public ContainerHdr()
Method Detail

getValAsArchiveDataKind

public ArchiveDataKind getValAsArchiveDataKind(KeyValParam chp)
                                        throws PersistenceException
Throws:
PersistenceException

setVal

public void setVal(KeyValParam chp,
                   ArchiveDataKind val)
            throws PersistenceException
Throws:
PersistenceException

getAllParams

public static List<KeyValParam> getAllParams()
Liefert eine sortierte Liste aller Container-Header-Parameter.

Returns:
List

writeContainerHdr

public String writeContainerHdr()

readContainerHdr

public void readContainerHdr(byte[] buf,
                             int length)
                      throws IOException,
                             PersistenceException
Throws:
IOException
PersistenceException