SAP ABAP Class CL_DB2_FAILOVER_PARSER_CON_INI (DB2 Failover Configuration: Parser for old Config.ini)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-DB-DB2 (Application Component) DB2 for z/OS
⤷
STU2 (Package) CCMS for DB2 for OS/390

⤷

⤷

Meta Relationship - Using
# | Relationship type | Using | Short Description | Created on |
---|---|---|---|---|
1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_DB2_FAILOVER_PARSEABLE | Implementations are able to parse failover config file | 20111213 |
Properties
Class | CL_DB2_FAILOVER_PARSER_CON_INI | |
Short Description | DB2 Failover Configuration: Parser for old Config.ini | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | STU2 | CCMS for DB2 for OS/390 |
Created | 20111213 | SAP |
Last change | 20140121 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
Class CL_DB2_FAILOVER_PARSER_CON_INI has no forward declaration.
Interfaces
# | Interface | Abstract | Final | Description | Created on |
---|---|---|---|---|---|
1 | IF_DB2_FAILOVER_PARSEABLE | Implementations are able to parse failover config file | 20111213 |
Friends
Class CL_DB2_FAILOVER_PARSER_CON_INI has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Instance attribute | Private | Type reference (TYPE) | I | file format this parser is responsible for | 20120123 | ||
2 | ![]() |
Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Signals if logical hostnames are enabled | 20120420 | |
3 | ![]() |
Instance attribute | Private | See coding | table of sections in connect.ini file | 20111214 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Public | Constructor | CONSTRUCTOR | 20111213 |
2 | ![]() |
Instance method | Private | Method | This methods puts the parsed data into the internal structur | 20111214 |
3 | ![]() |
Instance method | Private | Method | extracts all detectable affinity lists out of the conini fil | 20120201 |
4 | ![]() |
Instance method | Private | Method | this method extracts appservers from the conini file | 20120201 |
5 | ![]() |
Instance method | Private | Method | this method extracts the 'COMMON' section and handles params | 20120201 |
6 | ![]() |
Instance method | Private | Method | 20120201 | |
7 | ![]() |
Instance method | Private | Method | find a server by its name in a given failover structure | 20111215 |
8 | ![]() |
Instance method | Private | Method | extracts a affinity list from a section | 20111216 |
9 | ![]() |
Instance method | Private | Method | creates an server structure out of given section information | 20111216 |
10 | ![]() |
Instance method | Private | Method | get sections of the same type | 20111216 |
11 | ![]() |
Instance method | Private | Method | this method extracs sections out of the connect_ini file. | 20111214 |
Events
Class CL_DB2_FAILOVER_PARSER_CON_INI has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | KEY_VALUE_LINE | Private | See coding | key value line for property table of sections | 20111214 | BEGIN OF key_value_line,
key TYPE string,
value TYPE db2_t_string,
END OF key_value_line
|
|
2 | SECTION_TABLE_LINE | Private | See coding | 20111214 | BEGIN OF section_table_line,
name TYPE string,
properties TYPE STANDARD TABLE OF key_value_line WITH KEY key,
END OF section_table_line
|
||
3 | SECTION_TB | Private | See coding | 20111216 | section_tb TYPE STANDARD TABLE OF section_table_line WITH KEY name
|
Method Signatures
Method CONSTRUCTOR Signature
Method CONSTRUCTOR on class CL_DB2_FAILOVER_PARSER_CON_INI has no parameter.
Method CONSTRUCTOR on class CL_DB2_FAILOVER_PARSER_CON_INI has no exception.
Method CONVERT_TO_INTERNAL_STRUCTURE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
DATABASES | Call by reference | Type reference (TYPE) | DB2_FAILOVER_T_DB | holds database sections in failover configuration | 20111214 | ||
2 | ![]() |
FAILOVER_DATA | Call by reference | Type reference (TYPE) | DB2_FAILOVER_T_DSN_ELEMENT | Table of DSN_Elements, at the moment only one element in it | 20111214 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
DB2: root class regarding exceptions | 20120215 |
Method EXTRACT_AFFINITY_LISTS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CURRENT_DSN | Call by reference | Object reference (TYPE REF TO) | DB2_FAILOVER_DSN_ELEMENT | DB2: Failover Configuration: Structure for an DSN element | 20120201 | ||
2 | ![]() |
DB_REF | Call by reference | Object reference (TYPE REF TO) | DB2_FAILOVER_DB | DB2: Failover Configuration: Structure for different DBs | 20120201 | ||
3 | ![]() |
TAB_GROUP_NAMES | Value transfer | Type reference (TYPE) | DB2_T_STRING | Table of Strings | 20120201 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
DB2: root class regarding exceptions | 20120215 |
Method EXTRACT_APP_SERVERS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CURRENT_DSN | Call by reference | Object reference (TYPE REF TO) | DB2_FAILOVER_DSN_ELEMENT | DB2: Failover Configuration: Structure for an DSN element | 20120201 | ||
2 | ![]() |
DB_REF | Call by reference | Object reference (TYPE REF TO) | DB2_FAILOVER_DB | DB2: Failover Configuration: Structure for different DBs | 20120201 | ||
3 | ![]() |
TAB_GROUP_NAMES | Call by reference | Type reference (TYPE) | DB2_T_STRING | Table of Strings | 20120201 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
DB2: root class regarding exceptions | 20120215 |
Method EXTRACT_COMMON_SECTION Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
DB_REF | Call by reference | Object reference (TYPE REF TO) | DB2_FAILOVER_DB | DB2: Failover Configuration: Structure for different DBs | 20120201 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
DB2: root class regarding exceptions | 20120215 |
Method EXTRACT_DB_CONNECTIONS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CON_INI_DDF_NAME | Value transfer | Type reference (TYPE) | DB2DDFNAME | Used for Saving content of Special Register Current Server | 20130712 | ||
2 | ![]() |
DB_REF | Call by reference | Object reference (TYPE REF TO) | DB2_FAILOVER_DB | DB2: Failover Configuration: Structure for different DBs | 20120201 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
DB2: root class regarding exceptions | 20120215 |
Method FIND_HOST Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CURRENT_DSN | Call by reference | Object reference (TYPE REF TO) | DB2_FAILOVER_DSN_ELEMENT | Table of DSN_Elements, at the moment only one element in it | 20111216 | ||
2 | ![]() |
HOST | Value transfer | Object reference (TYPE REF TO) | DB2_FAILOVER_SERVER | DB2: Failover Configuration: Structure for server adresses | 20111215 | ||
3 | ![]() |
NAME | Call by reference | Type reference (TYPE) | STRING | 20111215 |
Method FIND_HOST on class CL_DB2_FAILOVER_PARSER_CON_INI has no exception.
Method GET_AFF_LIST_FROM_SECTION Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
AFF_LIST_REF | Value transfer | Object reference (TYPE REF TO) | DB2_FAILOVER_T_SERVER_ORDER | DB2: Failover Configuration: a server order is affinity lst | 20121008 | ||
2 | ![]() |
CURRENT_DSN | Call by reference | Object reference (TYPE REF TO) | DB2_FAILOVER_DSN_ELEMENT | Table of DSN_Elements, at the moment only one element in it | 20111216 | ||
3 | ![]() |
DB_REF | Call by reference | Object reference (TYPE REF TO) | DB2_FAILOVER_DB | DB2: Failover Configuration: Structure for different DBs | 20121008 | ||
4 | ![]() |
SECTION | Call by reference | Type reference (TYPE) | SECTION_TABLE_LINE | section containing an affinity list | 20111216 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
DB2: root class regarding exceptions | 20120215 |
Method GET_HOST_FROM_SECTION Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
HOST | Value transfer | Type reference (TYPE) | DB2_FAILOVER_SERVER | DB2: Failover Configuration: Structure for server adresses | 20111216 | ||
2 | ![]() |
SECTION | Call by reference | Type reference (TYPE) | SECTION_TABLE_LINE | 20111216 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
DB2: root class regarding exceptions | 20120215 |
Method GET_SPECIFIC_SECTIONS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
SECTIONS_RAW | Value transfer | Type reference (TYPE) | SECTION_TB | sections containing host informations | 20111216 | ||
2 | ![]() |
SECTION_TYPE | Call by reference | Type reference (TYPE) | STRING | description of the section type | 20111216 |
Method GET_SPECIFIC_SECTIONS on class CL_DB2_FAILOVER_PARSER_CON_INI has no exception.
Method READ_SECTIONS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CONTENT | Call by reference | Type reference (TYPE) | DBA_STRING_TAB | table with file content | 20111214 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
DB2: root class regarding exceptions | 20120214 |
History
Last changed by/on | SAP | 20140121 |
SAP Release Created in | 740 |