idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
4,400
public static base_responses update ( nitro_service client , tmsessionaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { tmsessionaction updateresources [ ] = new tmsessionaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ...
Use this API to update tmsessionaction resources .
327
11
4,401
public static tmsessionaction [ ] get ( nitro_service service ) throws Exception { tmsessionaction obj = new tmsessionaction ( ) ; tmsessionaction [ ] response = ( tmsessionaction [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the tmsessionaction resources that are configured on netscaler .
62
20
4,402
public static tmsessionaction get ( nitro_service service , String name ) throws Exception { tmsessionaction obj = new tmsessionaction ( ) ; obj . set_name ( name ) ; tmsessionaction response = ( tmsessionaction ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch tmsessionaction resource of given name .
68
14
4,403
public static base_response add ( nitro_service client , lbwlm resource ) throws Exception { lbwlm addresource = new lbwlm ( ) ; addresource . wlmname = resource . wlmname ; addresource . ipaddress = resource . ipaddress ; addresource . port = resource . port ; addresource . lbuid = resource . lbuid ; addresource . kat...
Use this API to add lbwlm .
109
9
4,404
public static base_responses add ( nitro_service client , lbwlm resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { lbwlm addresources [ ] = new lbwlm [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new ...
Use this API to add lbwlm resources .
207
10
4,405
public static base_response delete ( nitro_service client , String wlmname ) throws Exception { lbwlm deleteresource = new lbwlm ( ) ; deleteresource . wlmname = wlmname ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete lbwlm of given name .
60
12
4,406
public static base_responses delete ( nitro_service client , String wlmname [ ] ) throws Exception { base_responses result = null ; if ( wlmname != null && wlmname . length > 0 ) { lbwlm deleteresources [ ] = new lbwlm [ wlmname . length ] ; for ( int i = 0 ; i < wlmname . length ; i ++ ) { deleteresources [ i ] = new ...
Use this API to delete lbwlm resources of given names .
146
13
4,407
public static base_response update ( nitro_service client , lbwlm resource ) throws Exception { lbwlm updateresource = new lbwlm ( ) ; updateresource . wlmname = resource . wlmname ; updateresource . katimeout = resource . katimeout ; return updateresource . update_resource ( client ) ; }
Use this API to update lbwlm .
76
9
4,408
public static base_responses update ( nitro_service client , lbwlm resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { lbwlm updateresources [ ] = new lbwlm [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i...
Use this API to update lbwlm resources .
156
10
4,409
public static base_response unset ( nitro_service client , lbwlm resource , String [ ] args ) throws Exception { lbwlm unsetresource = new lbwlm ( ) ; unsetresource . wlmname = resource . wlmname ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of lbwlm resource . Properties that need to be unset are specified in args array .
73
27
4,410
public static base_responses unset ( nitro_service client , String wlmname [ ] , String args [ ] ) throws Exception { base_responses result = null ; if ( wlmname != null && wlmname . length > 0 ) { lbwlm unsetresources [ ] = new lbwlm [ wlmname . length ] ; for ( int i = 0 ; i < wlmname . length ; i ++ ) { unsetresourc...
Use this API to unset the properties of lbwlm resources . Properties that need to be unset are specified in args array .
159
27
4,411
public static lbwlm [ ] get ( nitro_service service , options option ) throws Exception { lbwlm obj = new lbwlm ( ) ; lbwlm [ ] response = ( lbwlm [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the lbwlm resources that are configured on netscaler .
62
19
4,412
public static lbwlm get ( nitro_service service , String wlmname ) throws Exception { lbwlm obj = new lbwlm ( ) ; obj . set_wlmname ( wlmname ) ; lbwlm response = ( lbwlm ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch lbwlm resource of given name .
71
13
4,413
public static lbwlm [ ] get ( nitro_service service , String wlmname [ ] ) throws Exception { if ( wlmname != null && wlmname . length > 0 ) { lbwlm response [ ] = new lbwlm [ wlmname . length ] ; lbwlm obj [ ] = new lbwlm [ wlmname . length ] ; for ( int i = 0 ; i < wlmname . length ; i ++ ) { obj [ i ] = new lbwlm ( ...
Use this API to fetch lbwlm resources of given names .
168
13
4,414
public static tmglobal_tmtrafficpolicy_binding [ ] get ( nitro_service service ) throws Exception { tmglobal_tmtrafficpolicy_binding obj = new tmglobal_tmtrafficpolicy_binding ( ) ; tmglobal_tmtrafficpolicy_binding response [ ] = ( tmglobal_tmtrafficpolicy_binding [ ] ) obj . get_resources ( service ) ; return response...
Use this API to fetch a tmglobal_tmtrafficpolicy_binding resources .
92
18
4,415
public static base_response add ( nitro_service client , vpnvserver resource ) throws Exception { vpnvserver addresource = new vpnvserver ( ) ; addresource . name = resource . name ; addresource . servicetype = resource . servicetype ; addresource . ipv46 = resource . ipv46 ; addresource . range = resource . range ; ad...
Use this API to add vpnvserver .
333
10
4,416
public static base_responses add ( nitro_service client , vpnvserver resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vpnvserver addresources [ ] = new vpnvserver [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresourc...
Use this API to add vpnvserver resources .
534
11
4,417
public static base_response update ( nitro_service client , vpnvserver resource ) throws Exception { vpnvserver updateresource = new vpnvserver ( ) ; updateresource . name = resource . name ; updateresource . ipv46 = resource . ipv46 ; updateresource . authentication = resource . authentication ; updateresource . doubl...
Use this API to update vpnvserver .
293
10
4,418
public static base_responses update ( nitro_service client , vpnvserver resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vpnvserver updateresources [ ] = new vpnvserver [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { upda...
Use this API to update vpnvserver resources .
470
11
4,419
public static vpnvserver [ ] get ( nitro_service service ) throws Exception { vpnvserver obj = new vpnvserver ( ) ; vpnvserver [ ] response = ( vpnvserver [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the vpnvserver resources that are configured on netscaler .
62
20
4,420
public static vpnvserver get ( nitro_service service , String name ) throws Exception { vpnvserver obj = new vpnvserver ( ) ; obj . set_name ( name ) ; vpnvserver response = ( vpnvserver ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch vpnvserver resource of given name .
68
14
4,421
public static rewritepolicy_rewritepolicylabel_binding [ ] get ( nitro_service service , String name ) throws Exception { rewritepolicy_rewritepolicylabel_binding obj = new rewritepolicy_rewritepolicylabel_binding ( ) ; obj . set_name ( name ) ; rewritepolicy_rewritepolicylabel_binding response [ ] = ( rewritepolicy_re...
Use this API to fetch rewritepolicy_rewritepolicylabel_binding resources of given name .
119
23
4,422
private static String delimit ( String s , char c ) { int i = s . indexOf ( c ) ; while ( i != - 1 ) { if ( i == 0 || s . charAt ( i - 1 ) != ' ' ) { s = s . substring ( 0 , i ) + ' ' + s . substring ( i ) ; i = s . indexOf ( c , i + 2 ) ; } else { i = s . indexOf ( c , i + 1 ) ; } } return s ; }
This quotes a character with a backslash but doesn t do it if the character is already preceded by a backslash .
112
26
4,423
private Object getNext ( String txt , String originalText ) { if ( invertible ) { String str = prevWordAfter . toString ( ) ; prevWordAfter . setLength ( 0 ) ; CoreLabel word = ( CoreLabel ) tokenFactory . makeToken ( txt , yychar , yylength ( ) ) ; word . set ( OriginalTextAnnotation . class , originalText ) ; word . ...
Make the next token .
147
5
4,424
public static vpntrafficpolicy_binding get ( nitro_service service , String name ) throws Exception { vpntrafficpolicy_binding obj = new vpntrafficpolicy_binding ( ) ; obj . set_name ( name ) ; vpntrafficpolicy_binding response = ( vpntrafficpolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch vpntrafficpolicy_binding resource of given name .
88
18
4,425
public static vpnvserver_vpnclientlessaccesspolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_vpnclientlessaccesspolicy_binding obj = new vpnvserver_vpnclientlessaccesspolicy_binding ( ) ; obj . set_name ( name ) ; vpnvserver_vpnclientlessaccesspolicy_binding response [ ] = ( ...
Use this API to fetch vpnvserver_vpnclientlessaccesspolicy_binding resources of given name .
119
23
4,426
public static authenticationsamlpolicy_binding get ( nitro_service service , String name ) throws Exception { authenticationsamlpolicy_binding obj = new authenticationsamlpolicy_binding ( ) ; obj . set_name ( name ) ; authenticationsamlpolicy_binding response = ( authenticationsamlpolicy_binding ) obj . get_resource ( ...
Use this API to fetch authenticationsamlpolicy_binding resource of given name .
78
16
4,427
public static base_response unset ( nitro_service client , autoscalepolicy resource , String [ ] args ) throws Exception { autoscalepolicy unsetresource = new autoscalepolicy ( ) ; unsetresource . name = resource . name ; unsetresource . rule = resource . rule ; unsetresource . action = resource . action ; unsetresourc...
Use this API to unset the properties of autoscalepolicy resource . Properties that need to be unset are specified in args array .
112
28
4,428
public static base_responses unset ( nitro_service client , autoscalepolicy resources [ ] , String [ ] args ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { autoscalepolicy unsetresources [ ] = new autoscalepolicy [ resources . length ] ; for ( int i = 0 ; i < res...
Use this API to unset the properties of autoscalepolicy resources . Properties that need to be unset are specified in args array .
212
28
4,429
public static autoscalepolicy [ ] get ( nitro_service service ) throws Exception { autoscalepolicy obj = new autoscalepolicy ( ) ; autoscalepolicy [ ] response = ( autoscalepolicy [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the autoscalepolicy resources that are configured on netscaler .
62
20
4,430
public static autoscalepolicy get ( nitro_service service , String name ) throws Exception { autoscalepolicy obj = new autoscalepolicy ( ) ; obj . set_name ( name ) ; autoscalepolicy response = ( autoscalepolicy ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch autoscalepolicy resource of given name .
68
14
4,431
public static aaauser_vpnintranetapplication_binding [ ] get ( nitro_service service , String username ) throws Exception { aaauser_vpnintranetapplication_binding obj = new aaauser_vpnintranetapplication_binding ( ) ; obj . set_username ( username ) ; aaauser_vpnintranetapplication_binding response [ ] = ( aaauser_vpni...
Use this API to fetch aaauser_vpnintranetapplication_binding resources of given name .
114
22
4,432
public static long count ( nitro_service service , String username ) throws Exception { aaauser_vpnintranetapplication_binding obj = new aaauser_vpnintranetapplication_binding ( ) ; obj . set_username ( username ) ; options option = new options ( ) ; option . set_count ( true ) ; aaauser_vpnintranetapplication_binding ...
Use this API to count aaauser_vpnintranetapplication_binding resources configued on NetScaler .
137
25
4,433
public static base_responses add ( nitro_service client , responderpolicylabel resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { responderpolicylabel addresources [ ] = new responderpolicylabel [ resources . length ] ; for ( int i = 0 ; i < resources ...
Use this API to add responderpolicylabel resources .
162
13
4,434
public static responderpolicylabel [ ] get ( nitro_service service , options option ) throws Exception { responderpolicylabel obj = new responderpolicylabel ( ) ; responderpolicylabel [ ] response = ( responderpolicylabel [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the responderpolicylabel resources that are configured on netscaler .
77
22
4,435
public static responderpolicylabel get ( nitro_service service , String labelname ) throws Exception { responderpolicylabel obj = new responderpolicylabel ( ) ; obj . set_labelname ( labelname ) ; responderpolicylabel response = ( responderpolicylabel ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch responderpolicylabel resource of given name .
81
16
4,436
public static channel_interface_binding [ ] get ( nitro_service service , String id ) throws Exception { channel_interface_binding obj = new channel_interface_binding ( ) ; obj . set_id ( id ) ; channel_interface_binding response [ ] = ( channel_interface_binding [ ] ) obj . get_resources ( service ) ; return response ...
Use this API to fetch channel_interface_binding resources of given name .
79
15
4,437
private static void getDep ( TreeGraphNode t , List < TypedDependency > basicDep , Filter < TypedDependency > f ) { if ( t . isPhrasal ( ) ) { // don't do leaves of POS tags (chris changed this from numChildren > 0 in 2010) Map < Class < ? extends CoreAnnotation > , Set < TreeGraphNode > > depMap = getAllDependents ( t...
Look through the tree t and adds to the List basicDep dependencies which aren t in it but which satisfy the filter f .
324
25
4,438
public static List < GrammaticalRelation > getListGrammaticalRelation ( TreeGraphNode gov , TreeGraphNode dep ) { List < GrammaticalRelation > list = new ArrayList < GrammaticalRelation > ( ) ; TreeGraphNode govH = gov . highestNodeWithSameHead ( ) ; TreeGraphNode depH = dep . highestNodeWithSameHead ( ) ; /*System.out...
Get a list of GrammaticalRelation between gov and dep . Useful for getting extra dependencies in which two nodes can be linked by multiple arcs .
506
30
4,439
public List < String > getDependencyPath ( int nodeIndex , int rootIndex ) { TreeGraphNode node = getNodeByIndex ( nodeIndex ) ; TreeGraphNode rootTree = getNodeByIndex ( rootIndex ) ; return getDependencyPath ( node , rootTree ) ; }
Returns the dependency path as a list of String from node to root it is assumed that that root is an ancestor of node
63
24
4,440
private static List < String > getDependencyPath ( TreeGraphNode node , TreeGraphNode root ) { List < String > path = new ArrayList < String > ( ) ; while ( ! node . equals ( root ) ) { TreeGraphNode gov = getGovernor ( node ) ; // System.out.println("Governor for \"" + node.value() + "\": \"" + gov.value() + "\""); Li...
used only by unused method above .
208
7
4,441
private static Map < Class < ? extends CoreAnnotation > , Set < TreeGraphNode > > getAllDependents ( TreeGraphNode node ) { Map < Class < ? extends CoreAnnotation > , Set < TreeGraphNode > > newMap = Generics . newHashMap ( ) ; for ( Class < ? > o : node . label . keySet ( ) ) { try { // The line below will exception u...
Returns all the dependencies of a certain node .
226
9
4,442
public static Collection < TypedDependency > getRoots ( Collection < TypedDependency > list ) { Collection < TypedDependency > roots = new ArrayList < TypedDependency > ( ) ; // need to see if more than one governor is not listed somewhere as a dependent // first take all the deps Collection < TreeGraphNode > deps = ne...
Return a list of TypedDependencies which are not dependent on any node from the list .
231
20
4,443
public static void printDependencies ( GrammaticalStructure gs , Collection < TypedDependency > deps , Tree tree , boolean conllx , boolean extraSep ) { System . out . println ( dependenciesToString ( gs , deps , tree , conllx , extraSep ) ) ; }
Print typed dependencies in either the Stanford dependency representation or in the conllx format .
67
17
4,444
public static List < GrammaticalStructure > readCoNLLXGrammaticStructureCollection ( String fileName , Map < String , GrammaticalRelation > shortNameToGRel , GrammaticalStructureFromDependenciesFactory factory ) throws IOException { LineNumberReader reader = new LineNumberReader ( new FileReader ( fileName ) ) ; List <...
Read in a file containing a CoNLL - X dependency treebank and return a corresponding list of GrammaticalStructures .
334
25
4,445
public static auditnslogpolicy_vpnglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { auditnslogpolicy_vpnglobal_binding obj = new auditnslogpolicy_vpnglobal_binding ( ) ; obj . set_name ( name ) ; auditnslogpolicy_vpnglobal_binding response [ ] = ( auditnslogpolicy_vpnglobal_binding [ ] )...
Use this API to fetch auditnslogpolicy_vpnglobal_binding resources of given name .
109
21
4,446
public static protocolicmp_stats get ( nitro_service service ) throws Exception { protocolicmp_stats obj = new protocolicmp_stats ( ) ; protocolicmp_stats [ ] response = ( protocolicmp_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch the statistics of all protocolicmp_stats resources that are configured on netscaler .
73
24
4,447
public static base_response add ( nitro_service client , ip6tunnel resource ) throws Exception { ip6tunnel addresource = new ip6tunnel ( ) ; addresource . name = resource . name ; addresource . remote = resource . remote ; addresource . local = resource . local ; return addresource . add_resource ( client ) ; }
Use this API to add ip6tunnel .
76
10
4,448
public static base_responses add ( nitro_service client , ip6tunnel resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { ip6tunnel addresources [ ] = new ip6tunnel [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources ...
Use this API to add ip6tunnel resources .
163
11
4,449
public static ip6tunnel [ ] get ( nitro_service service ) throws Exception { ip6tunnel obj = new ip6tunnel ( ) ; ip6tunnel [ ] response = ( ip6tunnel [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the ip6tunnel resources that are configured on netscaler .
62
20
4,450
public static ip6tunnel [ ] get ( nitro_service service , ip6tunnel_args args ) throws Exception { ip6tunnel obj = new ip6tunnel ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; ip6tunnel [ ] response = ( ip6tunnel [ ] ) obj . get_resources ( service ...
Use this API to fetch all the ip6tunnel resources that are configured on netscaler . This uses ip6tunnel_args which is a way to provide additional arguments while fetching the resources .
105
42
4,451
public static ip6tunnel get ( nitro_service service , String name ) throws Exception { ip6tunnel obj = new ip6tunnel ( ) ; obj . set_name ( name ) ; ip6tunnel response = ( ip6tunnel ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch ip6tunnel resource of given name .
68
14
4,452
public static base_response add ( nitro_service client , transformaction resource ) throws Exception { transformaction addresource = new transformaction ( ) ; addresource . name = resource . name ; addresource . profilename = resource . profilename ; addresource . priority = resource . priority ; addresource . state = ...
Use this API to add transformaction .
83
8
4,453
public static base_responses add ( nitro_service client , transformaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { transformaction addresources [ ] = new transformaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++...
Use this API to add transformaction resources .
174
9
4,454
public static base_response update ( nitro_service client , transformaction resource ) throws Exception { transformaction updateresource = new transformaction ( ) ; updateresource . name = resource . name ; updateresource . priority = resource . priority ; updateresource . requrlfrom = resource . requrlfrom ; updateres...
Use this API to update transformaction .
167
8
4,455
public static base_responses update ( nitro_service client , transformaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { transformaction updateresources [ ] = new transformaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ...
Use this API to update transformaction resources .
294
9
4,456
public static transformaction [ ] get ( nitro_service service ) throws Exception { transformaction obj = new transformaction ( ) ; transformaction [ ] response = ( transformaction [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the transformaction resources that are configured on netscaler .
52
18
4,457
public static transformaction get ( nitro_service service , String name ) throws Exception { transformaction obj = new transformaction ( ) ; obj . set_name ( name ) ; transformaction response = ( transformaction ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch transformaction resource of given name .
58
12
4,458
public int readBit ( ) throws IOException { if ( bitCount == 0 ) { bitBuffer = read ( ) ; if ( bitBuffer == - 1 ) { throw new IOException ( "no more bits" ) ; } } int value = ( bitBuffer >> bitCount ) & 1 ; bitCount ++ ; if ( bitCount > 7 ) { bitCount = 0 ; } return value ; }
Read bit .
83
3
4,459
public byte [ ] readRemainingBytes ( ) throws IOException { if ( this . available ( ) > 0 ) { byte [ ] b = new byte [ this . available ( ) ] ; if ( read ( b ) >= 0 ) { return b ; } else { throw new IOException ( "returned negative number of remaining bytes" ) ; } } else { throw new IOException ( "no more bytes" ) ; } }
Read remaining bytes .
90
4
4,460
public int readEliasGammaCodingPositiveInteger ( ) throws IOException { int value ; int counter = 0 ; int bit = readBit ( ) ; while ( bit == 0 ) { counter ++ ; bit = readBit ( ) ; } value = 1 ; for ( int i = 0 ; i < counter ; i ++ ) { value = ( 2 * value ) + readBit ( ) ; } return value ; }
Read elias gamma coding positive integer .
89
8
4,461
public static base_response add ( nitro_service client , vrid resource ) throws Exception { vrid addresource = new vrid ( ) ; addresource . id = resource . id ; addresource . priority = resource . priority ; addresource . preemption = resource . preemption ; addresource . sharing = resource . sharing ; addresource . tr...
Use this API to add vrid .
90
8
4,462
public static base_responses add ( nitro_service client , vrid resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vrid addresources [ ] = new vrid [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new vri...
Use this API to add vrid resources .
187
9
4,463
public static base_response delete ( nitro_service client , vrid resource ) throws Exception { vrid deleteresource = new vrid ( ) ; deleteresource . id = resource . id ; deleteresource . all = resource . all ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete vrid .
61
8
4,464
public static base_response update ( nitro_service client , vrid resource ) throws Exception { vrid updateresource = new vrid ( ) ; updateresource . id = resource . id ; updateresource . priority = resource . priority ; updateresource . preemption = resource . preemption ; updateresource . sharing = resource . sharing ...
Use this API to update vrid .
90
8
4,465
public static base_responses update ( nitro_service client , vrid resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vrid updateresources [ ] = new vrid [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] ...
Use this API to update vrid resources .
187
9
4,466
public static vrid [ ] get ( nitro_service service ) throws Exception { vrid obj = new vrid ( ) ; vrid [ ] response = ( vrid [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the vrid resources that are configured on netscaler .
52
18
4,467
public static vrid get ( nitro_service service , Long id ) throws Exception { vrid obj = new vrid ( ) ; obj . set_id ( id ) ; vrid response = ( vrid ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch vrid resource of given name .
58
12
4,468
public static base_response add ( nitro_service client , nshttpprofile resource ) throws Exception { nshttpprofile addresource = new nshttpprofile ( ) ; addresource . name = resource . name ; addresource . dropinvalreqs = resource . dropinvalreqs ; addresource . markhttp09inval = resource . markhttp09inval ; addresourc...
Use this API to add nshttpprofile .
324
12
4,469
public static base_response update ( nitro_service client , nshttpprofile resource ) throws Exception { nshttpprofile updateresource = new nshttpprofile ( ) ; updateresource . name = resource . name ; updateresource . dropinvalreqs = resource . dropinvalreqs ; updateresource . markhttp09inval = resource . markhttp09inv...
Use this API to update nshttpprofile .
324
12
4,470
public static base_responses update ( nitro_service client , nshttpprofile resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nshttpprofile updateresources [ ] = new nshttpprofile [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++...
Use this API to update nshttpprofile resources .
509
13
4,471
public static nshttpprofile [ ] get ( nitro_service service ) throws Exception { nshttpprofile obj = new nshttpprofile ( ) ; nshttpprofile [ ] response = ( nshttpprofile [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the nshttpprofile resources that are configured on netscaler .
72
22
4,472
public static nshttpprofile get ( nitro_service service , String name ) throws Exception { nshttpprofile obj = new nshttpprofile ( ) ; obj . set_name ( name ) ; nshttpprofile response = ( nshttpprofile ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch nshttpprofile resource of given name .
78
16
4,473
public static base_response update ( nitro_service client , vpathparam resource ) throws Exception { vpathparam updateresource = new vpathparam ( ) ; updateresource . srcip = resource . srcip ; return updateresource . update_resource ( client ) ; }
Use this API to update vpathparam .
57
9
4,474
public static base_response unset ( nitro_service client , vpathparam resource , String [ ] args ) throws Exception { vpathparam unsetresource = new vpathparam ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of vpathparam resource . Properties that need to be unset are specified in args array .
57
27
4,475
public static vpathparam get ( nitro_service service ) throws Exception { vpathparam obj = new vpathparam ( ) ; vpathparam [ ] response = ( vpathparam [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the vpathparam resources that are configured on netscaler .
58
19
4,476
protected void setUp ( int initialCapacity , double minLoadFactor , double maxLoadFactor ) { int capacity = initialCapacity ; super . setUp ( capacity , minLoadFactor , maxLoadFactor ) ; capacity = nextPrime ( capacity ) ; if ( capacity == 0 ) capacity = 1 ; // open addressing needs at least one FREE slot at any time. ...
Initializes the receiver .
269
5
4,477
public static base_response add ( nitro_service client , appfwfieldtype resource ) throws Exception { appfwfieldtype addresource = new appfwfieldtype ( ) ; addresource . name = resource . name ; addresource . regex = resource . regex ; addresource . priority = resource . priority ; addresource . comment = resource . co...
Use this API to add appfwfieldtype .
85
10
4,478
public static base_responses add ( nitro_service client , appfwfieldtype resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { appfwfieldtype addresources [ ] = new appfwfieldtype [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) ...
Use this API to add appfwfieldtype resources .
178
11
4,479
public static base_response update ( nitro_service client , appfwfieldtype resource ) throws Exception { appfwfieldtype updateresource = new appfwfieldtype ( ) ; updateresource . name = resource . name ; updateresource . regex = resource . regex ; updateresource . priority = resource . priority ; updateresource . comme...
Use this API to update appfwfieldtype .
85
10
4,480
public static base_responses update ( nitro_service client , appfwfieldtype resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { appfwfieldtype updateresources [ ] = new appfwfieldtype [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i...
Use this API to update appfwfieldtype resources .
178
11
4,481
public static appfwfieldtype [ ] get ( nitro_service service ) throws Exception { appfwfieldtype obj = new appfwfieldtype ( ) ; appfwfieldtype [ ] response = ( appfwfieldtype [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the appfwfieldtype resources that are configured on netscaler .
62
20
4,482
public static appfwfieldtype get ( nitro_service service , String name ) throws Exception { appfwfieldtype obj = new appfwfieldtype ( ) ; obj . set_name ( name ) ; appfwfieldtype response = ( appfwfieldtype ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch appfwfieldtype resource of given name .
68
14
4,483
public static vpnvserver_stats [ ] get ( nitro_service service ) throws Exception { vpnvserver_stats obj = new vpnvserver_stats ( ) ; vpnvserver_stats [ ] response = ( vpnvserver_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all vpnvserver_stats resources that are configured on netscaler .
72
24
4,484
public static vpnvserver_stats get ( nitro_service service , String name ) throws Exception { vpnvserver_stats obj = new vpnvserver_stats ( ) ; obj . set_name ( name ) ; vpnvserver_stats response = ( vpnvserver_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of vpnvserver_stats resource of given name .
78
18
4,485
public static hanode_binding get ( nitro_service service , Long id ) throws Exception { hanode_binding obj = new hanode_binding ( ) ; obj . set_id ( id ) ; hanode_binding response = ( hanode_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch hanode_binding resource of given name .
73
15
4,486
public void setLimits ( int softLimit , int hardLimit ) { if ( ( softLimit > 0 && hardLimit > softLimit ) || ( softLimit == 0 && hardLimit == 0 ) ) { this . softLimit = softLimit ; this . hardLimit = hardLimit ; garbageCollect ( ) ; } else { throw new IllegalArgumentException ( ) ; } }
Sets the limits .
78
5
4,487
@ Override public Tree evaluate ( Tree t , TregexMatcher m ) { newNodeNames = new HashMap < String , Tree > ( ) ; coindexer . setLastIndex ( t ) ; for ( TsurgeonPattern child : children ) { t = child . evaluate ( t , m ) ; if ( t == null ) { return null ; } } return t ; }
returns null if one of the surgeries eliminates the tree entirely . The operated - on tree is not to be trusted in this instance .
81
27
4,488
private void generatePermutations ( ArrayList < HashMap < String , String [ ] > [ ] > result , int index , HashMap < String , String [ ] > [ ] [ ] subResult ) { int localIndex = index ; HashMap < String , String [ ] > [ ] value = subResult [ localIndex ] ; if ( localIndex == 0 ) { for ( int i = 0 ; i < value . length ;...
Generate permutations .
296
5
4,489
private void generatePermutationsQueryVariables ( ArrayList < HashMap < String , String [ ] > > result , Set < String > keys , HashMap < String , String [ ] > queryVariables ) { if ( keys != null && ! keys . isEmpty ( ) ) { Set < String > newKeys = new HashSet <> ( ) ; Iterator < String > it = keys . iterator ( ) ; Str...
Generate permutations query variables .
485
7
4,490
private SimpleOrderedMap < Object > createPosition ( ComponentPosition position , Boolean encode ) throws IOException { // System.out.println("Create stats position " + position.dataType + " " // + position.statsType + " " + position.statsItems + " --- " + encode); SimpleOrderedMap < Object > mtasPositionResponse = new...
Creates the position .
232
5
4,491
private SimpleOrderedMap < Object > createToken ( ComponentToken token , Boolean encode ) throws IOException { // System.out.println("Create stats position " + position.dataType + " " // + position.statsType + " " + position.statsItems + " --- " + encode); SimpleOrderedMap < Object > mtasTokenResponse = new SimpleOrder...
Creates the token .
232
5
4,492
@ SuppressWarnings ( "unchecked" ) private SimpleOrderedMap < Object > createSpan ( ComponentSpan span , Boolean encode ) throws IOException { // System.out.println("Create stats span " + span.dataType + " " // + span.statsType + " " + span.statsItems + " --- " + encode); SimpleOrderedMap < Object > mtasSpanResponse = ...
Creates the span .
477
5
4,493
public final String shardKey ( int stage ) { if ( shardStageKeys == null ) { return null ; } else { shardKey = shardStageKeys . get ( stage ) ; if ( shardKey == null ) { shardKey = UUID . randomUUID ( ) . toString ( ) ; shardStageKeys . put ( stage , shardKey ) ; } return shardKey ; } }
Shard key .
90
4
4,494
public final void setFinished ( ) { if ( ! finished ) { totalTime = ( ( Long ) ( System . currentTimeMillis ( ) - startTime ) ) . intValue ( ) ; shardInfoUpdated = false ; finished = true ; rsp = null ; } }
Sets the finished .
60
5
4,495
public void setKey ( String key ) throws IOException { if ( this . key != null ) { throw new IOException ( "key already set" ) ; } else { this . key = Objects . requireNonNull ( key , "key required" ) ; } }
Sets the key .
56
5
4,496
public boolean checkResponseForException ( ) { if ( ! finished && rsp != null ) { Exception e ; if ( ( e = rsp . getException ( ) ) != null ) { setError ( e . getMessage ( ) ) ; setFinished ( ) ; return true ; } } return false ; }
Check response on exception .
66
5
4,497
private SimpleOrderedMap < Object > createOutput ( boolean detailed ) { // checkResponseOnException(); SimpleOrderedMap < Object > output = new SimpleOrderedMap <> ( ) ; updateShardInfo ( ) ; output . add ( NAME_KEY , key ) ; output . add ( NAME_REQUEST , request ) ; if ( errorStatus ) { output . add ( NAME_ERROR , err...
Creates the output .
675
5
4,498
private final SimpleOrderedMap < Object > createShardsOutput ( ) { SimpleOrderedMap < Object > output = new SimpleOrderedMap <> ( ) ; if ( shardStageStatus != null && ! shardStageStatus . isEmpty ( ) ) { List < SimpleOrderedMap < Object >> list = new ArrayList <> ( ) ; for ( StageStatus stageStatus : shardStageStatus ....
Creates the shards output .
206
6
4,499
private final Integer getInteger ( NamedList < Object > response , String ... args ) { Object objectItem = response . findRecursive ( args ) ; if ( objectItem != null && objectItem instanceof Integer ) { return ( Integer ) objectItem ; } else { return null ; } }
Gets the integer .
60
5