/AWS1/IF_HPP=>CREATEQUEUE()¶
About CreateQueue¶
Creates a job queue. You must associate 1 or more compute node groups with the queue. You can associate 1 compute node group with multiple queues.
Method Signature¶
METHODS /AWS1/IF_HPP~CREATEQUEUE
IMPORTING
!IV_CLUSTERIDENTIFIER TYPE /AWS1/HPPCLUSTERIDENTIFIER OPTIONAL
!IV_QUEUENAME TYPE /AWS1/HPPQUEUENAME OPTIONAL
!IT_COMPUTENODEGROUPCONFS TYPE /AWS1/CL_HPPCOMPUTENODEGRPCONF=>TT_COMPUTENODEGROUPCONFLIST OPTIONAL
!IO_SLURMCONFIGURATION TYPE REF TO /AWS1/CL_HPPQUEUESLURMCONFREQ OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/HPPSBCLIENTTOKEN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_HPPREQUESTTAGMAP_W=>TT_REQUESTTAGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_hppcreatequeuersp
RAISING
/AWS1/CX_HPPACCESSDENIEDEX
/AWS1/CX_HPPCONFLICTEXCEPTION
/AWS1/CX_HPPINTERNALSERVEREX
/AWS1/CX_HPPRESOURCENOTFOUNDEX
/AWS1/CX_HPPSERVICEQUOTAEXCDEX
/AWS1/CX_HPPTHROTTLINGEX
/AWS1/CX_HPPVALIDATIONEX
/AWS1/CX_HPPCLIENTEXC
/AWS1/CX_HPPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_clusteridentifier TYPE /AWS1/HPPCLUSTERIDENTIFIER /AWS1/HPPCLUSTERIDENTIFIER¶
The name or ID of the cluster for which to create a queue.
iv_queuename TYPE /AWS1/HPPQUEUENAME /AWS1/HPPQUEUENAME¶
A name to identify the queue.
Optional arguments:¶
it_computenodegroupconfs TYPE /AWS1/CL_HPPCOMPUTENODEGRPCONF=>TT_COMPUTENODEGROUPCONFLIST TT_COMPUTENODEGROUPCONFLIST¶
The list of compute node group configurations to associate with the queue. Queues assign jobs to associated compute node groups.
io_slurmconfiguration TYPE REF TO /AWS1/CL_HPPQUEUESLURMCONFREQ /AWS1/CL_HPPQUEUESLURMCONFREQ¶
Additional options related to the Slurm scheduler.
iv_clienttoken TYPE /AWS1/HPPSBCLIENTTOKEN /AWS1/HPPSBCLIENTTOKEN¶
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
it_tags TYPE /AWS1/CL_HPPREQUESTTAGMAP_W=>TT_REQUESTTAGMAP TT_REQUESTTAGMAP¶
1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_hppcreatequeuersp /AWS1/CL_HPPCREATEQUEUERSP¶
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->createqueue(
io_slurmconfiguration = new /aws1/cl_hppqueueslurmconfreq(
it_slurmcustomsettings = VALUE /aws1/cl_hppslurmcustomsetting=>tt_slurmcustomsettings(
(
new /aws1/cl_hppslurmcustomsetting(
iv_parametername = |string|
iv_parametervalue = |string|
)
)
)
)
it_computenodegroupconfs = VALUE /aws1/cl_hppcomputenodegrpconf=>tt_computenodegroupconflist(
( new /aws1/cl_hppcomputenodegrpconf( |string| ) )
)
it_tags = VALUE /aws1/cl_hpprequesttagmap_w=>tt_requesttagmap(
(
VALUE /aws1/cl_hpprequesttagmap_w=>ts_requesttagmap_maprow(
value = new /aws1/cl_hpprequesttagmap_w( |string| )
key = |string|
)
)
)
iv_clienttoken = |string|
iv_clusteridentifier = |string|
iv_queuename = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_queue = lo_result->get_queue( ).
IF lo_queue IS NOT INITIAL.
lv_queuename = lo_queue->get_name( ).
lv_string = lo_queue->get_id( ).
lv_string = lo_queue->get_arn( ).
lv_string = lo_queue->get_clusterid( ).
lv_timestamp = lo_queue->get_createdat( ).
lv_timestamp = lo_queue->get_modifiedat( ).
lv_queuestatus = lo_queue->get_status( ).
LOOP AT lo_queue->get_computenodegroupconfs( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_computenodegroupid( ).
ENDIF.
ENDLOOP.
lo_queueslurmconfiguration = lo_queue->get_slurmconfiguration( ).
IF lo_queueslurmconfiguration IS NOT INITIAL.
LOOP AT lo_queueslurmconfiguration->get_slurmcustomsettings( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_parametername( ).
lv_string = lo_row_3->get_parametervalue( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_queue->get_errorinfo( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_code( ).
lv_string = lo_row_5->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.