File: esadmin.asn

package info (click to toggle)
yaz 4.2.30-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 15,120 kB
  • ctags: 13,367
  • sloc: xml: 119,746; ansic: 66,073; sh: 11,795; tcl: 2,125; makefile: 1,308; yacc: 371
file content (49 lines) | stat: -rw-r--r-- 1,619 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ESFormat-Admin
{Z39-50-extendedService Index-Data(81) AdminES (1)} DEFINITIONS ::=
  -- oid is 1.2.840.10003.9.81.1
BEGIN
IMPORTS DiagRec, InternationalString, Segment
FROM Z39-50-APDU-1995;
Admin ::= CHOICE{
    esRequest      [1] IMPLICIT SEQUENCE{
       toKeep         [1] OriginPartToKeep,
       notToKeep      [2] OriginPartNotToKeep},
    taskPackage    [2] IMPLICIT SEQUENCE{
                       originPart     [1]
                                   OriginPartToKeep,
                       targetPart     [2] TargetPart}}

OriginPartToKeep ::= SEQUENCE{
action              [1] CHOICE{
    reIndex         [1] NULL,
    truncate        [2] NULL,
    drop            [3] NULL,
    create          [4] NULL,
    import          [5] ImportParameters,
    refresh         [6] NULL,   -- Review internal representation of records against source files on disk to
		                -- see if they have been updated.
    commit          [7] NULL,
    shutdown        [8] NULL,
    start           [9] NULL},
databaseName           [2] IMPLICIT InternationalString OPTIONAL}

OriginPartNotToKeep ::= CHOICE{
records                 [1] Segment,
recordsWillFollow       [0] NULL}

TargetPart ::= SEQUENCE{
  updateStatus        [1] IMPLICIT INTEGER{
                          success (1),
                          partial (2),
                          failure (3)},
  globalDiagnostics   [2] IMPLICIT SEQUENCE OF
                              DiagRec OPTIONAL
               }
	       
-- Auxiliary definitions for Admin

ImportParameters ::= SEQUENCE{
 recordType          [1] IMPLICIT InternationalString
}

END