idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
161,700 | protected synchronized boolean isBackgroundInvalidationInProgress ( ) { boolean cleanupThreadRunning = false ; if ( this . cod . diskCleanupThread != null ) { synchronized ( cod . diskCleanupThread . dcMonitor ) { cleanupThreadRunning = this . cod . diskCleanupThread . currentThread != null ; } } boolean garbageCollect... | Call this method to check the state of LPBT in Progress . |
161,701 | protected synchronized boolean isLoopOnce ( ) { final String methodName = "isLoopOnce()" ; if ( loopOnce ) { traceDebug ( methodName , "cacheName=" + this . cod . cacheName + " isLoopOnce=" + loopOnce + " explicitBuffer=" + explicitBuffer . size ( ) + " scanBuffer=" + this . scanBuffer . size ( ) ) ; } return this . lo... | Call this method to check the state of Loop Once . |
161,702 | protected synchronized void setStopping ( boolean stopping ) { final String methodName = "setStopping()" ; this . stopping = stopping ; traceDebug ( methodName , "cacheName=" + this . cod . cacheName + " stopping=" + this . stopping ) ; } | Call this method to set the state of Stopping . No more invoking the LPBT . |
161,703 | public void updateProperties ( Dictionary < String , Object > properties ) throws IOException { lock . lock ( ) ; try { doUpdateProperties ( properties ) ; } finally { lock . unlock ( ) ; } } | without other guards separating updating the properties and sending configuration events can result in missing and duplicate update events even if every update is eventually associated with an event . |
161,704 | public void updateCache ( Dictionary < String , Object > properties , Set < ConfigID > references , Set < String > newUniques ) throws IOException { lock . lock ( ) ; try { removeReferences ( ) ; setProperties ( properties ) ; this . references = references ; this . uniqueVariables = newUniques ; caFactory . getConfigu... | Updates ConfigurationAdmin s cache with current config properties . If replaceProp is set to true current config properties is replace with the given properties before caching and the internal pid - to - config table is updated to reflect the new config properties . |
161,705 | private void setProperties ( Dictionary < String , ? > d ) { if ( d == null ) { this . properties = null ; return ; } ConfigurationDictionary newDictionary = new ConfigurationDictionary ( ) ; Enumeration < String > keys = d . keys ( ) ; while ( keys . hasMoreElements ( ) ) { String key = keys . nextElement ( ) ; if ( n... | This is not part of Configuration interface . It sets configuration dictionary with specified dictionary and updates configuration attributes if they are not set and found in given dictionary . |
161,706 | @ SuppressWarnings ( "unchecked" ) public static Object proprietaryEvaluate ( final String expression , final Class expectedType , final PageContext pageContext , final ProtectedFunctionMapper functionMap , final boolean escape ) throws ELException { Object retValue ; ExpressionFactory exprFactorySetInPageContext = ( E... | Proprietary method to evaluate EL expressions . XXX - This method should go away once the EL interpreter moves out of JSTL and into its own project . For now this is necessary because the standard machinery is too slow . |
161,707 | public void addListener ( InstallEventListener listener , String notificationType ) { if ( listener == null || notificationType == null ) return ; if ( notificationType . isEmpty ( ) ) return ; if ( listenersMap == null ) { listenersMap = new HashMap < String , Collection < InstallEventListener > > ( ) ; } Collection <... | Adds an install event listener to the listenersMap with a specified notification type |
161,708 | public void removeListener ( InstallEventListener listener ) { if ( listenersMap != null ) { for ( Collection < InstallEventListener > listeners : listenersMap . values ( ) ) { listeners . remove ( listener ) ; } } } | Removes a listener from listenersMap |
161,709 | public void fireProgressEvent ( int state , int progress , String message ) throws Exception { if ( listenersMap != null ) { Collection < InstallEventListener > listeners = listenersMap . get ( InstallConstants . EVENT_TYPE_PROGRESS ) ; if ( listeners != null ) { for ( InstallEventListener listener : listeners ) { list... | Fires progress event messages |
161,710 | public void putToFront ( QueueData queueData , short msgBatch ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "putToFront" , new Object [ ] { queueData , msgBatch } ) ; _put ( queueData , msgBatch , false ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc ... | Places a message on to the front of the proxy queue so that the next get operation will consume it . |
161,711 | public synchronized JsMessage [ ] getBatch ( int batchSize , short id ) throws SIResourceException , SIConnectionDroppedException , SIConnectionLostException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getBatch" , "" + batchSize ) ; int size ; synchronized (... | Gets a batch of several messages from the queue . |
161,712 | public synchronized void setTrackBytes ( boolean trackBytes ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTrackBytes" , trackBytes ) ; this . trackBytes = trackBytes ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit... | Sets the trackBytes parameter . This flag is used to indicate whether this queue should keep track of the bytes on the queue and request more from the server when it is running low . |
161,713 | public void reset ( ) { current = null ; _hasWritten = false ; byteBuffersRetrieved = false ; limit = - 1 ; total = 0 ; if ( ! byteBuffersRetrieved ) { ListIterator < WsByteBuffer > it = bbList . listIterator ( ) ; while ( it . hasNext ( ) ) { WsByteBuffer next = it . next ( ) ; next . release ( ) ; it . remove ( ) ; }... | clean up ... |
161,714 | public void write ( byte [ ] buf , int offset , int len ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "write len + len + ", limit->" + limit ) ; } if ( len < 0 ) { if ( tc . isErrorEnabled ( ) ) Tr . error ( tc , "Illegal.Argument.Trying.to.write.... | Writes a byte array |
161,715 | public void doWork ( Work work , long startTimeout , ExecutionContext execContext , WorkListener workListener ) throws WorkException { try { beforeRunCheck ( work , workListener , startTimeout ) ; new WorkProxy ( work , startTimeout , execContext , workListener , bootstrapContext , runningWork , false ) . call ( ) ; } ... | This method does not return until the work is completed as the caller expects to wait until the work is completed before getting control back . This method accomplishes this by NOT spinning a thread . |
161,716 | public void scheduleWork ( Work work , long startTimeout , ExecutionContext execContext , WorkListener workListener ) throws WorkException { try { beforeRunCheck ( work , workListener , startTimeout ) ; WorkProxy workProxy = new WorkProxy ( work , startTimeout , execContext , workListener , bootstrapContext , runningWo... | This method puts the work on a queue that is later processed by the scheduler thread . This allows the method to return to the caller without having to wait for the thread to start . |
161,717 | private void beforeRunCheck ( Work work , WorkListener workListener , long startTimeout ) throws WorkRejectedException { WorkRejectedException wrex = null ; if ( work == null ) { wrex = new WorkRejectedException ( new NullPointerException ( "work" ) ) ; wrex . setErrorCode ( WorkException . UNDEFINED ) ; } else if ( st... | Input parameter checks that can be done before calling run . |
161,718 | public void stop ( ) { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; stopped = true ; for ( Future < Void > future = futures . poll ( ) ; future != null ; future = futures . poll ( ) ) if ( ! future . isDone ( ) && future . cancel ( true ) ) if ( trace && tc . isDebugEnabled ( ) ) Tr . debug ( this ,... | Provides a way to stop the WorkManager . |
161,719 | public void close ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "close" ) ; ChannelFramework framework = ChannelFrameworkFactory . getChannelFramework ( ) ; try { framework . stopChain ( chainInbound , CHAIN_STOP_TIME ) ; } catch ( ChainException e ) { FFDCFilter . processException ( e , "com.ibm.ws.... | Stops the listener port listening . |
161,720 | public AcceptListener getAcceptListener ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getAcceptListener" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getAcceptListener" , acceptListener ) ; return acceptListener ; } | Returns the accept listener associated with this listener port . |
161,721 | public int getPortNumber ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getPortNumber" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getPortNumber" , "" + portNumber ) ; return portNumber ; } | Returns the port number associated with this listener port . |
161,722 | public static boolean containsRoutingContext ( RESTRequest request ) { if ( request . getHeader ( RESTHandlerContainer . COLLECTIVE_HOST_NAMES ) != null ) { return true ; } return getQueryParameterValue ( request , RESTHandlerContainer . COLLECTIVE_HOST_NAMES ) != null ; } | Quick check for multiple routing context without actually fetching all pieces |
161,723 | private PersistenceServiceUnit createPsu ( int jobInstanceVersion , int jobExecutionVersion ) throws Exception { return databaseStore . createPersistenceServiceUnit ( getJobInstanceEntityClass ( jobInstanceVersion ) . getClassLoader ( ) , getJobExecutionEntityClass ( jobExecutionVersion ) . getName ( ) , getJobInstance... | Creates a PersistenceServiceUnit using the specified entity versions . |
161,724 | public JobExecution updateJobExecutionAndInstanceFinalStatus ( PersistenceServiceUnit psu , final long jobExecutionId , final BatchStatus finalBatchStatus , final String finalExitStatus , final Date endTime ) throws NoSuchJobExecutionException { EntityManager em = psu . createEntityManager ( ) ; try { return new TranRe... | This method is called during recovery as well as during normal operation . |
161,725 | public List < StepExecution > getStepExecutionsTopLevelFromJobExecutionId ( final long jobExecutionId ) throws NoSuchJobExecutionException { final EntityManager em = getPsu ( ) . createEntityManager ( ) ; try { List < StepExecution > exec = new TranRequest < List < StepExecution > > ( em ) { public List < StepExecution... | order by start time ascending |
161,726 | public RemotablePartitionEntity updateRemotablePartitionOnRecovery ( PersistenceServiceUnit psu , final RemotablePartitionEntity partition ) { EntityManager em = psu . createEntityManager ( ) ; try { return new TranRequest < RemotablePartitionEntity > ( em ) { public RemotablePartitionEntity call ( ) { RemotablePartiti... | This method is called during recovery |
161,727 | public < T > void addMessageHandler ( Class < T > clazz , Whole < T > handler ) { connLink . addMessageHandler ( clazz , handler ) ; } | websocket 1 . 1 methods |
161,728 | public String promptForUser ( String arg ) { String user = console . readLine ( CommandUtils . getMessage ( "user.enterText" , arg ) + " " ) ; return user ; } | Prompt the user to enter text . |
161,729 | public void end ( Xid xid , int flags ) throws XAException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "end" , new Object [ ] { ivManagedConnection , AdapterUtil . toString ( xid ) , AdapterUtil . getXAResourceEndFlagString ( flags ) } ) ; try { if ( flags == XA... | XAException with return code XA_RBROLLBACK |
161,730 | public void rollback ( Xid xid ) throws XAException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "rollback" , new Object [ ] { ivManagedConnection , AdapterUtil . toString ( xid ) } ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { ... | XAER_RMERR return code in XAException |
161,731 | private static BundleContext getBundleContext ( final Bundle bundle ) { if ( System . getSecurityManager ( ) == null ) return bundle . getBundleContext ( ) ; else return AccessController . doPrivileged ( new PrivilegedAction < BundleContext > ( ) { public BundleContext run ( ) { return bundle . getBundleContext ( ) ; }... | no need for an updatedJdbcDriver because changes will not impact the mbean |
161,732 | public static void debugHtml ( Writer writer , FacesContext faces , Throwable e ) throws IOException { debugHtml ( writer , faces , faces . getViewRoot ( ) , null , e ) ; } | Generates the HTML error page for the given Throwable and writes it to the given writer . |
161,733 | public static void debugHtml ( Writer writer , FacesContext faces ) throws IOException { _init ( faces ) ; Date now = new Date ( ) ; for ( int i = 0 ; i < debugParts . length ; i ++ ) { if ( "message" . equals ( debugParts [ i ] ) ) { writer . write ( faces . getViewRoot ( ) . getViewId ( ) ) ; } else if ( "now" . equa... | Generates the HTML debug page for the current view and writes it to the given writer . |
161,734 | private int hashToTable ( Long id , Entry [ ] table ) { int posVal = id . intValue ( ) & Integer . MAX_VALUE ; return ( posVal % table . length ) ; } | The Long Id is already effectively a hashcode for the Schema and should be unique . All we should need to do is get a positive integer version of it & divide by the table size . |
161,735 | private void resize ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "resize" , table . length ) ; Entry [ ] newTable = new Entry [ table . length + ( table . length / 2 ) ] ; for ( int i = 0 ; i < table . length ; i ++ ) { Entry ent = table [ i ] ; Entry newE... | Resize the SchemaSet adding 50% to the size . |
161,736 | public String toVerboseString ( ) { Entry [ ] tempTable = table ; StringBuffer buf = new StringBuffer ( ) ; buf . append ( "SchemaSet " ) ; buf . append ( this . hashCode ( ) ) ; buf . append ( " {\n" ) ; for ( int i = 0 ; i < tempTable . length ; i ++ ) { buf . append ( " [" ) ; buf . append ( i ) ; buf . append ( "]... | Returns a printable view of the SchemaSet and contents for use in debugging and Unit Tests . |
161,737 | private static final String debugId ( Object o ) { Long id = ( Long ) o ; byte [ ] buf = new byte [ 8 ] ; ArrayUtil . writeLong ( buf , 0 , id . longValue ( ) ) ; return HexUtil . toString ( buf ) ; } | Write a Schema Id out as a hex string . |
161,738 | @ XmlElement ( name = "authentication-mechanism-type" , required = true ) public void setAuthenticationMechanismType ( String authMech ) { AuthenticationMechanismType type = AuthenticationMechanismType . valueOf ( authMech ) ; authenticationMechanismType = type . name ( ) ; } | Set the authentication mechanism type |
161,739 | @ FFDCIgnore ( ClassCastException . class ) void autoBind ( WSName subname , Object obj ) throws InvalidNameException , NotContextException , NameAlreadyBoundException { ContextNode target = this , parent = this ; int i = 0 ; try { for ( ; i < subname . size ( ) - 1 ; i ++ ) { String elem = subname . get ( i ) ; target... | Works like bind but automatically creates intermediate contexts if they do not exist . Any automatically created contexts will be cleaned up automatically when their last child is unbound . |
161,740 | protected void onMethodEntry ( ) { if ( enabledListeners . isEmpty ( ) ) return ; String probeKey = createKey ( ) ; ProbeImpl probe = getProbe ( probeKey ) ; long probeId = probe . getIdentifier ( ) ; setProbeInProgress ( true ) ; visitLdcInsn ( Long . valueOf ( probeId ) ) ; if ( isStatic ( ) || isConstructor ( ) ) { ... | Inject the byte code required to fire a method entry probe . |
161,741 | static long getBufAddress ( ByteBuffer theBuffer ) { if ( ! theBuffer . isDirect ( ) ) { throw new IllegalArgumentException ( AsyncProperties . aio_direct_buffers_only ) ; } try { return addrField . getLong ( theBuffer ) ; } catch ( IllegalAccessException exception ) { if ( TraceComponent . isAnyTracingEnabled ( ) && t... | Returns the address of the start of the given direct byte buffer in OS memory . |
161,742 | public AsyncFuture getFutureFromIndex ( int theIndex ) { if ( theIndex == READ_FUTURE_INDEX || theIndex == SYNC_READ_FUTURE_INDEX ) { return this . readFuture ; } if ( theIndex == WRITE_FUTURE_INDEX || theIndex == SYNC_WRITE_FUTURE_INDEX ) { return this . writeFuture ; } return null ; } | Gets the Future corresponding to a supplied index value . |
161,743 | void cancel ( AsyncChannelFuture future , Exception reason ) throws ClosedChannelException , IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "cancel" ) ; } if ( ! isOpen ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr .... | Package private version of cancel which takes an exception as an additional parameter . The exception is applied to the future on cancellation . |
161,744 | public void enable ( int level ) { if ( level >= PmiConstants . LEVEL_HIGH ) sync = true ; else sync = false ; if ( ! enabled ) { enabled = true ; reset ( ) ; } } | mark the data enabled and reset the value and createTime |
161,745 | protected final Bucket < K , V > getBucketForKey ( K key ) { int bucket_index = ( key . hashCode ( ) & 0x7FFFFFFF ) % buckets . length ; Bucket < K , V > thebucket = buckets [ bucket_index ] ; if ( thebucket == null ) { synchronized ( this ) { thebucket = buckets [ bucket_index ] ; if ( thebucket == null ) { thebucket ... | Returns the bucket which the specified key hashes to |
161,746 | protected void introspect ( ObjectName objectName , QueryExp query , PrintWriter writer ) { for ( MBeanServer mbeanServer : getMBeanServers ( ) ) { for ( ObjectName mbean : mbeanServer . queryNames ( objectName , query ) ) { introspectMBeanAttributes ( mbeanServer , mbean , writer ) ; } } } | GIven a JMX object name and a filter introspect all matching MBeans that are found associated with registered MBean servers . |
161,747 | String getFormattedArray ( Object attribute , String indent ) { int arrayLength = Array . getLength ( attribute ) ; if ( arrayLength == 0 ) { return "[]" ; } Class < ? > componentType = attribute . getClass ( ) . getComponentType ( ) ; if ( componentType . equals ( boolean . class ) ) { return formatPrimitiveArrayStrin... | Format an array . |
161,748 | String getFormattedCompositeData ( CompositeData cd , String indent ) { StringBuilder sb = new StringBuilder ( ) ; indent += INDENT ; CompositeType type = cd . getCompositeType ( ) ; for ( String key : type . keySet ( ) ) { sb . append ( "\n" ) . append ( indent ) ; sb . append ( key ) . append ( ": " ) ; OpenType < ? ... | Format an open MBean composite data attribute . |
161,749 | @ SuppressWarnings ( "unchecked" ) String getFormattedTabularData ( TabularData td , String indent ) { StringBuilder sb = new StringBuilder ( ) ; indent += INDENT ; sb . append ( "{" ) ; Collection < CompositeData > values = ( Collection < CompositeData > ) td . values ( ) ; int valuesRemaining = values . size ( ) ; fo... | Format an open MBean tabular data attribute . |
161,750 | public void handle ( Callback [ ] callbacks ) throws IOException , UnsupportedCallbackException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "handle" ) ; } if ( callbacks == null || callbacks . length == 0 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEn... | This method is invoked by the resource adapter after passing the list of callbacks that it needs the application server to handle . The behaviour of the handler for each of the callbacks is given below |
161,751 | private void arrangeCallbacks ( Callback [ ] callbacks ) { if ( callbacks [ 0 ] instanceof CallerPrincipalCallback ) return ; int length = callbacks . length ; for ( int i = 0 ; i < length ; i ++ ) { if ( callbacks [ i ] instanceof CallerPrincipalCallback ) { Callback callback = callbacks [ 0 ] ; callbacks [ 0 ] = call... | This method is called to ensure that the first callback is always a CallerPrincipalCallback irrespective of the order in which the callbacks are passed in by the resource adapter . If we need to return false to the PasswordValidationCallback when the name passed in by the CallerPrincipalCallback is different from the o... |
161,752 | public final void makeEmptyAndClean ( ) { makeEmpty ( ) ; for ( int i = 0 ; i < m_array . length ; ++ i ) m_array [ i ] = null ; } | Empty the queue and also set every element of the internal array to null so that the removed elements can be GC d . |
161,753 | public final int size ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "size" ) ; int result = ( m_tail >= m_head ) ? ( m_tail - m_head ) : ( m_array . length - m_head + m_tail ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "size" , new Integer ( result ) ) ; return result ; } | Return the number of elements in the queue . |
161,754 | public final void enqueue ( Object obj ) { m_array [ m_tail ++ ] = obj ; if ( m_tail == m_array . length ) m_tail = 0 ; if ( m_head == m_tail ) expand_array ( ) ; } | Store an object in the queue . |
161,755 | public final Object dequeue ( ) throws NoSuchElementException { if ( m_head == m_tail ) throw new NoSuchElementException ( ) ; Object obj = m_array [ m_head ] ; m_array [ m_head ++ ] = null ; if ( m_head == m_array . length ) m_head = 0 ; return obj ; } | Return the first element on the queue . |
161,756 | private final void expand_array ( ) { int length = m_array . length ; Object [ ] m_new = new Object [ length * 2 ] ; System . arraycopy ( m_array , m_head , m_new , m_head , length - m_head ) ; System . arraycopy ( m_array , 0 , m_new , length , m_tail ) ; m_tail += length ; m_array = m_new ; } | Increase the size of the internal array to accomodate more queue elements . |
161,757 | public LinkedHashMap < String , Object > getConfigDump ( String aLocalId , boolean aRegisteredOnly ) { if ( TC . isEntryEnabled ( ) ) { Tr . entry ( this , TC , "getConfigDump" ) ; } LinkedHashMap < String , Object > cp = new LinkedHashMap < String , Object > ( ) ; if ( TC . isEntryEnabled ( ) ) { Tr . exit ( this , TC... | Generate a config dump containing all the attributes which match the regular expression . |
161,758 | private Transactional findInterceptorFromStereotype ( Annotation [ ] anns ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "findInterceptorFromStereotype" , new Object [ ] { anns , this } ) ; Transactional ret = null ; for ( Annotation ann : anns ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Examining annot... | it here . |
161,759 | private void writeObject ( java . io . ObjectOutputStream out ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "writeObject : " + this ) ; out . writeObject ( ivPuRefId ) ; out . writeObject ( ivJ2eeName ) ; out . writeObject ( ivRefName ) ; out . write... | Instance serialization . |
161,760 | protected void registerEmInvocation ( UOWCoordinator uowCoord , Synchronization emInvocation ) { try { ivAbstractJPAComponent . getEmbeddableWebSphereTransactionManager ( ) . registerSynchronization ( uowCoord , emInvocation , SYNC_TIER_OUTER ) ; } catch ( Exception e ) { if ( TraceComponent . isAnyTracingEnabled ( ) &... | d638095 . 4 |
161,761 | private void buildDiscriminatorNodes ( DiscriminatorNode node ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "buildDiscriminatorNodes: " + node ) ; } DiscriminatorNode dn = node ; if ( dn == null ) { return ; } DiscriminatorNode newDN = null , lastDN = null ; discrimi... | Copy this DiscriminatorNode list . |
161,762 | public void addDiscriminator ( Discriminator d , int weight ) throws DiscriminationProcessException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "addDiscriminator: " + d + " weight=" + weight ) ; } if ( status == STARTED ) { DiscriminationProcessException e = new Disc... | Adds a discriminator to the group . Attempts to add the same discriminator more than once are ignored . It is an error to attempt to add a discriminator which is not able to deal with the groups type of discriminatory data . A class cast exception is thrown if this is attempted . |
161,763 | private void addDiscriminatorNode ( DiscriminatorNode dn ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "addDiscriminatorNode, weight=" + dn . weight ) ; } if ( discriminators == null ) { discriminators = dn ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEn... | add a discriminatorNode to the linked list . |
161,764 | private void removeDiscriminatorNode ( Discriminator d ) throws DiscriminationProcessException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "removeDiscriminatorNode: " + d ) ; } if ( d == null ) { DiscriminationProcessException e = new DiscriminationProcessException (... | remove the discriminatorNode from the linkedList . |
161,765 | public void start ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Started discriminator list " + discAL + "with size" + discAL . size ( ) ) ; } if ( discAL . size ( ) > 1 ) { rebuildDiscriminatorList ( ) ; discriminationAlgorithm = new MultiDiscriminatorAlgorithm ( ... | Start this DiscriminatorProcess . |
161,766 | private void rebuildDiscriminatorList ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "rebuildDiscriminatorList" ) ; } discAL . clear ( ) ; DiscriminatorNode dn = discriminators ; discAL . add ( dn . disc ) ; dn = dn . next ; while ( dn != null ) { discAL . add ( dn ... | Rebuild the array list from the linked list . |
161,767 | private void addChannel ( Channel chan ) { if ( channelList == null ) { channelList = new Channel [ 1 ] ; channelList [ 0 ] = chan ; } else { Channel [ ] oldList = channelList ; channelList = new Channel [ oldList . length + 1 ] ; System . arraycopy ( oldList , 0 , channelList , 0 , oldList . length ) ; channelList [ o... | Add a channel to the channel list to be searched . |
161,768 | @ FFDCIgnore ( { NamingException . class } ) Object resolveObject ( Object o , WSName subname ) throws NamingException { ServiceReference < ? > ref = null ; try { if ( o instanceof ContextNode ) return new WSContext ( userContext , ( ContextNode ) o , env ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Resolving ... | Perform any needed conversions on an object retrieved from the context tree . |
161,769 | public void send ( ) throws AuditServiceUnavailableException { AuditService auditService = SecurityUtils . getAuditService ( ) ; if ( auditService != null ) { auditService . sendEvent ( this ) ; } else { throw new AuditServiceUnavailableException ( ) ; } } | Send this event to the audit service for logging . |
161,770 | public static boolean isAuditRequired ( String eventType , String outcome ) throws AuditServiceUnavailableException { AuditService auditService = SecurityUtils . getAuditService ( ) ; if ( auditService != null ) { return auditService . isAuditRequired ( eventType , outcome ) ; } else { throw new AuditServiceUnavailable... | Check to see if auditing is required for an event type and outcome . |
161,771 | private void removeEntriesStartingWith ( String key ) { synchronized ( eventMap ) { Iterator < String > iter = eventMap . keySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { String str = iter . next ( ) ; if ( str . startsWith ( key ) ) { iter . remove ( ) ; } } } } | Remove all entries starting with the given key |
161,772 | public void put ( SimpleEntry simpleEntry ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "put" , simpleEntry ) ; simpleEntry . previous = last ; simpleEntry . list = this ; if ( last != null ) last . next = simpleEntry ; else first = simpleEntry ; last = simpl... | Add an entry to the list |
161,773 | protected String printList ( ) { String output = "[" ; SimpleEntry pointer = first ; int counter = 0 ; while ( ( pointer != null ) && ( counter < 3 ) ) { output += "@" + Integer . toHexString ( pointer . hashCode ( ) ) ; pointer = pointer . next ; if ( pointer != null ) output += ", " ; counter ++ ; } if ( pointer != n... | Return the first and last entries in the list |
161,774 | private void initializePort ( ) throws ChannelException { try { this . endPoint . initServerSocket ( ) ; } catch ( IOException ioe ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "TCP Channel: " + getExternalName ( ) + "- Problem occurred while initializing TCP Channel... | Initialize the endpoint listening socket . |
161,775 | private synchronized void destroyConnLinks ( ) { for ( Queue < TCPConnLink > queue : this . inUse ) { try { TCPConnLink tcl = queue . poll ( ) ; while ( tcl != null ) { tcl . close ( tcl . getVirtualConnection ( ) , null ) ; tcl = queue . poll ( ) ; } } catch ( Throwable t ) { FFDCFilter . processException ( t , getCla... | call the destroy on all the TCPConnLink objects related to this TCPChannel which are currently in use . |
161,776 | protected Object getValue ( String propertyName , Type propertyType , boolean optional , String defaultString ) { Object value = null ; assertNotClosed ( ) ; SourcedValue sourced = getSourcedValue ( propertyName , propertyType ) ; if ( sourced != null ) { value = sourced . getValue ( ) ; } else { if ( optional ) { valu... | Get the converted value of the given property . If the property is not found and optional is true then use the default string to create a value to return . If the property is not found and optional is false then throw an exception . |
161,777 | public static void logToJobLogAndTraceOnly ( Level level , String msg , Object [ ] params , Logger traceLogger ) { String formattedMsg = getFormattedMessage ( msg , params , "Job event." ) ; logRawMsgToJobLogAndTraceOnly ( level , formattedMsg , traceLogger ) ; } | Logs the message to joblog and trace . |
161,778 | public static void logRawMsgToJobLogAndTraceOnly ( Level level , String msg , Logger traceLogger ) { if ( level . intValue ( ) > Level . FINE . intValue ( ) ) { traceLogger . log ( Level . FINE , msg ) ; logToJoblogIfNotTraceLoggable ( Level . FINE , msg , traceLogger ) ; } else { traceLogger . log ( level , msg ) ; lo... | logs the message to joblog and trace . |
161,779 | public byte [ ] toEncodedForm ( ) { if ( encodedForm == null ) { encodedForm = new byte [ encodedSize ( ) ] ; ArrayUtil . writeLong ( encodedForm , 0 , accessSchemaId ) ; encode ( encodedForm , new int [ ] { 8 , encodedForm . length } ) ; } return encodedForm ; } | Turn an CompatibilityMap into its encoded form |
161,780 | private void encode ( byte [ ] frame , int [ ] limits ) { JSType . setCount ( frame , limits , indices . length ) ; for ( int i = 0 ; i < indices . length ; i ++ ) JSType . setCount ( frame , limits , indices [ i ] ) ; JSType . setCount ( frame , limits , varBias ) ; JSType . setCount ( frame , limits , setCases . leng... | Encode subroutine used by toEncodedForm |
161,781 | private int encodedSize ( ) { int ans = 16 + 2 * indices . length ; for ( int i = 0 ; i < setCases . length ; i ++ ) { int [ ] cases = setCases [ i ] ; ans += 2 ; if ( cases != null ) ans += 2 * cases . length ; } for ( int i = 0 ; i < getCases . length ; i ++ ) { int [ ] cases = getCases [ i ] ; ans += 2 ; if ( cases ... | Find the number of bytes it takes to encode this CompatibilityMap |
161,782 | private static void violation ( JMFType from , JMFType to ) throws JMFSchemaViolationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) JmfTr . debug ( tc , "Violation:" + " from = " + from . getFeatureName ( ) + " : " + from + ", to = " + to . getFeatureName ( ) + " : " + to ) ; th... | Handle violation of the compatibility rules by throwing an informative exception |
161,783 | private void recordOnePair ( JSField access , JSchema accSchema , JSField encoding , JSchema encSchema ) { int acc = access . getAccessor ( accSchema ) ; if ( acc >= indices . length ) return ; indices [ acc ] = encoding . getAccessor ( encSchema ) ; } | later when maps are built for variant box schemas . |
161,784 | private void checkForDeletingVariant ( JMFType nonVar , JSVariant var , boolean varIsAccess , JSchema accSchema , JSchema encSchema ) throws JMFSchemaViolationException { if ( var . getCaseCount ( ) != 2 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) JmfTr . debug ( this , tc , "Compatib... | info stripping off the deleting variant . |
161,785 | private static void checkExtraFields ( JSTuple tuple , int startCol , int count ) throws JMFSchemaViolationException { for ( int i = startCol ; i < count ; i ++ ) { JMFType field = tuple . getField ( i ) ; if ( field instanceof JSVariant ) { JMFType firstCase = ( ( JSVariant ) field ) . getCase ( 0 ) ; if ( firstCase i... | Check the extra columns in a tuple to make sure they are all defaultable |
161,786 | public StampedValue asType ( final Type type ) { StampedValue cachedValue = null ; for ( StampedValue value : typeCache ) { if ( value . getType ( ) . equals ( type ) ) { cachedValue = value ; break ; } } if ( cachedValue == null ) { StampedValue newValue = new StampedValue ( type , this , config ) ; typeCache . add ( ... | Check if a StampedValue already exists for the type if it does return it otherwise create a new one and add it |
161,787 | public static void finalizeForDeletion ( UIComponent component ) { component . getAttributes ( ) . remove ( MARK_DELETED ) ; if ( component . getChildCount ( ) > 0 ) { for ( Iterator < UIComponent > iter = component . getChildren ( ) . iterator ( ) ; iter . hasNext ( ) ; ) { UIComponent child = iter . next ( ) ; if ( c... | Used in conjunction with markForDeletion where any UIComponent marked will be removed . |
161,788 | public static UIComponent findChild ( UIComponent parent , String id ) { int childCount = parent . getChildCount ( ) ; if ( childCount > 0 ) { for ( int i = 0 ; i < childCount ; i ++ ) { UIComponent child = parent . getChildren ( ) . get ( i ) ; if ( id . equals ( child . getId ( ) ) ) { return child ; } } } return nul... | A lighter - weight version of UIComponent s findChild . |
161,789 | public static UIComponent findChildByTagId ( UIComponent parent , String id ) { Iterator < UIComponent > itr = null ; if ( parent . getChildCount ( ) > 0 ) { for ( int i = 0 , childCount = parent . getChildCount ( ) ; i < childCount ; i ++ ) { UIComponent child = parent . getChildren ( ) . get ( i ) ; if ( id . equals ... | By TagId find Child |
161,790 | public static Locale getLocale ( FaceletContext ctx , TagAttribute attr ) throws TagAttributeException { Object obj = attr . getObject ( ctx ) ; if ( obj instanceof Locale ) { return ( Locale ) obj ; } if ( obj instanceof String ) { String s = ( String ) obj ; if ( s . length ( ) == 2 ) { return new Locale ( s ) ; } if... | According to JSF 1 . 2 tag specs this helper method will use the TagAttribute passed in determining the Locale intended . |
161,791 | public static UIViewRoot getViewRoot ( FaceletContext ctx , UIComponent parent ) { UIComponent c = parent ; do { if ( c instanceof UIViewRoot ) { return ( UIViewRoot ) c ; } else { c = c . getParent ( ) ; } } while ( c != null ) ; UIViewRoot root = ctx . getFacesContext ( ) . getViewRoot ( ) ; if ( root == null ) { roo... | Tries to walk up the parent to find the UIViewRoot if not found then go to FaceletContext s FacesContext for the view root . |
161,792 | public static void markForDeletion ( UIComponent component ) { component . getAttributes ( ) . put ( MARK_DELETED , Boolean . TRUE ) ; Iterator < UIComponent > iter = component . getFacetsAndChildren ( ) ; while ( iter . hasNext ( ) ) { UIComponent child = iter . next ( ) ; if ( child . getAttributes ( ) . containsKey ... | Marks all direct children and Facets with an attribute for deletion . |
161,793 | private static UIComponent createFacetUIPanel ( FaceletContext ctx , UIComponent parent , String facetName ) { FacesContext facesContext = ctx . getFacesContext ( ) ; UIComponent panel = facesContext . getApplication ( ) . createComponent ( facesContext , UIPanel . COMPONENT_TYPE , null ) ; FaceletCompositionContext mc... | Create a new UIPanel for the use as a dynamically created container for multiple children in a facet . Duplicate in javax . faces . webapp . UIComponentClassicTagBase . |
161,794 | public PolicyExecutor create ( Map < String , Object > props ) { PolicyExecutor executor = new PolicyExecutorImpl ( ( ExecutorServiceImpl ) globalExecutor , ( String ) props . get ( "config.displayId" ) , null , policyExecutors ) ; executor . updateConfig ( props ) ; return executor ; } | Creates a new policy executor instance and initializes it per the specified OSGi service component properties . The config . displayId of the OSGi service component properties is used as the unique identifier . |
161,795 | public PolicyExecutor create ( String identifier ) { return new PolicyExecutorImpl ( ( ExecutorServiceImpl ) globalExecutor , "PolicyExecutorProvider-" + identifier , null , policyExecutors ) ; } | Creates a new policy executor instance . |
161,796 | public PolicyExecutor create ( String fullIdentifier , String owner ) { return new PolicyExecutorImpl ( ( ExecutorServiceImpl ) globalExecutor , fullIdentifier , owner , policyExecutors ) ; } | Creates a new policy executor instance for use by a single application . Policy executors owned by this application can be shut down via the shutdownNow method of this class . |
161,797 | public GZIPOutputStream getGZIPOutputStream ( BeanId beanId ) throws CSIException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getOutputStream" , beanId ) ; final String fileName = getPortableFilename ( beanId ) ; final long beanTi... | Get object ouput stream suitable for reading persistent state associated with given key . |
161,798 | private String getPortableFilename ( BeanId beanId ) { StringBuilder result = new StringBuilder ( ) ; result . append ( FILENAME_PREFIX ) ; appendPortableFilenameString ( result , beanId . getJ2EEName ( ) . toString ( ) ) ; result . append ( "__" ) ; appendPortableFilenameString ( result , beanId . getPrimaryKey ( ) . ... | Create a safe file name given the BeanId . There are a number of characters which can cause problems on different platforms . A safe file name will container only the following characters a - z A - Z _ - . All other characters will get converted to a _ |
161,799 | public OutputStream getOutputStream ( BeanId beanId ) throws CSIException { final String fileName = getPortableFilename ( beanId ) ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getOutputStream: key=" + beanId + ", file=" , fileName ... | LIDB2018 - 1 new method for just dumping in the byte array to a file byte array in gzip format . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.