Package com.highdeal.admin.hci
Class SQLConnectionAdminOp
java.lang.Object
com.highdeal.admin.hci.SQLConnectionAdminOp
- All Implemented Interfaces:
MessageOperation,XMLMarshallable
This operation allows you to manually reconnect or disconnect an SQL connection of the targeted system instance(s).
It can only be used in an high availability (HA) system connected with multiple database instances.
- See Also:
Operation Result
SQLConnectionAdminResult Operation Failure Exceptions
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="sqlConnectionAdmin">
<xs:complexType>
<xs:attribute name="dbScope" type="DatabaseScopeType" default="core" />
<xs:attribute name="uri" type="xs:integer" />
<xs:attribute name="operation" type="sqlConnectionOperation" default="reconnect"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="DatabaseScopeType">
<xs:restriction base="xs:string">
<xs:enumeration value="core"/>
<xs:enumeration value="session"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="sqlConnectionOperation">
<xs:restriction base="xs:string">
<xs:enumeration value="reconnect"/>
<xs:enumeration value="disconnect"/>
<xs:enumeration value="status"/>
</xs:restriction>
</xs:simpleType>
Operation Availability
You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:
| Edition | Final Target Instances | |||||
| rater | updater | guider | bulkLoader | taxer | dispatcher | |
| charge | No | No | No | No | No | Yes |
Audit Domain
This operation is audited by the system as part of the audit domain: ADMINISTRATION. Consult the IT administrator.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThisenumerationlists the possible back-end database of SAP CC: Core Database, Session Database. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Retrieves the operation to perform on the selected SQL connection.Retrieves the scope of the back-end database.getName()Gets the XML name of the service operation.intgetUriId()Retrieves the index of the JDBC URI corresponding to the SQL connection to manage.booleanRetrieves whether the operation to perform on the selected SQL connection is a reconnection operation.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAdminOperation(String operation) Specifies the operation to perform on the selected SQL connection.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidSpecifies the scope of the back-end database.voidsetUri(int uri) Specifies the index of the JDBC URI corresponding to the SQL connection to manage.
-
Field Details
-
OPERATION_NAME
The XML name of this service operation: "sqlConnectionAdmin"- See Also:
-
RECONNECT
The operation for the reconnection of an SQL connection. -
DISCONNECT
The operation for the disconnection of an SQL connection. -
STATUS
-
-
Constructor Details
-
SQLConnectionAdminOp
public SQLConnectionAdminOp()Creates an SQL connection administration operation.
-
-
Method Details
-
getName
Description copied from interface:MessageOperationGets the XML name of the service operation. This name identifies the operation request in the HCI messages. It is used to marshal theJava objectrepresenting an HCI operation into an XML representation that can be exchanged via the HCI communication interface between your client application and the SAP CC system.Example
activateAllping
- Specified by:
getNamein interfaceMessageOperation- Returns:
- The technical name of the HCI operation
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-
isReconnectOperation
public boolean isReconnectOperation()Retrieves whether the operation to perform on the selected SQL connection is a reconnection operation.- Returns:
trueif the operation to perform on the selected SQL connection is a reconnection operation,falseotherwise
-
getAdminOperation
Retrieves the operation to perform on the selected SQL connection.The possible values are:
RECONNECT: reconnection of the selected SQL connectionDISCONNECT: disconnection of the selected SQL connection
- Returns:
- The operation to perform on the SQL connection
(
RECONNECTorDISCONNECT)
-
setAdminOperation
Specifies the operation to perform on the selected SQL connection.The possible values are:
RECONNECT: reconnection of the selected SQL connectionDISCONNECT: disconnection of the selected SQL connectionSTATUS: status of the selected SQL connection
- Parameters:
operation- The operation to perform on the SQL connection (RECONNECTorDISCONNECTorSTATUS)
-
getUriId
public int getUriId()Retrieves the index of the JDBC URI corresponding to the SQL connection to manage.- Returns:
- The index of the JDBC URI corresponding to the SQL connection to manage (possible values are numbers from 1 to 12)
-
setUri
public void setUri(int uri) Specifies the index of the JDBC URI corresponding to the SQL connection to manage.- Parameters:
uri- The index of the JDBC URI corresponding to the SQL connection to manage (allowed values are numbers from 1 to 12, but the value must not exceed the number of SQL connections configured in the system)
-
getDatabaseScope
Retrieves the scope of the back-end database.- Returns:
- The scope of the database
-
setDatabaseScope
Specifies the scope of the back-end database.- Parameters:
dbScope- The scope of the database
-