/AWS1/IF_KFC=>RESTARTCONNECTOR()¶
About RestartConnector¶
Restarts the specified connector. By default, this operation restarts the connector and all of its tasks. This operation is asynchronous and returns a connector operation ARN that you can pass to DescribeConnectorOperation to track the state of the restart.
Method Signature¶
METHODS /AWS1/IF_KFC~RESTARTCONNECTOR
IMPORTING
!IV_CONNECTORARN TYPE /AWS1/KFC__STRING OPTIONAL
!IV_ONLYFAILEDTASKS TYPE /AWS1/KFC__BOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_kfcrestartcnctrrsp
RAISING
/AWS1/CX_KFCBADREQUESTEX
/AWS1/CX_KFCFORBIDDENEXCEPTION
/AWS1/CX_KFCINTERNALSERVERER00
/AWS1/CX_KFCNOTFOUNDEXCEPTION
/AWS1/CX_KFCSERVICEUNAVAILEX
/AWS1/CX_KFCTOOMANYREQUESTSEX
/AWS1/CX_KFCUNAUTHORIZEDEX
/AWS1/CX_KFCCLIENTEXC
/AWS1/CX_KFCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_connectorarn TYPE /AWS1/KFC__STRING /AWS1/KFC__STRING¶
The Amazon Resource Name (ARN) of the connector that you want to restart.
Optional arguments:¶
iv_onlyfailedtasks TYPE /AWS1/KFC__BOOLEAN /AWS1/KFC__BOOLEAN¶
Specifies whether to restart only the connector's failed tasks. If
true, the operation restarts only the tasks that are currently in a failed state, and healthy tasks continue running. Iffalseor not specified, the operation restarts the connector and all of its tasks.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_kfcrestartcnctrrsp /AWS1/CL_KFCRESTARTCNCTRRSP¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->restartconnector(
iv_connectorarn = |string|
iv_onlyfailedtasks = ABAP_TRUE
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv___string = lo_result->get_connectorarn( ).
lv___string = lo_result->get_connectoroperationarn( ).
ENDIF.