idx
int64
0
41.2k
question
stringlengths
74
4.04k
target
stringlengths
7
750
3,200
public static base_responses enable ( nitro_service client , nsip resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsip enableresources [ ] = new nsip [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { enableresources [ i ] = new nsip ( ) ; enableresources [ i ] . ipaddress = resources [ i ] . ipaddress ; enableresources [ i ] . td = resources [ i ] . td ; } result = perform_operation_bulk_request ( client , enableresources , "enable" ) ; } return result ; }
Use this API to enable nsip resources .
3,201
public static base_response disable ( nitro_service client , String ipaddress ) throws Exception { nsip disableresource = new nsip ( ) ; disableresource . ipaddress = ipaddress ; return disableresource . perform_operation ( client , "disable" ) ; }
Use this API to disable nsip of given name .
3,202
public static base_response disable ( nitro_service client , nsip resource ) throws Exception { nsip disableresource = new nsip ( ) ; disableresource . ipaddress = resource . ipaddress ; disableresource . td = resource . td ; return disableresource . perform_operation ( client , "disable" ) ; }
Use this API to disable nsip .
3,203
public static base_responses disable ( nitro_service client , String ipaddress [ ] ) throws Exception { base_responses result = null ; if ( ipaddress != null && ipaddress . length > 0 ) { nsip disableresources [ ] = new nsip [ ipaddress . length ] ; for ( int i = 0 ; i < ipaddress . length ; i ++ ) { disableresources [ i ] = new nsip ( ) ; disableresources [ i ] . ipaddress = ipaddress [ i ] ; } result = perform_operation_bulk_request ( client , disableresources , "disable" ) ; } return result ; }
Use this API to disable nsip resources of given names .
3,204
public static base_responses disable ( nitro_service client , nsip resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsip disableresources [ ] = new nsip [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { disableresources [ i ] = new nsip ( ) ; disableresources [ i ] . ipaddress = resources [ i ] . ipaddress ; disableresources [ i ] . td = resources [ i ] . td ; } result = perform_operation_bulk_request ( client , disableresources , "disable" ) ; } return result ; }
Use this API to disable nsip resources .
3,205
public static nsip [ ] get ( nitro_service service ) throws Exception { nsip obj = new nsip ( ) ; nsip [ ] response = ( nsip [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the nsip resources that are configured on netscaler .
3,206
public static nsip [ ] get ( nitro_service service , nsip_args args ) throws Exception { nsip obj = new nsip ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; nsip [ ] response = ( nsip [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the nsip resources that are configured on netscaler . This uses nsip_args which is a way to provide additional arguments while fetching the resources .
3,207
public static authenticationtacacspolicy_vpnglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationtacacspolicy_vpnglobal_binding obj = new authenticationtacacspolicy_vpnglobal_binding ( ) ; obj . set_name ( name ) ; authenticationtacacspolicy_vpnglobal_binding response [ ] = ( authenticationtacacspolicy_vpnglobal_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch authenticationtacacspolicy_vpnglobal_binding resources of given name .
3,208
final public void addIdFromDoc ( Integer docId , Long reference ) { if ( ! closed && ( docId != null ) ) { addSinglePoint ( docId , 0 , 0 , docId , reference ) ; } }
Adds the id from doc .
3,209
final public void addParentFromToken ( MtasToken token ) throws IOException { if ( ! closed && ( token != null ) ) { if ( token . checkParentId ( ) ) { addSinglePoint ( token . getParentId ( ) , token . getPrefixId ( ) , token . getTermRef ( ) , token . getId ( ) , token . getTokenRef ( ) ) ; } } }
Adds the parent from token .
3,210
final private void addPositionFromToken ( MtasToken token , Long ref ) throws IOException { int prefixId = storePrefixAndTermRef ? token . getPrefixId ( ) : 0 ; if ( ! closed && ( token != null ) ) { if ( token . checkPositionType ( MtasPosition . POSITION_SINGLE ) ) { addSinglePoint ( token . getPositionStart ( ) , prefixId , token . getTermRef ( ) , token . getId ( ) , ref ) ; } else if ( token . checkPositionType ( MtasPosition . POSITION_RANGE ) ) { addRange ( token . getPositionStart ( ) , token . getPositionEnd ( ) , prefixId , token . getTermRef ( ) , token . getId ( ) , ref ) ; } else if ( token . checkPositionType ( MtasPosition . POSITION_SET ) ) { SortedMap < Integer , Integer > list = new TreeMap < > ( ) ; int [ ] positions = token . getPositions ( ) ; Integer lastPoint = null ; Integer startPoint = null ; for ( int position : positions ) { if ( lastPoint == null ) { startPoint = position ; lastPoint = position ; } else if ( ( position - lastPoint ) != 1 ) { list . put ( startPoint , lastPoint ) ; startPoint = position ; } lastPoint = position ; } if ( lastPoint != null ) { list . put ( startPoint , lastPoint ) ; } for ( Entry < Integer , Integer > entry : list . entrySet ( ) ) { if ( entry . getKey ( ) . equals ( entry . getValue ( ) ) ) { addSinglePoint ( entry . getKey ( ) , prefixId , token . getTermRef ( ) , token . getId ( ) , ref ) ; } else { addRange ( entry . getKey ( ) , entry . getValue ( ) , prefixId , token . getTermRef ( ) , token . getId ( ) , ref ) ; } } } } }
Adds the position from token .
3,211
public static authenticationldappolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationldappolicy_vpnvserver_binding obj = new authenticationldappolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; authenticationldappolicy_vpnvserver_binding response [ ] = ( authenticationldappolicy_vpnvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch authenticationldappolicy_vpnvserver_binding resources of given name .
3,212
final public TsurgeonPattern NodeSelection ( ) throws ParseException { SimpleNode jjtn000 = new SimpleNode ( JJTNODESELECTION ) ; boolean jjtc000 = true ; jjtree . openNodeScope ( jjtn000 ) ; TsurgeonPattern result ; try { result = NodeName ( ) ; jjtree . closeNodeScope ( jjtn000 , true ) ; jjtc000 = false ; { if ( true ) return result ; } } catch ( Throwable jjte000 ) { if ( jjtc000 ) { jjtree . clearNodeScope ( jjtn000 ) ; jjtc000 = false ; } else { jjtree . popNode ( ) ; } if ( jjte000 instanceof RuntimeException ) { { if ( true ) throw ( RuntimeException ) jjte000 ; } } if ( jjte000 instanceof ParseException ) { { if ( true ) throw ( ParseException ) jjte000 ; } } { if ( true ) throw ( Error ) jjte000 ; } } finally { if ( jjtc000 ) { jjtree . closeNodeScope ( jjtn000 , true ) ; } } throw new Error ( "Missing return statement in function" ) ; }
we ll also put in a way to use a SELECTION with a list of nodes .
3,213
final public AuxiliaryTree TreeRoot ( boolean requiresFoot ) throws ParseException { SimpleNode jjtn000 = new SimpleNode ( JJTTREEROOT ) ; boolean jjtc000 = true ; jjtree . openNodeScope ( jjtn000 ) ; Tree t ; try { t = TreeNode ( ) ; jjtree . closeNodeScope ( jjtn000 , true ) ; jjtc000 = false ; { if ( true ) return new AuxiliaryTree ( t , requiresFoot ) ; } } catch ( Throwable jjte000 ) { if ( jjtc000 ) { jjtree . clearNodeScope ( jjtn000 ) ; jjtc000 = false ; } else { jjtree . popNode ( ) ; } if ( jjte000 instanceof RuntimeException ) { { if ( true ) throw ( RuntimeException ) jjte000 ; } } if ( jjte000 instanceof ParseException ) { { if ( true ) throw ( ParseException ) jjte000 ; } } { if ( true ) throw ( Error ) jjte000 ; } } finally { if ( jjtc000 ) { jjtree . closeNodeScope ( jjtn000 , true ) ; } } throw new Error ( "Missing return statement in function" ) ; }
the argument says whether there must be a foot node on the aux tree .
3,214
public static linkset_channel_binding [ ] get ( nitro_service service , String id ) throws Exception { linkset_channel_binding obj = new linkset_channel_binding ( ) ; obj . set_id ( id ) ; linkset_channel_binding response [ ] = ( linkset_channel_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch linkset_channel_binding resources of given name .
3,215
public static authenticationldappolicy_binding get ( nitro_service service , String name ) throws Exception { authenticationldappolicy_binding obj = new authenticationldappolicy_binding ( ) ; obj . set_name ( name ) ; authenticationldappolicy_binding response = ( authenticationldappolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch authenticationldappolicy_binding resource of given name .
3,216
public static aaagroup_auditsyslogpolicy_binding [ ] get ( nitro_service service , String groupname ) throws Exception { aaagroup_auditsyslogpolicy_binding obj = new aaagroup_auditsyslogpolicy_binding ( ) ; obj . set_groupname ( groupname ) ; aaagroup_auditsyslogpolicy_binding response [ ] = ( aaagroup_auditsyslogpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch aaagroup_auditsyslogpolicy_binding resources of given name .
3,217
public static inat_stats [ ] get ( nitro_service service ) throws Exception { inat_stats obj = new inat_stats ( ) ; inat_stats [ ] response = ( inat_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all inat_stats resources that are configured on netscaler .
3,218
public static inat_stats get ( nitro_service service , String name ) throws Exception { inat_stats obj = new inat_stats ( ) ; obj . set_name ( name ) ; inat_stats response = ( inat_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of inat_stats resource of given name .
3,219
public static policypatset_binding get ( nitro_service service , String name ) throws Exception { policypatset_binding obj = new policypatset_binding ( ) ; obj . set_name ( name ) ; policypatset_binding response = ( policypatset_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch policypatset_binding resource of given name .
3,220
public String processString ( String s ) { if ( decoderPipeline != null ) { return decoderPipeline . processString ( s ) ; } else { throw new java . lang . RuntimeException ( "Decoder Not Initialized" ) ; } }
Process a text string as input and return a string representation of the annotations . The representation returned depends on what type of decoder the Jarafe instance was initialized with .
3,221
public List < LightAnnot > processRawStringAsAnnotList ( String s ) { Annotation [ ] annots = decoderPipeline . processRawStringAsAnnotList ( s ) ; List < LightAnnot > alist = new ArrayList < LightAnnot > ( ) ; int i = 0 ; for ( i = 0 ; i < annots . length ; i ++ ) { Annotation ann = annots [ i ] ; alist . add ( new LightAnnot ( ann . st ( ) , ann . en ( ) , ann . typ ( ) . toString ( ) ) ) ; } return ( alist ) ; }
Process a text string as input and return a List of LightAnnot objects that serve as stand - off annotations over the input text .
3,222
public static vpnglobal_vpnsessionpolicy_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_vpnsessionpolicy_binding obj = new vpnglobal_vpnsessionpolicy_binding ( ) ; vpnglobal_vpnsessionpolicy_binding response [ ] = ( vpnglobal_vpnsessionpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch a vpnglobal_vpnsessionpolicy_binding resources .
3,223
public static sslvserver_binding get ( nitro_service service , String vservername ) throws Exception { sslvserver_binding obj = new sslvserver_binding ( ) ; obj . set_vservername ( vservername ) ; sslvserver_binding response = ( sslvserver_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch sslvserver_binding resource of given name .
3,224
public static sslvserver_binding [ ] get ( nitro_service service , String vservername [ ] ) throws Exception { if ( vservername != null && vservername . length > 0 ) { sslvserver_binding response [ ] = new sslvserver_binding [ vservername . length ] ; sslvserver_binding obj [ ] = new sslvserver_binding [ vservername . length ] ; for ( int i = 0 ; i < vservername . length ; i ++ ) { obj [ i ] = new sslvserver_binding ( ) ; obj [ i ] . set_vservername ( vservername [ i ] ) ; response [ i ] = ( sslvserver_binding ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; }
Use this API to fetch sslvserver_binding resources of given names .
3,225
public static transformpolicylabel_transformpolicy_binding [ ] get ( nitro_service service , String labelname ) throws Exception { transformpolicylabel_transformpolicy_binding obj = new transformpolicylabel_transformpolicy_binding ( ) ; obj . set_labelname ( labelname ) ; transformpolicylabel_transformpolicy_binding response [ ] = ( transformpolicylabel_transformpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch transformpolicylabel_transformpolicy_binding resources of given name .
3,226
static < INN extends CoreMap & HasWord > void mergeTwoDocuments ( List < INN > mainDocument , List < INN > auxDocument , Set < String > auxLabels , String background ) { boolean insideAuxTag = false ; boolean auxTagValid = true ; String prevAnswer = background ; Collection < INN > constituents = new ArrayList < INN > ( ) ; Iterator < INN > auxIterator = auxDocument . listIterator ( ) ; for ( INN wMain : mainDocument ) { String mainAnswer = wMain . get ( AnswerAnnotation . class ) ; INN wAux = auxIterator . next ( ) ; String auxAnswer = wAux . get ( AnswerAnnotation . class ) ; boolean insideMainTag = ! mainAnswer . equals ( background ) ; if ( auxLabels . contains ( auxAnswer ) && ! auxAnswer . equals ( background ) ) { if ( ! prevAnswer . equals ( auxAnswer ) && ! prevAnswer . equals ( background ) ) { if ( auxTagValid ) { for ( INN wi : constituents ) { wi . set ( AnswerAnnotation . class , prevAnswer ) ; } } constituents = new ArrayList < INN > ( ) ; } insideAuxTag = true ; if ( insideMainTag ) { auxTagValid = false ; } prevAnswer = auxAnswer ; constituents . add ( wMain ) ; } else { if ( insideAuxTag ) { if ( auxTagValid ) { for ( INN wi : constituents ) { wi . set ( AnswerAnnotation . class , prevAnswer ) ; } } constituents = new ArrayList < INN > ( ) ; } insideAuxTag = false ; auxTagValid = true ; prevAnswer = background ; } } if ( auxTagValid ) { for ( INN wi : constituents ) { wi . set ( AnswerAnnotation . class , prevAnswer ) ; } } }
This merges in labels from the auxDocument into the mainDocument when tokens have one of the labels in auxLabels and the subsequence labeled with this auxLabel does not conflict with any non - background labelling in the mainDocument .
3,227
public List < IN > classify ( List < IN > tokens ) { if ( baseClassifiers . isEmpty ( ) ) { return tokens ; } List < List < IN > > baseOutputs = new ArrayList < List < IN > > ( ) ; List < IN > output = baseClassifiers . get ( 0 ) . classifySentence ( tokens ) ; for ( int i = 0 , sz = output . size ( ) ; i < sz ; i ++ ) { tokens . get ( i ) . set ( AnswerAnnotation . class , output . get ( i ) . get ( AnswerAnnotation . class ) ) ; } baseOutputs . add ( tokens ) ; for ( int i = 1 , sz = baseClassifiers . size ( ) ; i < sz ; i ++ ) { output = baseClassifiers . get ( i ) . classifySentence ( tokens ) ; baseOutputs . add ( output ) ; } assert ( baseOutputs . size ( ) == baseClassifiers . size ( ) ) ; List < IN > finalAnswer = mergeDocuments ( baseOutputs ) ; return finalAnswer ; }
Generates the AnswerAnnotation labels of the combined model for the given tokens storing them in place in the tokens .
3,228
public static void main ( String [ ] args ) throws Exception { Properties props = StringUtils . argsToProperties ( args ) ; ClassifierCombiner ec = new ClassifierCombiner ( props ) ; System . err . println ( ec . classifyToString ( "Marketing : Sony Hopes to Win Much Bigger Market For Wide Range of Small-Video Products --- By Andrew B. Cohen Staff Reporter of The Wall Street Journal" ) ) ; }
Some basic testing of the ClassifierCombiner .
3,229
public static tunneltrafficpolicy_binding get ( nitro_service service , String name ) throws Exception { tunneltrafficpolicy_binding obj = new tunneltrafficpolicy_binding ( ) ; obj . set_name ( name ) ; tunneltrafficpolicy_binding response = ( tunneltrafficpolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch tunneltrafficpolicy_binding resource of given name .
3,230
public static authenticationlocalpolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationlocalpolicy_vpnvserver_binding obj = new authenticationlocalpolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; authenticationlocalpolicy_vpnvserver_binding response [ ] = ( authenticationlocalpolicy_vpnvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch authenticationlocalpolicy_vpnvserver_binding resources of given name .
3,231
public static vpnicaconnection [ ] get ( nitro_service service ) throws Exception { vpnicaconnection obj = new vpnicaconnection ( ) ; vpnicaconnection [ ] response = ( vpnicaconnection [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the vpnicaconnection resources that are configured on netscaler .
3,232
public static vpnicaconnection [ ] get ( nitro_service service , vpnicaconnection_args args ) throws Exception { vpnicaconnection obj = new vpnicaconnection ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; vpnicaconnection [ ] response = ( vpnicaconnection [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the vpnicaconnection resources that are configured on netscaler . This uses vpnicaconnection_args which is a way to provide additional arguments while fetching the resources .
3,233
public static appfwprofile_xmlattachmenturl_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_xmlattachmenturl_binding obj = new appfwprofile_xmlattachmenturl_binding ( ) ; obj . set_name ( name ) ; appfwprofile_xmlattachmenturl_binding response [ ] = ( appfwprofile_xmlattachmenturl_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch appfwprofile_xmlattachmenturl_binding resources of given name .
3,234
public static cmpglobal_binding get ( nitro_service service ) throws Exception { cmpglobal_binding obj = new cmpglobal_binding ( ) ; cmpglobal_binding response = ( cmpglobal_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch a cmpglobal_binding resource .
3,235
public static aaaglobal_aaapreauthenticationpolicy_binding [ ] get ( nitro_service service ) throws Exception { aaaglobal_aaapreauthenticationpolicy_binding obj = new aaaglobal_aaapreauthenticationpolicy_binding ( ) ; aaaglobal_aaapreauthenticationpolicy_binding response [ ] = ( aaaglobal_aaapreauthenticationpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch a aaaglobal_aaapreauthenticationpolicy_binding resources .
3,236
public static base_response add ( nitro_service client , appqoeaction resource ) throws Exception { appqoeaction addresource = new appqoeaction ( ) ; addresource . name = resource . name ; addresource . priority = resource . priority ; addresource . respondwith = resource . respondwith ; addresource . customfile = resource . customfile ; addresource . altcontentsvcname = resource . altcontentsvcname ; addresource . altcontentpath = resource . altcontentpath ; addresource . polqdepth = resource . polqdepth ; addresource . priqdepth = resource . priqdepth ; addresource . maxconn = resource . maxconn ; addresource . delay = resource . delay ; addresource . dostrigexpression = resource . dostrigexpression ; addresource . dosaction = resource . dosaction ; return addresource . add_resource ( client ) ; }
Use this API to add appqoeaction .
3,237
public static base_responses add ( nitro_service client , appqoeaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { appqoeaction addresources [ ] = new appqoeaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new appqoeaction ( ) ; addresources [ i ] . name = resources [ i ] . name ; addresources [ i ] . priority = resources [ i ] . priority ; addresources [ i ] . respondwith = resources [ i ] . respondwith ; addresources [ i ] . customfile = resources [ i ] . customfile ; addresources [ i ] . altcontentsvcname = resources [ i ] . altcontentsvcname ; addresources [ i ] . altcontentpath = resources [ i ] . altcontentpath ; addresources [ i ] . polqdepth = resources [ i ] . polqdepth ; addresources [ i ] . priqdepth = resources [ i ] . priqdepth ; addresources [ i ] . maxconn = resources [ i ] . maxconn ; addresources [ i ] . delay = resources [ i ] . delay ; addresources [ i ] . dostrigexpression = resources [ i ] . dostrigexpression ; addresources [ i ] . dosaction = resources [ i ] . dosaction ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add appqoeaction resources .
3,238
public static base_response update ( nitro_service client , appqoeaction resource ) throws Exception { appqoeaction updateresource = new appqoeaction ( ) ; updateresource . name = resource . name ; updateresource . priority = resource . priority ; updateresource . altcontentsvcname = resource . altcontentsvcname ; updateresource . altcontentpath = resource . altcontentpath ; updateresource . polqdepth = resource . polqdepth ; updateresource . priqdepth = resource . priqdepth ; updateresource . maxconn = resource . maxconn ; updateresource . delay = resource . delay ; updateresource . dostrigexpression = resource . dostrigexpression ; updateresource . dosaction = resource . dosaction ; return updateresource . update_resource ( client ) ; }
Use this API to update appqoeaction .
3,239
public static base_responses update ( nitro_service client , appqoeaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { appqoeaction updateresources [ ] = new appqoeaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new appqoeaction ( ) ; updateresources [ i ] . name = resources [ i ] . name ; updateresources [ i ] . priority = resources [ i ] . priority ; updateresources [ i ] . altcontentsvcname = resources [ i ] . altcontentsvcname ; updateresources [ i ] . altcontentpath = resources [ i ] . altcontentpath ; updateresources [ i ] . polqdepth = resources [ i ] . polqdepth ; updateresources [ i ] . priqdepth = resources [ i ] . priqdepth ; updateresources [ i ] . maxconn = resources [ i ] . maxconn ; updateresources [ i ] . delay = resources [ i ] . delay ; updateresources [ i ] . dostrigexpression = resources [ i ] . dostrigexpression ; updateresources [ i ] . dosaction = resources [ i ] . dosaction ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update appqoeaction resources .
3,240
public static appqoeaction [ ] get ( nitro_service service ) throws Exception { appqoeaction obj = new appqoeaction ( ) ; appqoeaction [ ] response = ( appqoeaction [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the appqoeaction resources that are configured on netscaler .
3,241
public static appqoeaction get ( nitro_service service , String name ) throws Exception { appqoeaction obj = new appqoeaction ( ) ; obj . set_name ( name ) ; appqoeaction response = ( appqoeaction ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch appqoeaction resource of given name .
3,242
public static lbvserver_pqpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { lbvserver_pqpolicy_binding obj = new lbvserver_pqpolicy_binding ( ) ; obj . set_name ( name ) ; lbvserver_pqpolicy_binding response [ ] = ( lbvserver_pqpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch lbvserver_pqpolicy_binding resources of given name .
3,243
public double [ ] scoresOf ( int [ ] sequence , int position ) { if ( position >= factorTables . length ) throw new RuntimeException ( "Index out of bounds: " + position ) ; double [ ] probThisGivenPrev = new double [ numClasses ] ; double [ ] probNextGivenThis = new double [ numClasses ] ; int prevLength = windowSize - 1 ; int [ ] prev = new int [ prevLength + 1 ] ; int i = 0 ; for ( ; i < prevLength - position ; i ++ ) { prev [ i ] = classIndex . indexOf ( backgroundSymbol ) ; } for ( ; i < prevLength ; i ++ ) { prev [ i ] = sequence [ position - prevLength + i ] ; } for ( int label = 0 ; label < numClasses ; label ++ ) { prev [ prev . length - 1 ] = label ; probThisGivenPrev [ label ] = factorTables [ position ] . unnormalizedLogProb ( prev ) ; } int nextLength = windowSize - 1 ; if ( position + nextLength >= length ( ) ) { nextLength = length ( ) - position - 1 ; } FactorTable nextFactorTable = factorTables [ position + nextLength ] ; if ( nextLength != windowSize - 1 ) { for ( int j = 0 ; j < windowSize - 1 - nextLength ; j ++ ) { nextFactorTable = nextFactorTable . sumOutFront ( ) ; } } if ( nextLength == 0 ) { Arrays . fill ( probNextGivenThis , 1.0 ) ; } else { int [ ] next = new int [ nextLength ] ; System . arraycopy ( sequence , position + 1 , next , 0 , nextLength ) ; for ( int label = 0 ; label < numClasses ; label ++ ) { probNextGivenThis [ label ] = nextFactorTable . unnormalizedConditionalLogProbGivenFirst ( label , next ) ; } } return ArrayMath . pairwiseAdd ( probThisGivenPrev , probNextGivenThis ) ; }
Computes the unnormalized log conditional distribution over values of the element at position pos in the sequence conditioned on the values of the elements in all other positions of the provided sequence .
3,244
public double scoreOf ( int [ ] sequence ) { int [ ] given = new int [ window ( ) - 1 ] ; Arrays . fill ( given , classIndex . indexOf ( backgroundSymbol ) ) ; double logProb = 0 ; for ( int i = 0 ; i < length ( ) ; i ++ ) { int label = sequence [ i ] ; logProb += condLogProbGivenPrevious ( i , label , given ) ; System . arraycopy ( given , 1 , given , 0 , given . length - 1 ) ; given [ given . length - 1 ] = label ; } return logProb ; }
Returns the log probability of this sequence given the CRF . Does so by computing the marginal of the first windowSize tags and then computing the conditional probability for the rest of them conditioned on the previous tags .
3,245
public double condLogProbGivenPrevious ( int position , int label , int [ ] prevLabels ) { if ( prevLabels . length + 1 == windowSize ) { return factorTables [ position ] . conditionalLogProbGivenPrevious ( prevLabels , label ) ; } else if ( prevLabels . length + 1 < windowSize ) { FactorTable ft = factorTables [ position ] . sumOutFront ( ) ; while ( ft . windowSize ( ) > prevLabels . length + 1 ) { ft = ft . sumOutFront ( ) ; } return ft . conditionalLogProbGivenPrevious ( prevLabels , label ) ; } else { int [ ] p = new int [ windowSize - 1 ] ; System . arraycopy ( prevLabels , prevLabels . length - p . length , p , 0 , p . length ) ; return factorTables [ position ] . conditionalLogProbGivenPrevious ( p , label ) ; } }
Gives the probability of a tag at a single position conditioned on a sequence of previous labels .
3,246
public double [ ] getConditionalDistribution ( int [ ] sequence , int position ) { double [ ] result = scoresOf ( sequence , position ) ; ArrayMath . logNormalize ( result ) ; result = ArrayMath . exp ( result ) ; return result ; }
Computes the distribution over values of the element at position pos in the sequence conditioned on the values of the elements in all other positions of the provided sequence .
3,247
public static authenticationldappolicy_systemglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationldappolicy_systemglobal_binding obj = new authenticationldappolicy_systemglobal_binding ( ) ; obj . set_name ( name ) ; authenticationldappolicy_systemglobal_binding response [ ] = ( authenticationldappolicy_systemglobal_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch authenticationldappolicy_systemglobal_binding resources of given name .
3,248
public double scoreOf ( Datum < L , F > example , L label ) { if ( example instanceof RVFDatum < ? , ? > ) return scoreOfRVFDatum ( ( RVFDatum < L , F > ) example , label ) ; int iLabel = labelIndex . indexOf ( label ) ; double score = 0.0 ; for ( F f : example . asFeatures ( ) ) { score += weight ( f , iLabel ) ; } return score + thresholds [ iLabel ] ; }
Returns of the score of the Datum for the specified label . Ignores the true label of the Datum .
3,249
public double scoreOf ( RVFDatum < L , F > example , L label ) { int iLabel = labelIndex . indexOf ( label ) ; double score = 0.0 ; Counter < F > features = example . asFeaturesCounter ( ) ; for ( F f : features . keySet ( ) ) { score += weight ( f , iLabel ) * features . getCount ( f ) ; } return score + thresholds [ iLabel ] ; }
Returns the score of the RVFDatum for the specified label . Ignores the true label of the RVFDatum .
3,250
private double scoreOf ( int [ ] feats , L label ) { int iLabel = labelIndex . indexOf ( label ) ; double score = 0.0 ; for ( int feat : feats ) { score += weight ( feat , iLabel ) ; } return score + thresholds [ iLabel ] ; }
Returns of the score of the Datum as internalized features for the specified label . Ignores the true label of the Datum . Doesn t consider a value for each feature .
3,251
public Counter < L > logProbabilityOf ( Datum < L , F > example ) { if ( example instanceof RVFDatum < ? , ? > ) return logProbabilityOfRVFDatum ( ( RVFDatum < L , F > ) example ) ; Counter < L > scores = scoresOf ( example ) ; Counters . logNormalizeInPlace ( scores ) ; return scores ; }
Returns a counter mapping from each class name to the log probability of that class for a certain example . Looking at the the sum of e^v for each count v should be 1 . 0 .
3,252
public Counter < L > logProbabilityOf ( int [ ] features ) { Counter < L > scores = scoresOf ( features ) ; Counters . logNormalizeInPlace ( scores ) ; return scores ; }
Given a datum s features returns a counter mapping from each class name to the log probability of that class . Looking at the the sum of e^v for each count v should be 1 .
3,253
protected Set < Integer > getLabelIndices ( Set < L > labels ) { Set < Integer > iLabels = new HashSet < Integer > ( ) ; for ( L label : labels ) { int iLabel = labelIndex . indexOf ( label ) ; iLabels . add ( iLabel ) ; if ( iLabel < 0 ) throw new IllegalArgumentException ( "Unknown label " + label ) ; } return iLabels ; }
Returns indices of labels
3,254
public String topFeaturesToString ( List < Triple < F , L , Double > > topFeatures ) { int maxLeng = 0 ; for ( Triple < F , L , Double > t : topFeatures ) { String key = "(" + t . first + "," + t . second + ")" ; int leng = key . length ( ) ; if ( leng > maxLeng ) { maxLeng = leng ; } } maxLeng = Math . min ( 64 , maxLeng ) ; NumberFormat nf = NumberFormat . getNumberInstance ( ) ; nf . setMinimumFractionDigits ( 4 ) ; nf . setMaximumFractionDigits ( 4 ) ; if ( nf instanceof DecimalFormat ) { ( ( DecimalFormat ) nf ) . setPositivePrefix ( " " ) ; } StringBuilder sb = new StringBuilder ( ) ; for ( Triple < F , L , Double > t : topFeatures ) { String key = "(" + t . first + "," + t . second + ")" ; sb . append ( StringUtils . pad ( key , maxLeng ) ) ; sb . append ( " " ) ; double cnt = t . third ( ) ; if ( Double . isInfinite ( cnt ) ) { sb . append ( cnt ) ; } else { sb . append ( nf . format ( cnt ) ) ; } sb . append ( "\n" ) ; } return sb . toString ( ) ; }
Returns string representation of a list of top features
3,255
public String toDistributionString ( int treshold ) { Counter < Double > weightCounts = new ClassicCounter < Double > ( ) ; StringBuilder s = new StringBuilder ( ) ; s . append ( "Total number of weights: " ) . append ( totalSize ( ) ) ; for ( int f = 0 ; f < weights . length ; f ++ ) { for ( int l = 0 ; l < weights [ f ] . length ; l ++ ) { weightCounts . incrementCount ( weights [ f ] [ l ] ) ; } } s . append ( "Counts of weights\n" ) ; Set < Double > keys = Counters . keysAbove ( weightCounts , treshold ) ; s . append ( keys . size ( ) ) . append ( " keys occur more than " ) . append ( treshold ) . append ( " times " ) ; return s . toString ( ) ; }
Similar to histogram but exact values of the weights to see whether there are many equal weights .
3,256
private static int bucketizeValue ( double wt ) { int index ; if ( wt >= 0.0 ) { index = ( ( int ) ( wt * 10.0 ) ) + 100 ; } else { index = ( ( int ) ( Math . floor ( wt * 10.0 ) ) ) + 100 ; } if ( index < 0 ) { index = 201 ; } else if ( index > 200 ) { index = 200 ; } return index ; }
Convert parameter value into number between 0 and 201
3,257
private static void printHistCounts ( int ind , String title , PrintWriter pw , double [ ] [ ] hist , Object [ ] [ ] histEg ) { pw . println ( title ) ; for ( int i = 0 ; i < 200 ; i ++ ) { int intpart , fracpart ; if ( i < 100 ) { intpart = 10 - ( ( i + 9 ) / 10 ) ; fracpart = ( 10 - ( i % 10 ) ) % 10 ; } else { intpart = ( i / 10 ) - 10 ; fracpart = i % 10 ; } pw . print ( "[" + ( ( i < 100 ) ? "-" : "" ) + intpart + "." + fracpart + ", " + ( ( i < 100 ) ? "-" : "" ) + intpart + "." + fracpart + "+0.1): " + hist [ ind ] [ i ] ) ; if ( histEg [ ind ] [ i ] != null ) { pw . print ( " [" + histEg [ ind ] [ i ] + ( ( hist [ ind ] [ i ] > 1 ) ? ", ..." : "" ) + "]" ) ; } pw . println ( ) ; } }
Print histogram counts from hist and examples over a certain range
3,258
public void dump ( ) { Datum < L , F > allFeatures = new BasicDatum < L , F > ( features ( ) , ( L ) null ) ; justificationOf ( allFeatures ) ; }
Print all features in the classifier and the weight that they assign to each class .
3,259
public Map < L , Counter < F > > weightsAsMapOfCounters ( ) { Map < L , Counter < F > > mapOfCounters = new HashMap < L , Counter < F > > ( ) ; for ( L label : labelIndex ) { int labelID = labelIndex . indexOf ( label ) ; Counter < F > c = new ClassicCounter < F > ( ) ; mapOfCounters . put ( label , c ) ; for ( F f : featureIndex ) { c . incrementCount ( f , weights [ featureIndex . indexOf ( f ) ] [ labelID ] ) ; } } return mapOfCounters ; }
This method returns a map from each label to a counter of feature weights for that label . Useful for feature analysis .
3,260
public void dumpSorted ( ) { Datum < L , F > allFeatures = new BasicDatum < L , F > ( features ( ) , ( L ) null ) ; justificationOf ( allFeatures , new PrintWriter ( System . err , true ) , true ) ; }
Print all features in the classifier and the weight that they assign to each class . The feature names are printed in sorted order .
3,261
public static < L , F > LinearClassifier < L , F > readClassifier ( String loadPath ) { System . err . print ( "Deserializing classifier from " + loadPath + "..." ) ; try { ObjectInputStream ois = IOUtils . readStreamFromString ( loadPath ) ; LinearClassifier < L , F > classifier = ErasureUtils . < LinearClassifier < L , F > > uncheckedCast ( ois . readObject ( ) ) ; ois . close ( ) ; return classifier ; } catch ( Exception e ) { e . printStackTrace ( ) ; throw new RuntimeException ( "Deserialization failed: " + e . getMessage ( ) ) ; } }
Loads a classifier from a file . Simple convenience wrapper for IOUtils . readFromString .
3,262
public static void writeClassifier ( LinearClassifier < ? , ? > classifier , String writePath ) { try { IOUtils . writeObjectToFile ( classifier , writePath ) ; } catch ( Exception e ) { throw new RuntimeException ( "Serialization failed: " + e . getMessage ( ) , e ) ; } }
Convenience wrapper for IOUtils . writeObjectToFile
3,263
public static cspolicy_cspolicylabel_binding [ ] get ( nitro_service service , String policyname ) throws Exception { cspolicy_cspolicylabel_binding obj = new cspolicy_cspolicylabel_binding ( ) ; obj . set_policyname ( policyname ) ; cspolicy_cspolicylabel_binding response [ ] = ( cspolicy_cspolicylabel_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch cspolicy_cspolicylabel_binding resources of given name .
3,264
public static long count ( nitro_service service , String policyname ) throws Exception { cspolicy_cspolicylabel_binding obj = new cspolicy_cspolicylabel_binding ( ) ; obj . set_policyname ( policyname ) ; options option = new options ( ) ; option . set_count ( true ) ; cspolicy_cspolicylabel_binding response [ ] = ( cspolicy_cspolicylabel_binding [ ] ) obj . get_resources ( service , option ) ; if ( response != null ) { return response [ 0 ] . __count ; } return 0 ; }
Use this API to count cspolicy_cspolicylabel_binding resources configued on NetScaler .
3,265
public static vpnclientlessaccesspolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnclientlessaccesspolicy_vpnvserver_binding obj = new vpnclientlessaccesspolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; vpnclientlessaccesspolicy_vpnvserver_binding response [ ] = ( vpnclientlessaccesspolicy_vpnvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch vpnclientlessaccesspolicy_vpnvserver_binding resources of given name .
3,266
public static base_response export ( nitro_service client , appfwarchive resource ) throws Exception { appfwarchive exportresource = new appfwarchive ( ) ; exportresource . name = resource . name ; exportresource . target = resource . target ; return exportresource . perform_operation ( client , "export" ) ; }
Use this API to export appfwarchive .
3,267
public static base_response Import ( nitro_service client , appfwarchive resource ) throws Exception { appfwarchive Importresource = new appfwarchive ( ) ; Importresource . src = resource . src ; Importresource . name = resource . name ; Importresource . comment = resource . comment ; return Importresource . perform_operation ( client , "Import" ) ; }
Use this API to Import appfwarchive .
3,268
public static appfwarchive get ( nitro_service service ) throws Exception { appfwarchive obj = new appfwarchive ( ) ; appfwarchive [ ] response = ( appfwarchive [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the appfwarchive resources that are configured on netscaler .
3,269
public static vlan_channel_binding [ ] get ( nitro_service service , Long id ) throws Exception { vlan_channel_binding obj = new vlan_channel_binding ( ) ; obj . set_id ( id ) ; vlan_channel_binding response [ ] = ( vlan_channel_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch vlan_channel_binding resources of given name .
3,270
public static base_response add ( nitro_service client , service resource ) throws Exception { service addresource = new service ( ) ; addresource . name = resource . name ; addresource . ip = resource . ip ; addresource . servername = resource . servername ; addresource . servicetype = resource . servicetype ; addresource . port = resource . port ; addresource . cleartextport = resource . cleartextport ; addresource . cachetype = resource . cachetype ; addresource . maxclient = resource . maxclient ; addresource . healthmonitor = resource . healthmonitor ; addresource . maxreq = resource . maxreq ; addresource . cacheable = resource . cacheable ; addresource . cip = resource . cip ; addresource . cipheader = resource . cipheader ; addresource . usip = resource . usip ; addresource . pathmonitor = resource . pathmonitor ; addresource . pathmonitorindv = resource . pathmonitorindv ; addresource . useproxyport = resource . useproxyport ; addresource . sc = resource . sc ; addresource . sp = resource . sp ; addresource . rtspsessionidremap = resource . rtspsessionidremap ; addresource . clttimeout = resource . clttimeout ; addresource . svrtimeout = resource . svrtimeout ; addresource . customserverid = resource . customserverid ; addresource . serverid = resource . serverid ; addresource . cka = resource . cka ; addresource . tcpb = resource . tcpb ; addresource . cmp = resource . cmp ; addresource . maxbandwidth = resource . maxbandwidth ; addresource . accessdown = resource . accessdown ; addresource . monthreshold = resource . monthreshold ; addresource . state = resource . state ; addresource . downstateflush = resource . downstateflush ; addresource . tcpprofilename = resource . tcpprofilename ; addresource . httpprofilename = resource . httpprofilename ; addresource . hashid = resource . hashid ; addresource . comment = resource . comment ; addresource . appflowlog = resource . appflowlog ; addresource . netprofile = resource . netprofile ; addresource . td = resource . td ; return addresource . add_resource ( client ) ; }
Use this API to add service .
3,271
public static base_response disable ( nitro_service client , service resource ) throws Exception { service disableresource = new service ( ) ; disableresource . name = resource . name ; disableresource . delay = resource . delay ; disableresource . graceful = resource . graceful ; return disableresource . perform_operation ( client , "disable" ) ; }
Use this API to disable service .
3,272
public static base_responses disable ( nitro_service client , service resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { service disableresources [ ] = new service [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { disableresources [ i ] = new service ( ) ; disableresources [ i ] . name = resources [ i ] . name ; disableresources [ i ] . delay = resources [ i ] . delay ; disableresources [ i ] . graceful = resources [ i ] . graceful ; } result = perform_operation_bulk_request ( client , disableresources , "disable" ) ; } return result ; }
Use this API to disable service resources .
3,273
public static service [ ] get ( nitro_service service , service_args args ) throws Exception { service obj = new service ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; service [ ] response = ( service [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the service resources that are configured on netscaler . This uses service_args which is a way to provide additional arguments while fetching the resources .
3,274
public static service get ( nitro_service service , String name ) throws Exception { service obj = new service ( ) ; obj . set_name ( name ) ; service response = ( service ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch service resource of given name .
3,275
public static long count ( nitro_service service ) throws Exception { service obj = new service ( ) ; options option = new options ( ) ; option . set_count ( true ) ; service [ ] response = ( service [ ] ) obj . get_resources ( service , option ) ; if ( response != null ) { return response [ 0 ] . __count ; } return 0 ; }
Use this API to count the service resources configured on NetScaler .
3,276
public static base_response add ( nitro_service client , channel resource ) throws Exception { channel addresource = new channel ( ) ; addresource . id = resource . id ; addresource . ifnum = resource . ifnum ; addresource . state = resource . state ; addresource . mode = resource . mode ; addresource . conndistr = resource . conndistr ; addresource . macdistr = resource . macdistr ; addresource . lamac = resource . lamac ; addresource . speed = resource . speed ; addresource . flowctl = resource . flowctl ; addresource . hamonitor = resource . hamonitor ; addresource . tagall = resource . tagall ; addresource . trunk = resource . trunk ; addresource . ifalias = resource . ifalias ; addresource . throughput = resource . throughput ; addresource . bandwidthhigh = resource . bandwidthhigh ; addresource . bandwidthnormal = resource . bandwidthnormal ; return addresource . add_resource ( client ) ; }
Use this API to add channel .
3,277
public static base_responses add ( nitro_service client , channel resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { channel addresources [ ] = new channel [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new channel ( ) ; addresources [ i ] . id = resources [ i ] . id ; addresources [ i ] . ifnum = resources [ i ] . ifnum ; addresources [ i ] . state = resources [ i ] . state ; addresources [ i ] . mode = resources [ i ] . mode ; addresources [ i ] . conndistr = resources [ i ] . conndistr ; addresources [ i ] . macdistr = resources [ i ] . macdistr ; addresources [ i ] . lamac = resources [ i ] . lamac ; addresources [ i ] . speed = resources [ i ] . speed ; addresources [ i ] . flowctl = resources [ i ] . flowctl ; addresources [ i ] . hamonitor = resources [ i ] . hamonitor ; addresources [ i ] . tagall = resources [ i ] . tagall ; addresources [ i ] . trunk = resources [ i ] . trunk ; addresources [ i ] . ifalias = resources [ i ] . ifalias ; addresources [ i ] . throughput = resources [ i ] . throughput ; addresources [ i ] . bandwidthhigh = resources [ i ] . bandwidthhigh ; addresources [ i ] . bandwidthnormal = resources [ i ] . bandwidthnormal ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add channel resources .
3,278
public static base_response update ( nitro_service client , channel resource ) throws Exception { channel updateresource = new channel ( ) ; updateresource . id = resource . id ; updateresource . state = resource . state ; updateresource . mode = resource . mode ; updateresource . conndistr = resource . conndistr ; updateresource . macdistr = resource . macdistr ; updateresource . lamac = resource . lamac ; updateresource . speed = resource . speed ; updateresource . flowctl = resource . flowctl ; updateresource . hamonitor = resource . hamonitor ; updateresource . tagall = resource . tagall ; updateresource . trunk = resource . trunk ; updateresource . ifalias = resource . ifalias ; updateresource . throughput = resource . throughput ; updateresource . lrminthroughput = resource . lrminthroughput ; updateresource . bandwidthhigh = resource . bandwidthhigh ; updateresource . bandwidthnormal = resource . bandwidthnormal ; return updateresource . update_resource ( client ) ; }
Use this API to update channel .
3,279
public static base_responses update ( nitro_service client , channel resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { channel updateresources [ ] = new channel [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new channel ( ) ; updateresources [ i ] . id = resources [ i ] . id ; updateresources [ i ] . state = resources [ i ] . state ; updateresources [ i ] . mode = resources [ i ] . mode ; updateresources [ i ] . conndistr = resources [ i ] . conndistr ; updateresources [ i ] . macdistr = resources [ i ] . macdistr ; updateresources [ i ] . lamac = resources [ i ] . lamac ; updateresources [ i ] . speed = resources [ i ] . speed ; updateresources [ i ] . flowctl = resources [ i ] . flowctl ; updateresources [ i ] . hamonitor = resources [ i ] . hamonitor ; updateresources [ i ] . tagall = resources [ i ] . tagall ; updateresources [ i ] . trunk = resources [ i ] . trunk ; updateresources [ i ] . ifalias = resources [ i ] . ifalias ; updateresources [ i ] . throughput = resources [ i ] . throughput ; updateresources [ i ] . lrminthroughput = resources [ i ] . lrminthroughput ; updateresources [ i ] . bandwidthhigh = resources [ i ] . bandwidthhigh ; updateresources [ i ] . bandwidthnormal = resources [ i ] . bandwidthnormal ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update channel resources .
3,280
public static channel [ ] get ( nitro_service service ) throws Exception { channel obj = new channel ( ) ; channel [ ] response = ( channel [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the channel resources that are configured on netscaler .
3,281
public static channel get ( nitro_service service , String id ) throws Exception { channel obj = new channel ( ) ; obj . set_id ( id ) ; channel response = ( channel ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch channel resource of given name .
3,282
public static channel [ ] get ( nitro_service service , String id [ ] ) throws Exception { if ( id != null && id . length > 0 ) { channel response [ ] = new channel [ id . length ] ; channel obj [ ] = new channel [ id . length ] ; for ( int i = 0 ; i < id . length ; i ++ ) { obj [ i ] = new channel ( ) ; obj [ i ] . set_id ( id [ i ] ) ; response [ i ] = ( channel ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; }
Use this API to fetch channel resources of given names .
3,283
public static lbwlm_lbvserver_binding [ ] get ( nitro_service service , String wlmname ) throws Exception { lbwlm_lbvserver_binding obj = new lbwlm_lbvserver_binding ( ) ; obj . set_wlmname ( wlmname ) ; lbwlm_lbvserver_binding response [ ] = ( lbwlm_lbvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch lbwlm_lbvserver_binding resources of given name .
3,284
public static lbwlm_lbvserver_binding [ ] get_filtered ( nitro_service service , String wlmname , filtervalue [ ] filter ) throws Exception { lbwlm_lbvserver_binding obj = new lbwlm_lbvserver_binding ( ) ; obj . set_wlmname ( wlmname ) ; options option = new options ( ) ; option . set_filter ( filter ) ; lbwlm_lbvserver_binding [ ] response = ( lbwlm_lbvserver_binding [ ] ) obj . getfiltered ( service , option ) ; return response ; }
Use this API to fetch filtered set of lbwlm_lbvserver_binding resources . set the filter parameter values in filtervalue object .
3,285
public static long count ( nitro_service service , String wlmname ) throws Exception { lbwlm_lbvserver_binding obj = new lbwlm_lbvserver_binding ( ) ; obj . set_wlmname ( wlmname ) ; options option = new options ( ) ; option . set_count ( true ) ; lbwlm_lbvserver_binding response [ ] = ( lbwlm_lbvserver_binding [ ] ) obj . get_resources ( service , option ) ; if ( response != null ) { return response [ 0 ] . __count ; } return 0 ; }
Use this API to count lbwlm_lbvserver_binding resources configued on NetScaler .
3,286
public static base_response add ( nitro_service client , dnspolicy resource ) throws Exception { dnspolicy addresource = new dnspolicy ( ) ; addresource . name = resource . name ; addresource . rule = resource . rule ; addresource . viewname = resource . viewname ; addresource . preferredlocation = resource . preferredlocation ; addresource . preferredloclist = resource . preferredloclist ; addresource . drop = resource . drop ; addresource . cachebypass = resource . cachebypass ; addresource . actionname = resource . actionname ; return addresource . add_resource ( client ) ; }
Use this API to add dnspolicy .
3,287
public static base_responses add ( nitro_service client , dnspolicy resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnspolicy addresources [ ] = new dnspolicy [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new dnspolicy ( ) ; addresources [ i ] . name = resources [ i ] . name ; addresources [ i ] . rule = resources [ i ] . rule ; addresources [ i ] . viewname = resources [ i ] . viewname ; addresources [ i ] . preferredlocation = resources [ i ] . preferredlocation ; addresources [ i ] . preferredloclist = resources [ i ] . preferredloclist ; addresources [ i ] . drop = resources [ i ] . drop ; addresources [ i ] . cachebypass = resources [ i ] . cachebypass ; addresources [ i ] . actionname = resources [ i ] . actionname ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add dnspolicy resources .
3,288
public static base_response update ( nitro_service client , dnspolicy resource ) throws Exception { dnspolicy updateresource = new dnspolicy ( ) ; updateresource . name = resource . name ; updateresource . rule = resource . rule ; updateresource . viewname = resource . viewname ; updateresource . preferredlocation = resource . preferredlocation ; updateresource . preferredloclist = resource . preferredloclist ; updateresource . drop = resource . drop ; updateresource . cachebypass = resource . cachebypass ; updateresource . actionname = resource . actionname ; return updateresource . update_resource ( client ) ; }
Use this API to update dnspolicy .
3,289
public static base_responses update ( nitro_service client , dnspolicy resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnspolicy updateresources [ ] = new dnspolicy [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new dnspolicy ( ) ; updateresources [ i ] . name = resources [ i ] . name ; updateresources [ i ] . rule = resources [ i ] . rule ; updateresources [ i ] . viewname = resources [ i ] . viewname ; updateresources [ i ] . preferredlocation = resources [ i ] . preferredlocation ; updateresources [ i ] . preferredloclist = resources [ i ] . preferredloclist ; updateresources [ i ] . drop = resources [ i ] . drop ; updateresources [ i ] . cachebypass = resources [ i ] . cachebypass ; updateresources [ i ] . actionname = resources [ i ] . actionname ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update dnspolicy resources .
3,290
public static dnspolicy [ ] get ( nitro_service service ) throws Exception { dnspolicy obj = new dnspolicy ( ) ; dnspolicy [ ] response = ( dnspolicy [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the dnspolicy resources that are configured on netscaler .
3,291
public static dnspolicy get ( nitro_service service , String name ) throws Exception { dnspolicy obj = new dnspolicy ( ) ; obj . set_name ( name ) ; dnspolicy response = ( dnspolicy ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch dnspolicy resource of given name .
3,292
public static void processPath ( File path , String suffix , boolean recursively , FileProcessor processor ) { processPath ( path , new ExtensionFileFilter ( suffix , recursively ) , processor ) ; }
Apply a method to the files under a given directory and perhaps its subdirectories .
3,293
public static dnspolicylabel_dnspolicy_binding [ ] get ( nitro_service service , String labelname ) throws Exception { dnspolicylabel_dnspolicy_binding obj = new dnspolicylabel_dnspolicy_binding ( ) ; obj . set_labelname ( labelname ) ; dnspolicylabel_dnspolicy_binding response [ ] = ( dnspolicylabel_dnspolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch dnspolicylabel_dnspolicy_binding resources of given name .
3,294
public static authorizationpolicylabel_stats [ ] get ( nitro_service service ) throws Exception { authorizationpolicylabel_stats obj = new authorizationpolicylabel_stats ( ) ; authorizationpolicylabel_stats [ ] response = ( authorizationpolicylabel_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all authorizationpolicylabel_stats resources that are configured on netscaler .
3,295
public static authorizationpolicylabel_stats get ( nitro_service service , String labelname ) throws Exception { authorizationpolicylabel_stats obj = new authorizationpolicylabel_stats ( ) ; obj . set_labelname ( labelname ) ; authorizationpolicylabel_stats response = ( authorizationpolicylabel_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of authorizationpolicylabel_stats resource of given name .
3,296
public static authenticationcertpolicy_binding get ( nitro_service service , String name ) throws Exception { authenticationcertpolicy_binding obj = new authenticationcertpolicy_binding ( ) ; obj . set_name ( name ) ; authenticationcertpolicy_binding response = ( authenticationcertpolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch authenticationcertpolicy_binding resource of given name .
3,297
public static nsmemory_stats [ ] get ( nitro_service service ) throws Exception { nsmemory_stats obj = new nsmemory_stats ( ) ; nsmemory_stats [ ] response = ( nsmemory_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all nsmemory_stats resources that are configured on netscaler .
3,298
public static nsmemory_stats get ( nitro_service service , String pool ) throws Exception { nsmemory_stats obj = new nsmemory_stats ( ) ; obj . set_pool ( pool ) ; nsmemory_stats response = ( nsmemory_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of nsmemory_stats resource of given name .
3,299
public static lbmetrictable_binding get ( nitro_service service , String metrictable ) throws Exception { lbmetrictable_binding obj = new lbmetrictable_binding ( ) ; obj . set_metrictable ( metrictable ) ; lbmetrictable_binding response = ( lbmetrictable_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch lbmetrictable_binding resource of given name .