idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
2,700
public static responderaction get ( nitro_service service , String name ) throws Exception { responderaction obj = new responderaction ( ) ; obj . set_name ( name ) ; responderaction response = ( responderaction ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch responderaction resource of given name .
2,701
public static vpnsessionpolicy_binding get ( nitro_service service , String name ) throws Exception { vpnsessionpolicy_binding obj = new vpnsessionpolicy_binding ( ) ; obj . set_name ( name ) ; vpnsessionpolicy_binding response = ( vpnsessionpolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch vpnsessionpolicy_binding resource of given name .
2,702
public static wisite_translationinternalip_binding [ ] get ( nitro_service service , String sitepath ) throws Exception { wisite_translationinternalip_binding obj = new wisite_translationinternalip_binding ( ) ; obj . set_sitepath ( sitepath ) ; wisite_translationinternalip_binding response [ ] = ( wisite_translationin...
Use this API to fetch wisite_translationinternalip_binding resources of given name .
2,703
public static long count ( nitro_service service , String sitepath ) throws Exception { wisite_translationinternalip_binding obj = new wisite_translationinternalip_binding ( ) ; obj . set_sitepath ( sitepath ) ; options option = new options ( ) ; option . set_count ( true ) ; wisite_translationinternalip_binding respon...
Use this API to count wisite_translationinternalip_binding resources configued on NetScaler .
2,704
public static authenticationlocalpolicy_systemglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationlocalpolicy_systemglobal_binding obj = new authenticationlocalpolicy_systemglobal_binding ( ) ; obj . set_name ( name ) ; authenticationlocalpolicy_systemglobal_binding response ...
Use this API to fetch authenticationlocalpolicy_systemglobal_binding resources of given name .
2,705
public static appfwprofile_xmlwsiurl_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_xmlwsiurl_binding obj = new appfwprofile_xmlwsiurl_binding ( ) ; obj . set_name ( name ) ; appfwprofile_xmlwsiurl_binding response [ ] = ( appfwprofile_xmlwsiurl_binding [ ] ) obj . get_resources...
Use this API to fetch appfwprofile_xmlwsiurl_binding resources of given name .
2,706
public static base_response add ( nitro_service client , snmpgroup resource ) throws Exception { snmpgroup addresource = new snmpgroup ( ) ; addresource . name = resource . name ; addresource . securitylevel = resource . securitylevel ; addresource . readviewname = resource . readviewname ; return addresource . add_res...
Use this API to add snmpgroup .
2,707
public static base_responses add ( nitro_service client , snmpgroup resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { snmpgroup addresources [ ] = new snmpgroup [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources ...
Use this API to add snmpgroup resources .
2,708
public static base_response delete ( nitro_service client , snmpgroup resource ) throws Exception { snmpgroup deleteresource = new snmpgroup ( ) ; deleteresource . name = resource . name ; deleteresource . securitylevel = resource . securitylevel ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete snmpgroup .
2,709
public static base_response update ( nitro_service client , snmpgroup resource ) throws Exception { snmpgroup updateresource = new snmpgroup ( ) ; updateresource . name = resource . name ; updateresource . securitylevel = resource . securitylevel ; updateresource . readviewname = resource . readviewname ; return update...
Use this API to update snmpgroup .
2,710
public static base_responses update ( nitro_service client , snmpgroup resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { snmpgroup updateresources [ ] = new snmpgroup [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updater...
Use this API to update snmpgroup resources .
2,711
public static snmpgroup [ ] get ( nitro_service service ) throws Exception { snmpgroup obj = new snmpgroup ( ) ; snmpgroup [ ] response = ( snmpgroup [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the snmpgroup resources that are configured on netscaler .
2,712
public static base_response update ( nitro_service client , lbparameter resource ) throws Exception { lbparameter updateresource = new lbparameter ( ) ; updateresource . httponlycookieflag = resource . httponlycookieflag ; updateresource . consolidatedlconn = resource . consolidatedlconn ; updateresource . useportforha...
Use this API to update lbparameter .
2,713
public static base_response unset ( nitro_service client , lbparameter resource , String [ ] args ) throws Exception { lbparameter unsetresource = new lbparameter ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of lbparameter resource . Properties that need to be unset are specified in args array .
2,714
public static lbparameter get ( nitro_service service ) throws Exception { lbparameter obj = new lbparameter ( ) ; lbparameter [ ] response = ( lbparameter [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the lbparameter resources that are configured on netscaler .
2,715
public static auditnslogpolicy_lbvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { auditnslogpolicy_lbvserver_binding obj = new auditnslogpolicy_lbvserver_binding ( ) ; obj . set_name ( name ) ; auditnslogpolicy_lbvserver_binding response [ ] = ( auditnslogpolicy_lbvserver_binding [ ] )...
Use this API to fetch auditnslogpolicy_lbvserver_binding resources of given name .
2,716
public static base_response add ( nitro_service client , policystringmap resource ) throws Exception { policystringmap addresource = new policystringmap ( ) ; addresource . name = resource . name ; addresource . comment = resource . comment ; return addresource . add_resource ( client ) ; }
Use this API to add policystringmap .
2,717
public static base_response update ( nitro_service client , policystringmap resource ) throws Exception { policystringmap updateresource = new policystringmap ( ) ; updateresource . name = resource . name ; updateresource . comment = resource . comment ; return updateresource . update_resource ( client ) ; }
Use this API to update policystringmap .
2,718
public static policystringmap [ ] get ( nitro_service service ) throws Exception { policystringmap obj = new policystringmap ( ) ; policystringmap [ ] response = ( policystringmap [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the policystringmap resources that are configured on netscaler .
2,719
public static policystringmap get ( nitro_service service , String name ) throws Exception { policystringmap obj = new policystringmap ( ) ; obj . set_name ( name ) ; policystringmap response = ( policystringmap ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch policystringmap resource of given name .
2,720
public static rewritepolicylabel_policybinding_binding [ ] get ( nitro_service service , String labelname ) throws Exception { rewritepolicylabel_policybinding_binding obj = new rewritepolicylabel_policybinding_binding ( ) ; obj . set_labelname ( labelname ) ; rewritepolicylabel_policybinding_binding response [ ] = ( r...
Use this API to fetch rewritepolicylabel_policybinding_binding resources of given name .
2,721
private void registerPrefix ( String field , String prefix , IndexOutput outPrefix ) throws IOException { if ( ! prefixReferenceIndex . containsKey ( field ) ) { prefixReferenceIndex . put ( field , new HashMap < String , Long > ( ) ) ; prefixIdIndex . put ( field , new HashMap < String , Integer > ( ) ) ; } if ( ! pre...
Register prefix .
2,722
private void registerPrefixIntersection ( String field , String prefix , int start , int end , HashMap < String , HashSet < Integer > > docFieldAdministration ) { if ( ! intersectingPrefixes . containsKey ( field ) ) { intersectingPrefixes . put ( field , new HashSet < String > ( ) ) ; } else if ( intersectingPrefixes ...
Register prefix intersection .
2,723
public void registerPrefixStatsSinglePositionValue ( String field , String prefix , IndexOutput outPrefix ) throws IOException { initPrefixStatsField ( field ) ; registerPrefix ( field , prefix , outPrefix ) ; if ( ! multiplePositionPrefix . get ( field ) . contains ( prefix ) ) { singlePositionPrefix . get ( field ) ....
Register prefix stats single position value .
2,724
public void registerPrefixStatsRangePositionValue ( String field , String prefix , IndexOutput outPrefix ) throws IOException { initPrefixStatsField ( field ) ; registerPrefix ( field , prefix , outPrefix ) ; singlePositionPrefix . get ( field ) . remove ( prefix ) ; multiplePositionPrefix . get ( field ) . add ( prefi...
Register prefix stats range position value .
2,725
private void initPrefixStatsField ( String field ) { if ( ! singlePositionPrefix . containsKey ( field ) ) { singlePositionPrefix . put ( field , new HashSet < String > ( ) ) ; } if ( ! multiplePositionPrefix . containsKey ( field ) ) { multiplePositionPrefix . put ( field , new HashSet < String > ( ) ) ; } if ( ! setP...
Inits the prefix stats field .
2,726
public String getPrefixStatsSinglePositionPrefixAttribute ( String field ) { return String . join ( MtasToken . DELIMITER , singlePositionPrefix . get ( field ) ) ; }
Gets the prefix stats single position prefix attribute .
2,727
public String getPrefixStatsMultiplePositionPrefixAttribute ( String field ) { return String . join ( MtasToken . DELIMITER , multiplePositionPrefix . get ( field ) ) ; }
Gets the prefix stats multiple position prefix attribute .
2,728
public String getPrefixStatsSetPositionPrefixAttribute ( String field ) { return String . join ( MtasToken . DELIMITER , setPositionPrefix . get ( field ) ) ; }
Gets the prefix stats set position prefix attribute .
2,729
public String getPrefixStatsIntersectionPrefixAttribute ( String field ) { if ( intersectingPrefixes . containsKey ( field ) ) { return String . join ( MtasToken . DELIMITER , intersectingPrefixes . get ( field ) ) ; } else { return "" ; } }
Gets the prefix stats intersection prefix attribute .
2,730
private void tokenStatsAdd ( int min , int max ) { tokenStatsNumber ++ ; if ( tokenStatsMinPos == null ) { tokenStatsMinPos = min ; } else { tokenStatsMinPos = Math . min ( tokenStatsMinPos , min ) ; } if ( tokenStatsMaxPos == null ) { tokenStatsMaxPos = max ; } else { tokenStatsMaxPos = Math . max ( tokenStatsMaxPos ,...
Token stats add .
2,731
private void copyObjectAndUpdateStats ( int id , IndexInput in , Long inRef , IndexOutput out ) throws IOException { int mtasId ; int objectFlags ; in . seek ( inRef ) ; mtasId = in . readVInt ( ) ; assert id == mtasId : "wrong id detected while copying object" ; objectFlags = in . readVInt ( ) ; out . writeVInt ( mtas...
Copy object and update stats .
2,732
public static aaagroup_vpnintranetapplication_binding [ ] get ( nitro_service service , String groupname ) throws Exception { aaagroup_vpnintranetapplication_binding obj = new aaagroup_vpnintranetapplication_binding ( ) ; obj . set_groupname ( groupname ) ; aaagroup_vpnintranetapplication_binding response [ ] = ( aaagr...
Use this API to fetch aaagroup_vpnintranetapplication_binding resources of given name .
2,733
public void load ( Reader r , String id ) { try { TreeReader tr = treeReaderFactory ( ) . newTreeReader ( r ) ; int sentIndex = 0 ; for ( Tree pt ; ( pt = tr . readTree ( ) ) != null ; ) { if ( pt . label ( ) instanceof HasIndex ) { HasIndex hi = ( HasIndex ) pt . label ( ) ; if ( id != null ) { hi . setDocID ( id ) ; ...
Load a collection of parse trees from a Reader . Each tree may optionally be encased in parens to allow for Penn Treebank style trees .
2,734
public void apply ( TreeVisitor tp ) { for ( int i = 0 , size = parseTrees . size ( ) ; i < size ; i ++ ) { tp . visitTree ( parseTrees . get ( i ) ) ; } }
Apply the TreeVisitor tp to all trees in the Treebank .
2,735
public static aaauser_vpnurl_binding [ ] get ( nitro_service service , String username ) throws Exception { aaauser_vpnurl_binding obj = new aaauser_vpnurl_binding ( ) ; obj . set_username ( username ) ; aaauser_vpnurl_binding response [ ] = ( aaauser_vpnurl_binding [ ] ) obj . get_resources ( service ) ; return respon...
Use this API to fetch aaauser_vpnurl_binding resources of given name .
2,736
public static base_response add ( nitro_service client , iptunnel resource ) throws Exception { iptunnel addresource = new iptunnel ( ) ; addresource . name = resource . name ; addresource . remote = resource . remote ; addresource . remotesubnetmask = resource . remotesubnetmask ; addresource . local = resource . loca...
Use this API to add iptunnel .
2,737
public static base_responses add ( nitro_service client , iptunnel resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { iptunnel addresources [ ] = new iptunnel [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i...
Use this API to add iptunnel resources .
2,738
public static iptunnel [ ] get ( nitro_service service ) throws Exception { iptunnel obj = new iptunnel ( ) ; iptunnel [ ] response = ( iptunnel [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the iptunnel resources that are configured on netscaler .
2,739
public static iptunnel [ ] get ( nitro_service service , iptunnel_args args ) throws Exception { iptunnel obj = new iptunnel ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; iptunnel [ ] response = ( iptunnel [ ] ) obj . get_resources ( service , opti...
Use this API to fetch all the iptunnel resources that are configured on netscaler . This uses iptunnel_args which is a way to provide additional arguments while fetching the resources .
2,740
public static iptunnel get ( nitro_service service , String name ) throws Exception { iptunnel obj = new iptunnel ( ) ; obj . set_name ( name ) ; iptunnel response = ( iptunnel ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch iptunnel resource of given name .
2,741
public static base_response add ( nitro_service client , dnscnamerec resource ) throws Exception { dnscnamerec addresource = new dnscnamerec ( ) ; addresource . aliasname = resource . aliasname ; addresource . canonicalname = resource . canonicalname ; addresource . ttl = resource . ttl ; return addresource . add_resou...
Use this API to add dnscnamerec .
2,742
public static base_responses add ( nitro_service client , dnscnamerec resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnscnamerec addresources [ ] = new dnscnamerec [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addreso...
Use this API to add dnscnamerec resources .
2,743
public static base_response delete ( nitro_service client , String aliasname ) throws Exception { dnscnamerec deleteresource = new dnscnamerec ( ) ; deleteresource . aliasname = aliasname ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete dnscnamerec of given name .
2,744
public static base_responses delete ( nitro_service client , String aliasname [ ] ) throws Exception { base_responses result = null ; if ( aliasname != null && aliasname . length > 0 ) { dnscnamerec deleteresources [ ] = new dnscnamerec [ aliasname . length ] ; for ( int i = 0 ; i < aliasname . length ; i ++ ) { delete...
Use this API to delete dnscnamerec resources of given names .
2,745
public static dnscnamerec [ ] get ( nitro_service service ) throws Exception { dnscnamerec obj = new dnscnamerec ( ) ; dnscnamerec [ ] response = ( dnscnamerec [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the dnscnamerec resources that are configured on netscaler .
2,746
public static dnscnamerec [ ] get ( nitro_service service , dnscnamerec_args args ) throws Exception { dnscnamerec obj = new dnscnamerec ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; dnscnamerec [ ] response = ( dnscnamerec [ ] ) obj . get_resource...
Use this API to fetch all the dnscnamerec resources that are configured on netscaler . This uses dnscnamerec_args which is a way to provide additional arguments while fetching the resources .
2,747
public static dnscnamerec get ( nitro_service service , String aliasname ) throws Exception { dnscnamerec obj = new dnscnamerec ( ) ; obj . set_aliasname ( aliasname ) ; dnscnamerec response = ( dnscnamerec ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch dnscnamerec resource of given name .
2,748
public static dnscnamerec [ ] get ( nitro_service service , String aliasname [ ] ) throws Exception { if ( aliasname != null && aliasname . length > 0 ) { dnscnamerec response [ ] = new dnscnamerec [ aliasname . length ] ; dnscnamerec obj [ ] = new dnscnamerec [ aliasname . length ] ; for ( int i = 0 ; i < aliasname . ...
Use this API to fetch dnscnamerec resources of given names .
2,749
public static nsacl_stats [ ] get ( nitro_service service ) throws Exception { nsacl_stats obj = new nsacl_stats ( ) ; nsacl_stats [ ] response = ( nsacl_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all nsacl_stats resources that are configured on netscaler .
2,750
public static nsacl_stats get ( nitro_service service , String aclname ) throws Exception { nsacl_stats obj = new nsacl_stats ( ) ; obj . set_aclname ( aclname ) ; nsacl_stats response = ( nsacl_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of nsacl_stats resource of given name .
2,751
public static lbvserver_dnspolicy64_binding [ ] get ( nitro_service service , String name ) throws Exception { lbvserver_dnspolicy64_binding obj = new lbvserver_dnspolicy64_binding ( ) ; obj . set_name ( name ) ; lbvserver_dnspolicy64_binding response [ ] = ( lbvserver_dnspolicy64_binding [ ] ) obj . get_resources ( se...
Use this API to fetch lbvserver_dnspolicy64_binding resources of given name .
2,752
public static crvserver_filterpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { crvserver_filterpolicy_binding obj = new crvserver_filterpolicy_binding ( ) ; obj . set_name ( name ) ; crvserver_filterpolicy_binding response [ ] = ( crvserver_filterpolicy_binding [ ] ) obj . get_resources...
Use this API to fetch crvserver_filterpolicy_binding resources of given name .
2,753
public static sslpolicy_sslpolicylabel_binding [ ] get ( nitro_service service , String name ) throws Exception { sslpolicy_sslpolicylabel_binding obj = new sslpolicy_sslpolicylabel_binding ( ) ; obj . set_name ( name ) ; sslpolicy_sslpolicylabel_binding response [ ] = ( sslpolicy_sslpolicylabel_binding [ ] ) obj . get...
Use this API to fetch sslpolicy_sslpolicylabel_binding resources of given name .
2,754
public E extractMin ( ) { if ( isEmpty ( ) ) { throw new NoSuchElementException ( ) ; } HeapEntry < E > minEntry = indexToEntry . get ( 0 ) ; int lastIndex = size ( ) - 1 ; if ( lastIndex > 0 ) { HeapEntry < E > lastEntry = indexToEntry . get ( lastIndex ) ; swap ( lastEntry , minEntry ) ; removeLast ( minEntry ) ; hea...
Finds the object with the minimum key removes it from the heap and returns it .
2,755
public int decreaseKey ( E o ) { HeapEntry < E > entry = getEntry ( o ) ; if ( o != entry . object ) { if ( cmp . compare ( o , entry . object ) < 0 ) { entry . object = o ; } } return heapifyUp ( entry ) ; }
Changes the position of an element o in the heap based on a change in the ordering of o . If o s key has actually increased it will do nothing particularly not an increase key .
2,756
protected Map < String , List < MtasParserObject > > createCurrentList ( ) { Map < String , List < MtasParserObject > > currentList = new HashMap < > ( ) ; currentList . put ( MAPPING_TYPE_RELATION , new ArrayList < MtasParserObject > ( ) ) ; currentList . put ( MAPPING_TYPE_RELATION_ANNOTATION , new ArrayList < MtasPa...
Creates the current list .
2,757
protected Map < String , Map < Integer , Set < String > > > createUpdateList ( ) { Map < String , Map < Integer , Set < String > > > updateList = new HashMap < > ( ) ; updateList . put ( UPDATE_TYPE_OFFSET , new HashMap < > ( ) ) ; updateList . put ( UPDATE_TYPE_POSITION , new HashMap < > ( ) ) ; updateList . put ( UPD...
Creates the update list .
2,758
protected void computeVariablesFromObject ( MtasParserObject object , Map < String , List < MtasParserObject > > currentList , Map < String , Map < String , String > > variables ) { MtasParserType < MtasParserVariable > parserType = object . getType ( ) ; String id = object . getId ( ) ; if ( id != null ) { for ( MtasP...
Compute variables from object .
2,759
private boolean checkForVariables ( List < Map < String , String > > values ) { if ( values == null || values . isEmpty ( ) ) { return false ; } else { for ( Map < String , String > list : values ) { if ( list . containsKey ( "type" ) && list . get ( "type" ) . equals ( MtasParserMapping . PARSER_TYPE_VARIABLE ) ) { re...
Check for variables .
2,760
private String computeTypeFromMappingSource ( String source ) throws MtasParserException { if ( source . equals ( MtasParserMapping . SOURCE_OWN ) ) { return null ; } else if ( source . equals ( MtasParserMapping . SOURCE_ANCESTOR_GROUP ) ) { return MAPPING_TYPE_GROUP ; } else if ( source . equals ( MtasParserMapping ....
Compute type from mapping source .
2,761
private MtasParserObject [ ] computeObjectFromMappingValue ( MtasParserObject object , Map < String , String > mappingValue , Map < String , List < MtasParserObject > > currentList ) throws MtasParserException { MtasParserObject [ ] checkObjects = null ; MtasParserObject checkObject ; Integer ancestorNumber = null ; St...
Compute object from mapping value .
2,762
private String addAndEncodeVariable ( String originalValue , String newVariable , String newVariableName , boolean encode ) { return addAndEncode ( originalValue , newVariable , newVariableName , encode ) ; }
Adds the and encode variable .
2,763
private String addAndEncodeValue ( String originalValue , String newValue , boolean encode ) { return addAndEncode ( originalValue , null , newValue , encode ) ; }
Adds the and encode value .
2,764
private String addAndEncode ( String originalValue , String newType , String newValue , boolean encode ) { if ( newValue == null ) { return originalValue ; } else { String finalNewValue ; if ( encode ) { if ( newType == null ) { finalNewValue = new String ( enc . encode ( newValue . getBytes ( StandardCharsets . UTF_8 ...
Adds the and encode .
2,765
private BytesRef computePayloadFromMappingPayload ( MtasParserObject object , List < Map < String , String > > mappingPayloads , Map < String , List < MtasParserObject > > currentList ) throws MtasParserException { BytesRef payload = null ; for ( Map < String , String > mappingPayload : mappingPayloads ) { if ( mapping...
Compute payload from mapping payload .
2,766
Boolean prevalidateObject ( MtasParserObject object , Map < String , List < MtasParserObject > > currentList ) { MtasParserType objectType = object . getType ( ) ; List < MtasParserMapping < ? > > mappings = objectType . getItems ( ) ; if ( mappings . isEmpty ( ) ) { return true ; } for ( MtasParserMapping < ? > mappin...
Prevalidate object .
2,767
private void postcheckMappingConditions ( MtasParserObject object , List < Map < String , String > > mappingConditions , Map < String , List < MtasParserObject > > currentList ) throws MtasParserException { precheckMappingConditions ( object , mappingConditions , currentList ) ; for ( Map < String , String > mappingCon...
Postcheck mapping conditions .
2,768
private String [ ] computeFilteredSplitValues ( String [ ] values , String filter ) throws MtasConfigException { if ( filter != null ) { String [ ] filters = filter . split ( "," ) ; boolean [ ] valuesFilter = new boolean [ values . length ] ; boolean doSplitFilter = false ; for ( String item : filters ) { if ( item . ...
Compute filtered split values .
2,769
private String computeFilteredPrefixedValue ( String type , String value , String filter , String prefix ) throws MtasConfigException { String localValue = value ; if ( filter != null ) { String [ ] filters = filter . split ( "," ) ; for ( String item : filters ) { if ( item . trim ( ) . equals ( MAPPING_FILTER_UPPERCA...
Compute filtered prefixed value .
2,770
private BytesRef computeMaximumFilteredPayload ( String value , BytesRef payload , String filter ) { if ( value != null ) { if ( payload != null ) { Float payloadFloat = PayloadHelper . decodeFloat ( payload . bytes , payload . offset ) ; Float valueFloat = Float . parseFloat ( value ) ; return new BytesRef ( PayloadHe...
Compute maximum filtered payload .
2,771
public int [ ] otherOccurrences ( Entity entity ) { List < Integer > other = new ArrayList < Integer > ( ) ; for ( int i = 0 ; i < doc . size ( ) ; i ++ ) { if ( i == entity . startPosition ) { continue ; } if ( matches ( entity , i ) ) { other . add ( Integer . valueOf ( i ) ) ; } } return toArray ( other ) ; }
finds other locations in the sequence where the sequence of words in this entity occurs .
2,772
public static transformpolicylabel_binding get ( nitro_service service , String labelname ) throws Exception { transformpolicylabel_binding obj = new transformpolicylabel_binding ( ) ; obj . set_labelname ( labelname ) ; transformpolicylabel_binding response = ( transformpolicylabel_binding ) obj . get_resource ( servi...
Use this API to fetch transformpolicylabel_binding resource of given name .
2,773
public static base_response update ( nitro_service client , nshttpparam resource ) throws Exception { nshttpparam updateresource = new nshttpparam ( ) ; updateresource . dropinvalreqs = resource . dropinvalreqs ; updateresource . markhttp09inval = resource . markhttp09inval ; updateresource . markconnreqinval = resourc...
Use this API to update nshttpparam .
2,774
public static base_response unset ( nitro_service client , nshttpparam resource , String [ ] args ) throws Exception { nshttpparam unsetresource = new nshttpparam ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of nshttpparam resource . Properties that need to be unset are specified in args array .
2,775
public static nshttpparam get ( nitro_service service ) throws Exception { nshttpparam obj = new nshttpparam ( ) ; nshttpparam [ ] response = ( nshttpparam [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the nshttpparam resources that are configured on netscaler .
2,776
public MapFactory < E , MutableInteger > getMapFactory ( ) { return ErasureUtils . < MapFactory < E , MutableInteger > > uncheckedCast ( mapFactory ) ; }
STANDARD ACCESS MODIFICATION METHODS
2,777
public double remove ( E key ) { totalCount -= getCount ( key ) ; MutableInteger val = map . remove ( key ) ; if ( val == null ) { return Double . NaN ; } else { return val . doubleValue ( ) ; } }
Removes the given key from this Counter . Its count will now be 0 and it will no longer be considered previously seen .
2,778
public Set < Map . Entry < E , Double > > entrySet ( ) { return new AbstractSet < Map . Entry < E , Double > > ( ) { public Iterator < Entry < E , Double > > iterator ( ) { return new Iterator < Entry < E , Double > > ( ) { final Iterator < Entry < E , MutableInteger > > inner = map . entrySet ( ) . iterator ( ) ; publ...
Returns a view of the doubles in this map . Can be safely modified .
2,779
public int max ( ) { int max = Integer . MIN_VALUE ; for ( E key : map . keySet ( ) ) { max = Math . max ( max , getIntCount ( key ) ) ; } return max ; }
Finds and returns the largest count in this Counter .
2,780
public int min ( ) { int min = Integer . MAX_VALUE ; for ( E key : map . keySet ( ) ) { min = Math . min ( min , getIntCount ( key ) ) ; } return min ; }
Finds and returns the smallest count in this Counter .
2,781
public E argmax ( Comparator < E > tieBreaker ) { int max = Integer . MIN_VALUE ; E argmax = null ; for ( E key : keySet ( ) ) { int count = getIntCount ( key ) ; if ( argmax == null || count > max || ( count == max && tieBreaker . compare ( key , argmax ) < 0 ) ) { max = count ; argmax = key ; } } return argmax ; }
Finds and returns the key in this Counter with the largest count . Ties are broken by comparing the objects using the given tie breaking Comparator favoring Objects that are sorted to the front . This is useful if the keys are numeric and there is a bias to prefer smaller or larger values and can be useful in other cir...
2,782
public E argmin ( Comparator < E > tieBreaker ) { int min = Integer . MAX_VALUE ; E argmin = null ; for ( E key : map . keySet ( ) ) { int count = getIntCount ( key ) ; if ( argmin == null || count < min || ( count == min && tieBreaker . compare ( key , argmin ) < 0 ) ) { min = count ; argmin = key ; } } return argmin ...
Finds and returns the key in this Counter with the smallest count . Ties are broken by comparing the objects using the given tie breaking Comparator favoring Objects that are sorted to the front . This is useful if the keys are numeric and there is a bias to prefer smaller or larger values and can be useful in other ci...
2,783
public static base_response create ( nitro_service client , systembackup resource ) throws Exception { systembackup createresource = new systembackup ( ) ; createresource . filename = resource . filename ; createresource . level = resource . level ; createresource . comment = resource . comment ; return createresource ...
Use this API to create systembackup .
2,784
public static base_responses create ( nitro_service client , systembackup resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { systembackup createresources [ ] = new systembackup [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) ...
Use this API to create systembackup resources .
2,785
public static base_response restore ( nitro_service client , systembackup resource ) throws Exception { systembackup restoreresource = new systembackup ( ) ; restoreresource . filename = resource . filename ; return restoreresource . perform_operation ( client , "restore" ) ; }
Use this API to restore systembackup .
2,786
public static base_responses restore ( nitro_service client , systembackup resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { systembackup restoreresources [ ] = new systembackup [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ...
Use this API to restore systembackup resources .
2,787
public static base_response delete ( nitro_service client , String filename ) throws Exception { systembackup deleteresource = new systembackup ( ) ; deleteresource . filename = filename ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete systembackup of given name .
2,788
public static base_responses delete ( nitro_service client , String filename [ ] ) throws Exception { base_responses result = null ; if ( filename != null && filename . length > 0 ) { systembackup deleteresources [ ] = new systembackup [ filename . length ] ; for ( int i = 0 ; i < filename . length ; i ++ ) { deleteres...
Use this API to delete systembackup resources of given names .
2,789
public static systembackup [ ] get ( nitro_service service , options option ) throws Exception { systembackup obj = new systembackup ( ) ; systembackup [ ] response = ( systembackup [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the systembackup resources that are configured on netscaler .
2,790
public static systembackup get ( nitro_service service , String filename ) throws Exception { systembackup obj = new systembackup ( ) ; obj . set_filename ( filename ) ; systembackup response = ( systembackup ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch systembackup resource of given name .
2,791
public static systembackup [ ] get ( nitro_service service , String filename [ ] ) throws Exception { if ( filename != null && filename . length > 0 ) { systembackup response [ ] = new systembackup [ filename . length ] ; systembackup obj [ ] = new systembackup [ filename . length ] ; for ( int i = 0 ; i < filename . l...
Use this API to fetch systembackup resources of given names .
2,792
public static base_response add ( nitro_service client , filterpolicy resource ) throws Exception { filterpolicy addresource = new filterpolicy ( ) ; addresource . name = resource . name ; addresource . rule = resource . rule ; addresource . reqaction = resource . reqaction ; addresource . resaction = resource . resact...
Use this API to add filterpolicy .
2,793
public static base_response update ( nitro_service client , filterpolicy resource ) throws Exception { filterpolicy updateresource = new filterpolicy ( ) ; updateresource . name = resource . name ; updateresource . rule = resource . rule ; updateresource . reqaction = resource . reqaction ; updateresource . resaction =...
Use this API to update filterpolicy .
2,794
public static filterpolicy [ ] get ( nitro_service service ) throws Exception { filterpolicy obj = new filterpolicy ( ) ; filterpolicy [ ] response = ( filterpolicy [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the filterpolicy resources that are configured on netscaler .
2,795
public static filterpolicy get ( nitro_service service , String name ) throws Exception { filterpolicy obj = new filterpolicy ( ) ; obj . set_name ( name ) ; filterpolicy response = ( filterpolicy ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch filterpolicy resource of given name .
2,796
public static filterpolicy [ ] get ( nitro_service service , String name [ ] ) throws Exception { if ( name != null && name . length > 0 ) { filterpolicy response [ ] = new filterpolicy [ name . length ] ; filterpolicy obj [ ] = new filterpolicy [ name . length ] ; for ( int i = 0 ; i < name . length ; i ++ ) { obj [ i...
Use this API to fetch filterpolicy resources of given names .
2,797
public static base_response add ( nitro_service client , vpnurl resource ) throws Exception { vpnurl addresource = new vpnurl ( ) ; addresource . urlname = resource . urlname ; addresource . linkname = resource . linkname ; addresource . actualurl = resource . actualurl ; addresource . clientlessaccess = resource . cli...
Use this API to add vpnurl .
2,798
public static base_responses add ( nitro_service client , vpnurl resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vpnurl addresources [ ] = new vpnurl [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = n...
Use this API to add vpnurl resources .
2,799
public static base_response delete ( nitro_service client , String urlname ) throws Exception { vpnurl deleteresource = new vpnurl ( ) ; deleteresource . urlname = urlname ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete vpnurl of given name .