idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
2,300 | public static lbroute [ ] get ( nitro_service service ) throws Exception { lbroute obj = new lbroute ( ) ; lbroute [ ] response = ( lbroute [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the lbroute resources that are configured on netscaler . |
2,301 | public static base_response add ( nitro_service client , nsip6 resource ) throws Exception { nsip6 addresource = new nsip6 ( ) ; addresource . ipv6address = resource . ipv6address ; addresource . scope = resource . scope ; addresource . type = resource . type ; addresource . vlan = resource . vlan ; addresource . nd = ... | Use this API to add nsip6 . |
2,302 | public static base_responses add ( nitro_service client , nsip6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsip6 addresources [ ] = new nsip6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new ... | Use this API to add nsip6 resources . |
2,303 | public static base_response delete ( nitro_service client , String ipv6address ) throws Exception { nsip6 deleteresource = new nsip6 ( ) ; deleteresource . ipv6address = ipv6address ; return deleteresource . delete_resource ( client ) ; } | Use this API to delete nsip6 of given name . |
2,304 | public static base_response delete ( nitro_service client , nsip6 resource ) throws Exception { nsip6 deleteresource = new nsip6 ( ) ; deleteresource . ipv6address = resource . ipv6address ; deleteresource . td = resource . td ; return deleteresource . delete_resource ( client ) ; } | Use this API to delete nsip6 . |
2,305 | public static base_responses delete ( nitro_service client , String ipv6address [ ] ) throws Exception { base_responses result = null ; if ( ipv6address != null && ipv6address . length > 0 ) { nsip6 deleteresources [ ] = new nsip6 [ ipv6address . length ] ; for ( int i = 0 ; i < ipv6address . length ; i ++ ) { deletere... | Use this API to delete nsip6 resources of given names . |
2,306 | public static base_responses delete ( nitro_service client , nsip6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsip6 deleteresources [ ] = new nsip6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { deleteresources [ i... | Use this API to delete nsip6 resources . |
2,307 | public static base_response update ( nitro_service client , nsip6 resource ) throws Exception { nsip6 updateresource = new nsip6 ( ) ; updateresource . ipv6address = resource . ipv6address ; updateresource . td = resource . td ; updateresource . nd = resource . nd ; updateresource . icmp = resource . icmp ; updateresou... | Use this API to update nsip6 . |
2,308 | public static base_responses update ( nitro_service client , nsip6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsip6 updateresources [ ] = new nsip6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i... | Use this API to update nsip6 resources . |
2,309 | public static base_response unset ( nitro_service client , nsip6 resource , String [ ] args ) throws Exception { nsip6 unsetresource = new nsip6 ( ) ; unsetresource . ipv6address = resource . ipv6address ; unsetresource . td = resource . td ; return unsetresource . unset_resource ( client , args ) ; } | Use this API to unset the properties of nsip6 resource . Properties that need to be unset are specified in args array . |
2,310 | public static nsip6 [ ] get ( nitro_service service ) throws Exception { nsip6 obj = new nsip6 ( ) ; nsip6 [ ] response = ( nsip6 [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the nsip6 resources that are configured on netscaler . |
2,311 | public Triple < Double , Integer , Integer > getAccuracyInfo ( ) { int totalCorrect = tokensCorrect ; int totalWrong = tokensCount - tokensCorrect ; return new Triple < Double , Integer , Integer > ( ( ( ( double ) totalCorrect ) / tokensCount ) , totalCorrect , totalWrong ) ; } | Return overall per token accuracy |
2,312 | public String getAccuracyDescription ( int numDigits ) { NumberFormat nf = NumberFormat . getNumberInstance ( ) ; nf . setMaximumFractionDigits ( numDigits ) ; Triple < Double , Integer , Integer > accu = getAccuracyInfo ( ) ; return nf . format ( accu . first ( ) ) + " (" + accu . second ( ) + "/" + ( accu . second (... | Returns a String summarizing overall accuracy that will print nicely . |
2,313 | public ClassicCounter < K2 > setCounter ( K1 o , Counter < K2 > c ) { ClassicCounter < K2 > old = getCounter ( o ) ; total -= old . totalCount ( ) ; if ( c instanceof ClassicCounter ) { map . put ( o , ( ClassicCounter < K2 > ) c ) ; } else { map . put ( o , new ClassicCounter < K2 > ( c ) ) ; } total += c . totalCount... | replace the counter for K1 - index o by new counter c |
2,314 | @ SuppressWarnings ( { "unchecked" } ) public static < K1 , K2 > TwoDimensionalCounter < K2 , K1 > reverseIndexOrder ( TwoDimensionalCounter < K1 , K2 > cc ) { TwoDimensionalCounter < K2 , K1 > result = new TwoDimensionalCounter < K2 , K1 > ( ( MapFactory ) cc . outerMF , ( MapFactory ) cc . innerMF ) ; for ( K1 key1 :... | Produces a new ConditionalCounter . |
2,315 | public Counter < K1 > sumInnerCounter ( ) { Counter < K1 > summed = new ClassicCounter < K1 > ( ) ; for ( K1 key : this . firstKeySet ( ) ) { summed . incrementCount ( key , this . getCounter ( key ) . totalCount ( ) ) ; } return summed ; } | Returns the counters with keys as the first key and count as the total count of the inner counter for that key |
2,316 | public static appfwpolicylabel_binding get ( nitro_service service , String labelname ) throws Exception { appfwpolicylabel_binding obj = new appfwpolicylabel_binding ( ) ; obj . set_labelname ( labelname ) ; appfwpolicylabel_binding response = ( appfwpolicylabel_binding ) obj . get_resource ( service ) ; return respon... | Use this API to fetch appfwpolicylabel_binding resource of given name . |
2,317 | public static base_response create ( nitro_service client , ssldhparam resource ) throws Exception { ssldhparam createresource = new ssldhparam ( ) ; createresource . dhfile = resource . dhfile ; createresource . bits = resource . bits ; createresource . gen = resource . gen ; return createresource . perform_operation ... | Use this API to create ssldhparam . |
2,318 | public static auditnslogpolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { auditnslogpolicy_vpnvserver_binding obj = new auditnslogpolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; auditnslogpolicy_vpnvserver_binding response [ ] = ( auditnslogpolicy_vpnvserver_binding ... | Use this API to fetch auditnslogpolicy_vpnvserver_binding resources of given name . |
2,319 | public static authenticationvserver_authenticationtacacspolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationvserver_authenticationtacacspolicy_binding obj = new authenticationvserver_authenticationtacacspolicy_binding ( ) ; obj . set_name ( name ) ; authenticationvserver_auth... | Use this API to fetch authenticationvserver_authenticationtacacspolicy_binding resources of given name . |
2,320 | public static vpntrafficpolicy_aaagroup_binding [ ] get ( nitro_service service , String name ) throws Exception { vpntrafficpolicy_aaagroup_binding obj = new vpntrafficpolicy_aaagroup_binding ( ) ; obj . set_name ( name ) ; vpntrafficpolicy_aaagroup_binding response [ ] = ( vpntrafficpolicy_aaagroup_binding [ ] ) obj ... | Use this API to fetch vpntrafficpolicy_aaagroup_binding resources of given name . |
2,321 | public static < T > String listToString ( List < T > list , final boolean justValue ) { return listToString ( list , justValue , null ) ; } | Returns the sentence as a string with a space between words . Designed to work robustly even if the elements stored in the Sentence are not of type Label . |
2,322 | public static < T > String listToString ( List < T > list , final boolean justValue , final String separator ) { StringBuilder s = new StringBuilder ( ) ; for ( Iterator < T > wordIterator = list . iterator ( ) ; wordIterator . hasNext ( ) ; ) { T o = wordIterator . next ( ) ; s . append ( wordToString ( o , justValue ... | As already described but if separator is not null then objects such as TaggedWord |
2,323 | public Set < String > getTags ( ) { Set < String > tags = new HashSet < String > ( classIndex . objectsList ( ) ) ; tags . remove ( flags . backgroundSymbol ) ; return tags ; } | Returns the Set of entities recognized by this Classifier . |
2,324 | protected String classOf ( List < IN > lineInfos , int pos ) { Datum < String , String > d = makeDatum ( lineInfos , pos , featureFactory ) ; return classifier . classOf ( d ) ; } | Returns the most likely class for the word at the given position . |
2,325 | public double loglikelihood ( List < IN > lineInfos ) { double cll = 0.0 ; for ( int i = 0 ; i < lineInfos . size ( ) ; i ++ ) { Datum < String , String > d = makeDatum ( lineInfos , i , featureFactory ) ; Counter < String > c = classifier . logProbabilityOf ( d ) ; double total = Double . NEGATIVE_INFINITY ; for ( Str... | Returns the log conditional likelihood of the given dataset . |
2,326 | public Dataset < String , String > getDataset ( Dataset < String , String > oldData , Index < String > goodFeatures ) { int [ ] [ ] oldDataArray = oldData . getDataArray ( ) ; int [ ] oldLabelArray = oldData . getLabelsArray ( ) ; Index < String > oldFeatureIndex = oldData . featureIndex ; int [ ] oldToNewFeatureMap = ... | Build a Dataset from some data . |
2,327 | public < T extends CoreLabel > Datum < String , String > makeDatum ( List < IN > info , int loc , FeatureFactory featureFactory ) { PaddedList < IN > pInfo = new PaddedList < IN > ( info , pad ) ; Collection < String > features = new ArrayList < String > ( ) ; List < Clique > cliques = featureFactory . getCliques ( ) ;... | Make an individual Datum out of the data list info focused at position loc . |
2,328 | private static Collection < String > addOtherClasses ( Collection < String > feats , List < ? extends CoreLabel > info , int loc , Clique c ) { String addend = null ; String pAnswer = info . get ( loc - 1 ) . get ( AnswerAnnotation . class ) ; String p2Answer = info . get ( loc - 2 ) . get ( AnswerAnnotation . class ) ... | This adds to the feature name the name of classes that are other than the current class that are involved in the clique . In the CMM these other classes become part of the conditioning feature and only the class of the current position is being predicted . |
2,329 | public static void main ( String [ ] args ) throws Exception { StringUtils . printErrInvocationString ( "CMMClassifier" , args ) ; Properties props = StringUtils . argsToProperties ( args ) ; CMMClassifier cmm = new CMMClassifier < CoreLabel > ( props ) ; String testFile = cmm . flags . testFile ; String textFile = cmm... | Command - line version of the classifier . See the class comments for examples of use and SeqClassifierFlags for more information on supported flags . |
2,330 | public static nspbr6_stats [ ] get ( nitro_service service , options option ) throws Exception { nspbr6_stats obj = new nspbr6_stats ( ) ; nspbr6_stats [ ] response = ( nspbr6_stats [ ] ) obj . stat_resources ( service , option ) ; return response ; } | Use this API to fetch the statistics of all nspbr6_stats resources that are configured on netscaler . |
2,331 | public static nspbr6_stats get ( nitro_service service , String name ) throws Exception { nspbr6_stats obj = new nspbr6_stats ( ) ; obj . set_name ( name ) ; nspbr6_stats response = ( nspbr6_stats ) obj . stat_resource ( service ) ; return response ; } | Use this API to fetch statistics of nspbr6_stats resource of given name . |
2,332 | public static base_response add ( nitro_service client , gslbsite resource ) throws Exception { gslbsite addresource = new gslbsite ( ) ; addresource . sitename = resource . sitename ; addresource . sitetype = resource . sitetype ; addresource . siteipaddress = resource . siteipaddress ; addresource . publicip = resour... | Use this API to add gslbsite . |
2,333 | public static base_responses add ( nitro_service client , gslbsite resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { gslbsite addresources [ ] = new gslbsite [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i... | Use this API to add gslbsite resources . |
2,334 | public static base_response delete ( nitro_service client , String sitename ) throws Exception { gslbsite deleteresource = new gslbsite ( ) ; deleteresource . sitename = sitename ; return deleteresource . delete_resource ( client ) ; } | Use this API to delete gslbsite of given name . |
2,335 | public static base_responses delete ( nitro_service client , String sitename [ ] ) throws Exception { base_responses result = null ; if ( sitename != null && sitename . length > 0 ) { gslbsite deleteresources [ ] = new gslbsite [ sitename . length ] ; for ( int i = 0 ; i < sitename . length ; i ++ ) { deleteresources [... | Use this API to delete gslbsite resources of given names . |
2,336 | public static base_response update ( nitro_service client , gslbsite resource ) throws Exception { gslbsite updateresource = new gslbsite ( ) ; updateresource . sitename = resource . sitename ; updateresource . metricexchange = resource . metricexchange ; updateresource . nwmetricexchange = resource . nwmetricexchange ... | Use this API to update gslbsite . |
2,337 | public static base_responses update ( nitro_service client , gslbsite resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { gslbsite updateresources [ ] = new gslbsite [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updatereso... | Use this API to update gslbsite resources . |
2,338 | public static base_response unset ( nitro_service client , gslbsite resource , String [ ] args ) throws Exception { gslbsite unsetresource = new gslbsite ( ) ; unsetresource . sitename = resource . sitename ; return unsetresource . unset_resource ( client , args ) ; } | Use this API to unset the properties of gslbsite resource . Properties that need to be unset are specified in args array . |
2,339 | public static base_responses unset ( nitro_service client , String sitename [ ] , String args [ ] ) throws Exception { base_responses result = null ; if ( sitename != null && sitename . length > 0 ) { gslbsite unsetresources [ ] = new gslbsite [ sitename . length ] ; for ( int i = 0 ; i < sitename . length ; i ++ ) { u... | Use this API to unset the properties of gslbsite resources . Properties that need to be unset are specified in args array . |
2,340 | public static gslbsite [ ] get ( nitro_service service , options option ) throws Exception { gslbsite obj = new gslbsite ( ) ; gslbsite [ ] response = ( gslbsite [ ] ) obj . get_resources ( service , option ) ; return response ; } | Use this API to fetch all the gslbsite resources that are configured on netscaler . |
2,341 | public static gslbsite get ( nitro_service service , String sitename ) throws Exception { gslbsite obj = new gslbsite ( ) ; obj . set_sitename ( sitename ) ; gslbsite response = ( gslbsite ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch gslbsite resource of given name . |
2,342 | public static gslbsite [ ] get ( nitro_service service , String sitename [ ] ) throws Exception { if ( sitename != null && sitename . length > 0 ) { gslbsite response [ ] = new gslbsite [ sitename . length ] ; gslbsite obj [ ] = new gslbsite [ sitename . length ] ; for ( int i = 0 ; i < sitename . length ; i ++ ) { obj... | Use this API to fetch gslbsite resources of given names . |
2,343 | private String computeMorse ( BytesRef term ) { StringBuilder stringBuilder = new StringBuilder ( ) ; int i = term . offset + prefixOffset ; for ( ; i < term . length ; i ++ ) { if ( ALPHABET_MORSE . containsKey ( term . bytes [ i ] ) ) { stringBuilder . append ( ALPHABET_MORSE . get ( term . bytes [ i ] ) + " " ) ; } ... | Compute morse . |
2,344 | private void distributedProcessFinish ( ResponseBuilder rb , ComponentFields mtasFields ) throws IOException { Object mtasResponseRaw ; if ( ( mtasResponseRaw = rb . rsp . getValues ( ) . get ( "mtas" ) ) != null && mtasResponseRaw instanceof NamedList ) { NamedList < Object > mtasResponse = ( NamedList < Object > ) mt... | Distributed process finish . |
2,345 | public static protocoludp_stats get ( nitro_service service ) throws Exception { protocoludp_stats obj = new protocoludp_stats ( ) ; protocoludp_stats [ ] response = ( protocoludp_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch the statistics of all protocoludp_stats resources that are configured on netscaler . |
2,346 | public static csvserver_cachepolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { csvserver_cachepolicy_binding obj = new csvserver_cachepolicy_binding ( ) ; obj . set_name ( name ) ; csvserver_cachepolicy_binding response [ ] = ( csvserver_cachepolicy_binding [ ] ) obj . get_resources ( se... | Use this API to fetch csvserver_cachepolicy_binding resources of given name . |
2,347 | public static authenticationradiuspolicy_vpnglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationradiuspolicy_vpnglobal_binding obj = new authenticationradiuspolicy_vpnglobal_binding ( ) ; obj . set_name ( name ) ; authenticationradiuspolicy_vpnglobal_binding response [ ] = ( ... | Use this API to fetch authenticationradiuspolicy_vpnglobal_binding resources of given name . |
2,348 | public int [ ] indices ( Collection < E > elems ) { int [ ] indices = new int [ elems . size ( ) ] ; int i = 0 ; for ( E elem : elems ) { indices [ i ++ ] = indexOf ( elem ) ; } return indices ; } | Returns the index of each elem in a List . |
2,349 | public E get ( int i ) { if ( i < 0 || i >= objects . size ( ) ) throw new ArrayIndexOutOfBoundsException ( "Index " + i + " outside the bounds [0," + size ( ) + ")" ) ; return objects . get ( i ) ; } | Gets the object whose index is the integer argument . |
2,350 | public boolean add ( E o ) { Integer index = indexes . get ( o ) ; if ( index == null && ! locked ) { index = objects . size ( ) ; objects . add ( o ) ; indexes . put ( o , index ) ; return true ; } return false ; } | Adds an object to the Index . If it was already in the Index then nothing is done . If it is not in the Index then it is added iff the Index hasn t been locked . |
2,351 | public static base_response add ( nitro_service client , vlan resource ) throws Exception { vlan addresource = new vlan ( ) ; addresource . id = resource . id ; addresource . aliasname = resource . aliasname ; addresource . ipv6dynamicrouting = resource . ipv6dynamicrouting ; return addresource . add_resource ( client ... | Use this API to add vlan . |
2,352 | public static base_responses add ( nitro_service client , vlan resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vlan addresources [ ] = new vlan [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new vla... | Use this API to add vlan resources . |
2,353 | public static base_response update ( nitro_service client , vlan resource ) throws Exception { vlan updateresource = new vlan ( ) ; updateresource . id = resource . id ; updateresource . aliasname = resource . aliasname ; updateresource . ipv6dynamicrouting = resource . ipv6dynamicrouting ; return updateresource . upda... | Use this API to update vlan . |
2,354 | public static vlan [ ] get ( nitro_service service ) throws Exception { vlan obj = new vlan ( ) ; vlan [ ] response = ( vlan [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the vlan resources that are configured on netscaler . |
2,355 | public static vlan get ( nitro_service service , Long id ) throws Exception { vlan obj = new vlan ( ) ; obj . set_id ( id ) ; vlan response = ( vlan ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch vlan resource of given name . |
2,356 | public static systemcore get ( nitro_service service ) throws Exception { systemcore obj = new systemcore ( ) ; systemcore [ ] response = ( systemcore [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch all the systemcore resources that are configured on netscaler . |
2,357 | public static systemcore [ ] get ( nitro_service service , systemcore_args args ) throws Exception { systemcore obj = new systemcore ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; systemcore [ ] response = ( systemcore [ ] ) obj . get_resources ( se... | Use this API to fetch all the systemcore resources that are configured on netscaler . This uses systemcore_args which is a way to provide additional arguments while fetching the resources . |
2,358 | public static rnat_stats get ( nitro_service service ) throws Exception { rnat_stats obj = new rnat_stats ( ) ; rnat_stats [ ] response = ( rnat_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch the statistics of all rnat_stats resources that are configured on netscaler . |
2,359 | public static base_response update ( nitro_service client , snmpoption resource ) throws Exception { snmpoption updateresource = new snmpoption ( ) ; updateresource . snmpset = resource . snmpset ; updateresource . snmptraplogging = resource . snmptraplogging ; return updateresource . update_resource ( client ) ; } | Use this API to update snmpoption . |
2,360 | public static base_response unset ( nitro_service client , snmpoption resource , String [ ] args ) throws Exception { snmpoption unsetresource = new snmpoption ( ) ; return unsetresource . unset_resource ( client , args ) ; } | Use this API to unset the properties of snmpoption resource . Properties that need to be unset are specified in args array . |
2,361 | public static snmpoption get ( nitro_service service ) throws Exception { snmpoption obj = new snmpoption ( ) ; snmpoption [ ] response = ( snmpoption [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch all the snmpoption resources that are configured on netscaler . |
2,362 | public static lbvserver_filterpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { lbvserver_filterpolicy_binding obj = new lbvserver_filterpolicy_binding ( ) ; obj . set_name ( name ) ; lbvserver_filterpolicy_binding response [ ] = ( lbvserver_filterpolicy_binding [ ] ) obj . get_resources... | Use this API to fetch lbvserver_filterpolicy_binding resources of given name . |
2,363 | protected static < E extends LogRecordHandler > boolean removeHandler ( Class < E > toRemove ) { boolean rtn = false ; Iterator < LogRecordHandler > iter = handlers . iterator ( ) ; while ( iter . hasNext ( ) ) { if ( iter . next ( ) . getClass ( ) . equals ( toRemove ) ) { rtn = true ; iter . remove ( ) ; } } return r... | Remove a handler from the list |
2,364 | protected static void appendHandler ( LogRecordHandler parent , LogRecordHandler child ) { RecordHandlerTree p = handlers . find ( parent ) ; if ( p != null ) { p . addChild ( child ) ; } else { throw new IllegalArgumentException ( "No such parent handler: " + parent ) ; } } | Append a Handler to a portion of the handler tree |
2,365 | protected static void appendHandler ( Class < ? extends LogRecordHandler > parent , LogRecordHandler child ) { List < LogRecordHandler > toAdd = new LinkedList < LogRecordHandler > ( ) ; for ( LogRecordHandler term : handlers ) { if ( parent . isAssignableFrom ( term . getClass ( ) ) ) { toAdd . add ( term ) ; } } for ... | Append a Handler to every parent of the given class |
2,366 | @ SuppressWarnings ( "unchecked" ) private static < E extends LogRecordHandler > E getHandler ( Class < E > clazz ) { for ( LogRecordHandler cand : handlers ) { if ( clazz == cand . getClass ( ) ) { return ( E ) cand ; } } return null ; } | Get a handler based on its class |
2,367 | protected static void captureSystemStreams ( boolean captureOut , boolean captureErr ) { if ( captureOut ) { System . setOut ( new RedwoodPrintStream ( STDOUT , realSysOut ) ) ; } if ( captureErr ) { System . setErr ( new RedwoodPrintStream ( STDERR , realSysErr ) ) ; } } | Captures System . out and System . err and redirects them to Redwood logging . |
2,368 | public static void startTrack ( final Object ... args ) { if ( isClosed ) { return ; } final int len = args . length == 0 ? 0 : args . length - 1 ; final Object content = args . length == 0 ? "" : args [ len ] ; final Object [ ] tags = new Object [ len ] ; final StackTraceElement ste = getStackTrace ( ) ; final long ti... | Begin a track ; that is begin logging at one level deeper . Channels other than the FORCE channel are ignored . |
2,369 | public static void endTrack ( final String title ) { if ( isClosed ) { return ; } final long timestamp = System . currentTimeMillis ( ) ; Runnable endTrack = new Runnable ( ) { public void run ( ) { assert ! isThreaded || control . isHeldByCurrentThread ( ) ; String expected = titleStack . pop ( ) ; if ( ! expected . e... | End a track ; that is return to logging at one level shallower . |
2,370 | public static void finishThread ( ) { final long threadId = Thread . currentThread ( ) . getId ( ) ; Runnable finish = new Runnable ( ) { public void run ( ) { releaseThreadControl ( threadId ) ; } } ; if ( isThreaded ) { attemptThreadControl ( threadId , finish ) ; } else { throw new IllegalStateException ( "finishThr... | Signal that this thread will not log any more messages in the multithreaded environment |
2,371 | public static void endThreads ( String check ) { if ( currentThread != - 1L ) { throw new IllegalStateException ( "endThreads() called, but thread " + currentThread + " has not finished (exception in thread?)" ) ; } assert ! control . isHeldByCurrentThread ( ) ; isThreaded = false ; boolean cleanPass = false ; while ( ... | Signal that all threads have run to completion and the multithreaded environment is over . |
2,372 | public static void showOnlyChannels ( Object ... channels ) { for ( LogRecordHandler handler : handlers ) { if ( handler instanceof VisibilityHandler ) { VisibilityHandler visHandler = ( VisibilityHandler ) handler ; visHandler . hideAll ( ) ; for ( Object channel : channels ) { visHandler . alsoShow ( channel ) ; } } ... | Show only the given channel . |
2,373 | public static void hideOnlyChannels ( Object ... channels ) { for ( LogRecordHandler handler : handlers ) { if ( handler instanceof VisibilityHandler ) { VisibilityHandler visHandler = ( VisibilityHandler ) handler ; visHandler . showAll ( ) ; for ( Object channel : channels ) { visHandler . alsoHide ( channel ) ; } } ... | Hide multiple channels . All other channels will be shown . |
2,374 | public static void showChannels ( Object ... channels ) { for ( LogRecordHandler handler : handlers ) { if ( handler instanceof VisibilityHandler ) { VisibilityHandler visHandler = ( VisibilityHandler ) handler ; for ( Object channel : channels ) { visHandler . alsoShow ( channel ) ; } } } } | Show multiple channels . All other channels will be unaffected . |
2,375 | public static void hideChannels ( Object ... channels ) { for ( LogRecordHandler handler : handlers ) { if ( handler instanceof VisibilityHandler ) { VisibilityHandler visHandler = ( VisibilityHandler ) handler ; for ( Object channel : channels ) { visHandler . alsoHide ( channel ) ; } } } } | Hide multiple channels . All other channels will be unaffected . |
2,376 | public static void stop ( ) { isClosed = true ; Thread . yield ( ) ; Thread . yield ( ) ; while ( depth > 0 ) { depth -= 1 ; handlers . process ( null , MessageType . END_TRACK , depth , System . currentTimeMillis ( ) ) ; } handlers . process ( null , MessageType . SHUTDOWN , 0 , System . currentTimeMillis ( ) ) ; } | Stop Redwood closing all tracks and prohibiting future log messages . |
2,377 | private static StackTraceElement getStackTrace ( ) { StackTraceElement [ ] stack = Thread . currentThread ( ) . getStackTrace ( ) ; int i = 2 ; while ( i < stack . length ) { boolean isLoggingClass = false ; for ( String loggingClass : loggingClasses ) { String className = stack [ i ] . getClassName ( ) ; if ( classNam... | Get the current stack trace element skipping anything from known logging classes . |
2,378 | protected static List < StackTraceElement > filterStackTrace ( StackTraceElement [ ] stack ) { List < StackTraceElement > filteredStack = new ArrayList < StackTraceElement > ( ) ; int i = 2 ; while ( i < stack . length ) { boolean isLoggingClass = false ; for ( String loggingClass : loggingClasses ) { String className ... | Removes logging classes from a stack trace . |
2,379 | public static base_response add ( nitro_service client , ipset resource ) throws Exception { ipset addresource = new ipset ( ) ; addresource . name = resource . name ; addresource . td = resource . td ; return addresource . add_resource ( client ) ; } | Use this API to add ipset . |
2,380 | public static ipset [ ] get ( nitro_service service ) throws Exception { ipset obj = new ipset ( ) ; ipset [ ] response = ( ipset [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the ipset resources that are configured on netscaler . |
2,381 | public static ipset get ( nitro_service service , String name ) throws Exception { ipset obj = new ipset ( ) ; obj . set_name ( name ) ; ipset response = ( ipset ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch ipset resource of given name . |
2,382 | public static appfwprofile_crosssitescripting_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_crosssitescripting_binding obj = new appfwprofile_crosssitescripting_binding ( ) ; obj . set_name ( name ) ; appfwprofile_crosssitescripting_binding response [ ] = ( appfwprofile_crosssi... | Use this API to fetch appfwprofile_crosssitescripting_binding resources of given name . |
2,383 | public static auditsyslogpolicy_aaauser_binding [ ] get ( nitro_service service , String name ) throws Exception { auditsyslogpolicy_aaauser_binding obj = new auditsyslogpolicy_aaauser_binding ( ) ; obj . set_name ( name ) ; auditsyslogpolicy_aaauser_binding response [ ] = ( auditsyslogpolicy_aaauser_binding [ ] ) obj ... | Use this API to fetch auditsyslogpolicy_aaauser_binding resources of given name . |
2,384 | public static base_response add ( nitro_service client , autoscaleaction resource ) throws Exception { autoscaleaction addresource = new autoscaleaction ( ) ; addresource . name = resource . name ; addresource . type = resource . type ; addresource . profilename = resource . profilename ; addresource . parameters = res... | Use this API to add autoscaleaction . |
2,385 | public static base_responses add ( nitro_service client , autoscaleaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { autoscaleaction addresources [ ] = new autoscaleaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++... | Use this API to add autoscaleaction resources . |
2,386 | public static base_response update ( nitro_service client , autoscaleaction resource ) throws Exception { autoscaleaction updateresource = new autoscaleaction ( ) ; updateresource . name = resource . name ; updateresource . profilename = resource . profilename ; updateresource . parameters = resource . parameters ; upd... | Use this API to update autoscaleaction . |
2,387 | public static base_responses update ( nitro_service client , autoscaleaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { autoscaleaction updateresources [ ] = new autoscaleaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ... | Use this API to update autoscaleaction resources . |
2,388 | public static autoscaleaction [ ] get ( nitro_service service ) throws Exception { autoscaleaction obj = new autoscaleaction ( ) ; autoscaleaction [ ] response = ( autoscaleaction [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the autoscaleaction resources that are configured on netscaler . |
2,389 | public static autoscaleaction get ( nitro_service service , String name ) throws Exception { autoscaleaction obj = new autoscaleaction ( ) ; obj . set_name ( name ) ; autoscaleaction response = ( autoscaleaction ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch autoscaleaction resource of given name . |
2,390 | public static sslvserver_sslcipher_binding [ ] get ( nitro_service service , String vservername ) throws Exception { sslvserver_sslcipher_binding obj = new sslvserver_sslcipher_binding ( ) ; obj . set_vservername ( vservername ) ; sslvserver_sslcipher_binding response [ ] = ( sslvserver_sslcipher_binding [ ] ) obj . ge... | Use this API to fetch sslvserver_sslcipher_binding resources of given name . |
2,391 | public static vpnglobal_authenticationsamlpolicy_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_authenticationsamlpolicy_binding obj = new vpnglobal_authenticationsamlpolicy_binding ( ) ; vpnglobal_authenticationsamlpolicy_binding response [ ] = ( vpnglobal_authenticationsamlpolicy_binding [ ] )... | Use this API to fetch a vpnglobal_authenticationsamlpolicy_binding resources . |
2,392 | public static base_response add ( nitro_service client , nsacl6 resource ) throws Exception { nsacl6 addresource = new nsacl6 ( ) ; addresource . acl6name = resource . acl6name ; addresource . acl6action = resource . acl6action ; addresource . td = resource . td ; addresource . srcipv6 = resource . srcipv6 ; addresourc... | Use this API to add nsacl6 . |
2,393 | public static base_responses add ( nitro_service client , nsacl6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsacl6 addresources [ ] = new nsacl6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = n... | Use this API to add nsacl6 resources . |
2,394 | public static base_response delete ( nitro_service client , String acl6name ) throws Exception { nsacl6 deleteresource = new nsacl6 ( ) ; deleteresource . acl6name = acl6name ; return deleteresource . delete_resource ( client ) ; } | Use this API to delete nsacl6 of given name . |
2,395 | public static base_responses delete ( nitro_service client , String acl6name [ ] ) throws Exception { base_responses result = null ; if ( acl6name != null && acl6name . length > 0 ) { nsacl6 deleteresources [ ] = new nsacl6 [ acl6name . length ] ; for ( int i = 0 ; i < acl6name . length ; i ++ ) { deleteresources [ i ]... | Use this API to delete nsacl6 resources of given names . |
2,396 | public static base_response update ( nitro_service client , nsacl6 resource ) throws Exception { nsacl6 updateresource = new nsacl6 ( ) ; updateresource . acl6name = resource . acl6name ; updateresource . aclaction = resource . aclaction ; updateresource . srcipv6 = resource . srcipv6 ; updateresource . srcipop = resou... | Use this API to update nsacl6 . |
2,397 | public static base_responses update ( nitro_service client , nsacl6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsacl6 updateresources [ ] = new nsacl6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources ... | Use this API to update nsacl6 resources . |
2,398 | public static base_response unset ( nitro_service client , nsacl6 resource , String [ ] args ) throws Exception { nsacl6 unsetresource = new nsacl6 ( ) ; unsetresource . acl6name = resource . acl6name ; return unsetresource . unset_resource ( client , args ) ; } | Use this API to unset the properties of nsacl6 resource . Properties that need to be unset are specified in args array . |
2,399 | public static base_responses unset ( nitro_service client , String acl6name [ ] , String args [ ] ) throws Exception { base_responses result = null ; if ( acl6name != null && acl6name . length > 0 ) { nsacl6 unsetresources [ ] = new nsacl6 [ acl6name . length ] ; for ( int i = 0 ; i < acl6name . length ; i ++ ) { unset... | Use this API to unset the properties of nsacl6 resources . Properties that need to be unset are specified in args array . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.