idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
161,200 | @ Override public Map < String , List < AppConfigurationEntry > > getEntries ( ) { Map < String , List < AppConfigurationEntry > > jaasConfigurationEntries = new HashMap < String , List < AppConfigurationEntry > > ( ) ; Map < String , String > jaasConfigIDs = new HashMap < String , String > ( ) ; if ( jaasLoginContextE... | Get all jaasLoginContextEntry in the server . xml and create any missing default entries . If there are no jaas configuration then create all the default entries system . DEFAULT system . WEB_INBOUND system . DESERIALIZE_CONTEXT system . UNAUTHENTICATED and WSLogin | 538 | 66 |
161,201 | @ Override @ Trivial public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Throwable { if ( "addTransformer" . equals ( method . getName ( ) ) ) { addTransformer ( ( ClassFileTransformer ) args [ 0 ] , args . length > 1 ? ( Boolean ) args [ 1 ] : false ) ; return null ; } if ( "removeTransforme... | If this method is traced it can call proxy . toString which causes another invoke call leading to an infinite loop . | 388 | 23 |
161,202 | public static void addSubjectCustomData ( Subject callSubject , Hashtable < String , Object > newCred ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "addSubjectCustomData" , newCred ) ; } AddPrivateCredentials action = new AddPrivateCredentials ( callSubject , newCred... | This method adds the custom Hashtable provided to the private credentials of the Subject passed in . | 135 | 18 |
161,203 | public static Hashtable < String , Object > getCustomCredentials ( Subject callSubject , String cacheKey ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getCustomCredentials" , cacheKey ) ; } if ( callSubject == null || cacheKey == null ) { if ( TraceComponent . isAny... | This method extracts the custom hashtable from the provided Subject using the cacheKey . | 221 | 16 |
161,204 | public static void handlePasswordValidationCallback ( PasswordValidationCallback callback , Subject executionSubject , Hashtable < String , Object > addedCred , String appRealm , Invocation [ ] invocations ) throws RemoteException , WSSecurityException { invocations [ 2 ] = Invocation . PASSWORDVALIDATIONCALLBACK ; if ... | The PasswordValidationCallback is used for password validation . This callback is used by the Resource Adapter to employ the password validation facilities of its containing runtime . This Callback is passed to the CallbackHandler provided by the J2C runtime during invocation of the handle method by the Resource Adapte... | 540 | 58 |
161,205 | private static void addUniqueIdAndGroupsForUser ( String securityName , Hashtable < String , Object > credData , String appRealm ) // 675924 throws WSSecurityException , RemoteException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "addUniqueIdAndGroupsForUser" , secur... | Checks if the provided securityName is valid against the user registry . In case it is valid it then gets uniqueId and the groups for the user with the given securityName . It then uses this information to create the custom hashtable required for login . | 679 | 51 |
161,206 | private static boolean checkUserPassword ( String userSecurityName , String password , UserRegistry registry , String realmName , Hashtable < String , Object > addedCred , Invocation isCCInvoked ) { // 675924 if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "checkUserPasswo... | Checks the user name and password against the user registry provided . If the user name and password are valid it returns true . | 742 | 25 |
161,207 | public static String getCacheKey ( String uniqueId , String appRealm ) { StringBuilder cacheKey = new StringBuilder ( ) ; if ( uniqueId == null || appRealm == null ) { cacheKey . append ( CACHE_KEY_PREFIX ) ; } else { cacheKey . append ( CACHE_KEY_PREFIX ) . append ( uniqueId ) . append ( CACHE_KEY_SEPARATOR ) . append... | This method constructs the cache key that is required by security for caching the Subject . | 114 | 16 |
161,208 | private static boolean validateCallbackInformation ( Hashtable < String , Object > credData , String securityName , Invocation isInvoked ) { boolean status = true ; if ( isInvoked == Invocation . CALLERPRINCIPALCALLBACK ) { String existingName = ( String ) credData . get ( AttributeNameConstants . WSCREDENTIAL_SECURITY... | This method validates whether the user security name provided by the CallerPrincipalCallback and the PasswordValidationCallback match . It does this check only in case the CallerPrincipalCallback was invoked prior to the current invocation of the PasswordValidationCallback . | 154 | 50 |
161,209 | public static String objectId ( Object o ) { return ( o == null ) ? "0x0" : o . getClass ( ) . getName ( ) + "@" + Integer . toHexString ( o . hashCode ( ) ) ; } | A string that identifies an object instance within WAS messages and heap dumps . | 54 | 14 |
161,210 | synchronized void activate ( ComponentContext componentContext ) throws Exception { this . componentContext = componentContext ; this . classAvailableTransformer = new ClassAvailableTransformer ( this , instrumentation , includeBootstrap ) ; this . transformer = new ProbeClassFileTransformer ( this , instrumentation , ... | Activation callback from the Declarative Services runtime where the component is ready for activation . | 453 | 18 |
161,211 | synchronized void deactivate ( ) throws Exception { this . proxyActivator . deactivate ( ) ; this . instrumentation . removeTransformer ( this . classAvailableTransformer ) ; this . instrumentation . removeTransformer ( this . transformer ) ; this . shuttingDown = true ; // Save the classes that have listeners so we ca... | Deactivation callback from the Declarative Services runtime where the component is deactivated . | 317 | 17 |
161,212 | @ Override public boolean registerMonitor ( Object monitor ) { // Process the annotated object, build a configuration, and create probe // listeners that represent each call site of the monitor. if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "monitor = " + monitor ... | Register an annotated object as a monitor . The annotations will be used to generate the appropriate configuration . | 562 | 20 |
161,213 | @ Override public boolean unregisterMonitor ( Object annotatedObject ) { // Clear the listener data if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "unregisteringMonitor = " + annotatedObject ) ; } Set < ProbeListener > listeners = removeListenersForMonitor ( annota... | Unregister the specified monitor . Unregistering a monitor may cause one or more probes to be deactivated and the associated classes retransformed . | 329 | 29 |
161,214 | Set < ProbeListener > removeListenersForMonitor ( Object monitor ) { Set < ProbeListener > listeners = null ; listenersLock . writeLock ( ) . lock ( ) ; try { listeners = listenersForMonitor . remove ( monitor ) ; if ( listeners == null ) { listeners = Collections . emptySet ( ) ; } else { allRegisteredListeners . remo... | Remove the listeners associated with the specified monitor from the set of registered listeners . | 100 | 15 |
161,215 | Collection < Class < ? > > processNewListeners ( Collection < ProbeListener > listeners ) { Set < Class < ? > > classesToTransform = new HashSet < Class < ? > > ( ) ; Set < ProbeListener > matchingListeners = new HashSet < ProbeListener > ( ) ; Set < Class < ? > > monitorableTemp ; synchronized ( this . monitorable ) {... | Process recently registered listeners and calculate which classes need to be transformed with probes that drive the listeners . | 239 | 19 |
161,216 | synchronized Collection < Class < ? > > processRemovedListeners ( Collection < ProbeListener > listeners ) { Set < Class < ? > > classesToTransform = new HashSet < Class < ? > > ( ) ; for ( ProbeListener listener : listeners ) { Collection < ProbeImpl > listenerProbes = removeProbesByListener ( listener ) ; for ( Probe... | Process the recently unregistered listeners and calculate which classes need to be transformed to remove deactivated probes . | 143 | 20 |
161,217 | public void classAvailable ( Class < ? > clazz ) { if ( ! isMonitorable ( clazz ) ) { return ; } listenersLock . readLock ( ) . lock ( ) ; try { for ( ProbeListener listener : allRegisteredListeners ) { ProbeFilter filter = listener . getProbeFilter ( ) ; if ( filter . matches ( clazz ) ) { addInterestedByClass ( clazz... | Process a recently defined class to determine if it needs to be transformed with probes . | 167 | 16 |
161,218 | public synchronized ProbeImpl getProbe ( Class < ? > probedClass , String key ) { Map < String , ProbeImpl > classProbes = probesByKey . get ( probedClass ) ; if ( classProbes != null ) { return classProbes . get ( key ) ; } return null ; } | Get an existing instance of a probe with the specified source class and key . | 66 | 15 |
161,219 | public void addActiveProbesforListener ( ProbeListener listener , Collection < ProbeImpl > probes ) { // Add the probes for the specified listener. This is purely additive. // Since a listener's configuration can't be updated after registration, // we're adding probes for recently initialized / modified classes. addPro... | Update the appropriate collections to reflect recently activated probes for the specified listener . | 93 | 14 |
161,220 | void addListenerByProbe ( ProbeImpl probe , ProbeListener listener ) { Set < ProbeListener > listeners = listenersByProbe . get ( probe ) ; if ( listeners == null ) { listeners = new CopyOnWriteArraySet < ProbeListener > ( ) ; listenersByProbe . putIfAbsent ( probe , listeners ) ; listeners = listenersByProbe . get ( p... | Add the specified listener to the collection of listeners associated with the specified probe . | 91 | 15 |
161,221 | boolean removeListenerByProbe ( ProbeImpl probe , ProbeListener listener ) { boolean deactivatedProbe = false ; Set < ProbeListener > listeners = listenersByProbe . get ( probe ) ; if ( listeners != null ) { listeners . remove ( listener ) ; if ( listeners . isEmpty ( ) ) { deactivateProbe ( probe ) ; deactivatedProbe ... | Remove the specified listener from the collection of listeners associated with the specified probe . | 90 | 15 |
161,222 | synchronized void deactivateProbe ( ProbeImpl probe ) { listenersByProbe . remove ( probe ) ; activeProbesById . remove ( probe . getIdentifier ( ) ) ; Class < ? > clazz = probe . getSourceClass ( ) ; Map < String , ProbeImpl > classProbesByKey = probesByKey . get ( clazz ) ; classProbesByKey . remove ( probe . getName... | Deactivate the specified probe and remove all data associated with the probe . | 120 | 14 |
161,223 | synchronized void addProbesByListener ( ProbeListener listener , Collection < ProbeImpl > probes ) { Set < ProbeImpl > listenerProbes = probesByListener . get ( listener ) ; if ( listenerProbes == null ) { listenerProbes = new HashSet < ProbeImpl > ( ) ; probesByListener . put ( listener , listenerProbes ) ; } listener... | Associate the specified collection of probes with the specified listener . | 88 | 12 |
161,224 | synchronized Collection < ProbeImpl > removeProbesByListener ( ProbeListener listener ) { Set < ProbeImpl > listenerProbes = probesByListener . remove ( listener ) ; if ( listenerProbes == null ) { listenerProbes = Collections . emptySet ( ) ; } return listenerProbes ; } | Remove all probes that were fired at the specified listener . | 64 | 11 |
161,225 | public boolean isExcludedClass ( String className ) { // We rely heavily on reflection to deliver probes if ( className . startsWith ( "java/lang/reflect" ) ) { return true ; } // Miscellaneous sun.misc classes if ( className . startsWith ( "sun/misc" ) ) { return true ; } // Sun VM generated accessors wreak havoc if (... | Determine if the named class is one that should be excluded from monitoring via probe injection . The patterns below generally include classes required to implement JVM function on which the monitoring code depends . | 352 | 38 |
161,226 | public boolean isMonitorable ( Class < ? > clazz ) { // Faster(?) path if ( notMonitorable . contains ( clazz ) ) { return false ; } else if ( monitorable . contains ( clazz ) ) { return true ; } boolean isMonitorable = true ; if ( ! instrumentation . isModifiableClass ( clazz ) ) { isMonitorable = false ; } else if ( ... | Determine of the specified class can be monitored via the probes infrastructure . | 264 | 15 |
161,227 | boolean checkPrefix ( char [ ] chars , int [ ] cursor ) { if ( chars . length > cursor [ 0 ] && chars [ cursor [ 0 ] ] == MatchSpace . NONWILD_MARKER ) return false ; if ( prefix == null ) return true ; if ( cursor [ 1 ] - cursor [ 0 ] < prefix . minlen ) // a conservative test, but if we can't pass it, we'll certainly... | Override checkPrefix to implement topic semantics | 249 | 8 |
161,228 | static boolean topicSkipForward ( char [ ] chars , int [ ] cursor ) { if ( cursor [ 0 ] == cursor [ 1 ] ) return false ; while ( cursor [ 0 ] < cursor [ 1 ] && chars [ cursor [ 0 ] ] != MatchSpace . SUBTOPIC_SEPARATOR_CHAR ) cursor [ 0 ] ++ ; return true ; } | Skip forward to the next separator character | 75 | 8 |
161,229 | boolean checkSuffix ( char [ ] chars , int [ ] cursor ) { if ( suffix == null ) return true ; if ( cursor [ 1 ] - cursor [ 0 ] < suffix . minlen ) // a conservative test, but if we can't pass it, we'll certainly fail later return false ; int last = suffix . items . length - 1 ; for ( int i = last ; i >= 0 ; i -- ) { Ob... | Override checkSuffix to implement topic semantics | 258 | 9 |
161,230 | static boolean topicSkipBackward ( char [ ] chars , int [ ] cursor ) { if ( cursor [ 0 ] == cursor [ 1 ] ) return false ; while ( cursor [ 0 ] < cursor [ 1 ] && chars [ cursor [ 1 ] - 1 ] != MatchSpace . SUBTOPIC_SEPARATOR_CHAR ) cursor [ 1 ] -- ; return true ; } | Skip backward to the next separator character | 78 | 8 |
161,231 | static boolean matchBackward ( char [ ] chars , char [ ] pattern , int [ ] cursor ) { int start = cursor [ 1 ] - pattern . length ; if ( start < cursor [ 0 ] ) // candidate is too short to possibly match return false ; if ( ! matchForward ( chars , pattern , new int [ ] { start , cursor [ 1 ] } ) ) return false ; // Th... | Match characters in a backward direction | 103 | 6 |
161,232 | public static Object parsePattern ( String pattern ) { // Unfortunately, this method shares a fair amount of logic with Topic.parsePattern // but it is hard to figure out how to factor them. char [ ] accum = new char [ pattern . length ( ) ] ; int finger = 0 ; List tokens = new ArrayList ( ) ; boolean trivial = true ; ... | Parse a string topic pattern into a TopicPattern object | 514 | 11 |
161,233 | public static StringArrayWrapper create ( String [ ] data , String bigDestName ) throws JMSException { int size = 0 ; if ( data != null ) size = data . length ; List fakedFullMsgPath = new ArrayList ( size + 1 ) ; if ( size > 0 ) { for ( int i = 0 ; i < size ; i ++ ) { // Create the appropriate List element. String des... | This method is used for unit test purposes to simulate the creation of a StringArrayWrapper whose destinations are all on the local bus . | 580 | 27 |
161,234 | public String [ ] getArray ( ) { // Create a copy to return to provide isolation. String [ ] newArray = null ; // Returning a list of the destination names excluding the // 'big' destination name. newArray = new String [ fullMsgPath . size ( ) - 1 ] ; for ( int i = 0 ; i < newArray . length ; i ++ ) { newArray [ i ] = ... | Returns a list of the destination names not including the big destination name . | 118 | 14 |
161,235 | public void createDestinationLocalization ( DestinationDefinition destinationDefinition , LocalizationDefinition destinationLocalizationDefinition , Set destinationLocalizingMEs , boolean isTemporary ) throws SIResourceException , SIMPDestinationAlreadyExistsException { if ( TraceComponent . isAnyTracingEnabled ( ) && ... | Method only called by unit tests to create destinations | 180 | 9 |
161,236 | @ Override public void introspect ( PrintWriter writer ) { RuntimeMXBean runtime = ManagementFactory . getRuntimeMXBean ( ) ; introspectUptime ( runtime , writer ) ; introspectVendorVersion ( runtime , writer ) ; introspectInputArguments ( runtime , writer ) ; Map < String , String > props = introspectSystemProperties ... | Grab a snapshot of the current system properties . | 146 | 9 |
161,237 | public ArrayList getProperties ( ) { ArrayList properties = new ArrayList ( ) ; if ( configEntry . properties != null ) { Iterator it = configEntry . properties . values ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Property property = new Property ( ( com . ibm . ws . cache . config . Property ) it . next ( ) ) ; ... | This method returns a list of properties defined on a cache - entry | 97 | 13 |
161,238 | public CacheId [ ] getCacheIds ( ) { CacheId [ ] cacheIds = new CacheId [ configEntry . cacheIds . length ] ; for ( int i = 0 ; i < configEntry . cacheIds . length ; i ++ ) { cacheIds [ i ] = new CacheId ( configEntry . cacheIds [ i ] ) ; } return cacheIds ; } | This method returns an array of CacheId objects that contain cache ID generation rules used to produce a valid cache ID . | 85 | 23 |
161,239 | public DependencyId [ ] getDependencyIds ( ) { DependencyId [ ] depIds = new DependencyId [ configEntry . dependencyIds . length ] ; for ( int i = 0 ; i < configEntry . dependencyIds . length ; i ++ ) { depIds [ i ] = new DependencyId ( configEntry . dependencyIds [ i ] ) ; } return depIds ; } | This method returns an array of DependencyId objects that specified addditional cache indentifers that associated multiple cache entries to the same group identiifier . | 91 | 32 |
161,240 | public Invalidation [ ] getInvalidations ( ) { Invalidation [ ] invalidations = new Invalidation [ configEntry . invalidations . length ] ; for ( int i = 0 ; i < configEntry . invalidations . length ; i ++ ) { invalidations [ i ] = new Invalidation ( configEntry . invalidations [ i ] ) ; } return invalidations ; } | This method returns an array of Invalidation objects that written custom Java code or through rules that are defined in the cache policy of each entry . | 78 | 28 |
161,241 | private void closeSocketChannel ( SocketChannel sc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { try { Tr . event ( this , tc , "Closing connection, local: " + sc . socket ( ) . getLocalSocketAddress ( ) + " remote: " + sc . socket ( ) . getRemoteSocketAddress ( ) ) ; } catch ( Throwa... | Handle closing the socket channel with appropriate debug and error protection . | 168 | 12 |
161,242 | public static Class < ? > [ ] toTypeArray ( String [ ] s ) throws ClassNotFoundException { if ( s == null ) return null ; Class < ? > [ ] c = new Class [ s . length ] ; for ( int i = 0 ; i < s . length ; i ++ ) { c [ i ] = forName ( s [ i ] ) ; } return c ; } | Converts an array of Class names to Class types . | 84 | 11 |
161,243 | public static String [ ] toTypeNameArray ( Class < ? > [ ] c ) { if ( c == null ) return null ; String [ ] s = new String [ c . length ] ; for ( int i = 0 ; i < c . length ; i ++ ) { s [ i ] = c [ i ] . getName ( ) ; } return s ; } | Converts an array of Class types to Class names . | 78 | 11 |
161,244 | public boolean add ( Object o ) { synchronized ( pool ) { if ( index < pool . length ) { pool [ index ++ ] = o ; // if (DEBUG && tc.isDebugEnabled() ) // Tr.debug(tc,"added to pool " + name + " at " + index); return true ; } } // if (DEBUG && tc.isDebugEnabled() ) // Tr.debug(tc,"pool " + name + " is full"); return fal... | Returns true if the object was added back to the pool | 99 | 11 |
161,245 | protected synchronized Dispatchable getThreadContext ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getThreadContext" ) ; // Start D202625 // Save the position of the data int currentPos = data . position ( ) ; int currentLimit = data . limit ( ) ; Dispatch... | This method will ask the receive listener for the thread context . | 510 | 12 |
161,246 | public void setLogDataDirectory ( String logDataDirectory ) { LogState state = ivLog . setDataDirectory ( logDataDirectory ) ; if ( state != null ) { updateLogConfiguration ( state ) ; state . copyTo ( ivLog ) ; } } | Setters for Log Data | 54 | 5 |
161,247 | private void updateTraceConfiguration ( TraceState state ) { if ( DIRECTORY_TYPE . equals ( state . ivStorageType ) ) { LogRepositoryComponent . setTraceDirectoryDestination ( state . ivDataDirectory , state . ivPurgeBySizeEnabled , state . ivPurgeByTimeEnabled , state . ivFileSwitchEnabled , state . ivBufferingEnabled... | update all info for Trace Repository | 205 | 7 |
161,248 | public void setTraceMemory ( String dataDirectory , long memoryBufferSize ) { TraceState state = ( TraceState ) ivTrace . clone ( ) ; state . ivStorageType = MEMORYBUFFER_TYPE ; state . ivDataDirectory = dataDirectory ; state . ivMemoryBufferSize = memoryBufferSize ; updateTraceConfiguration ( state ) ; state . copyTo ... | Modify the trace to use a memory buffer | 85 | 9 |
161,249 | private static HttpServletRequest getWrappedServletRequestObject ( HttpServletRequest sr ) { if ( sr instanceof HttpServletRequestWrapper ) { HttpServletRequestWrapper w = ( HttpServletRequestWrapper ) sr ; // make sure we drill all the way down to an // SRTServletRequest...there // may be multiple proxied objects sr =... | Drill down through any possible HttpServletRequestWrapper objects . | 144 | 15 |
161,250 | public static FileSharedServerLeaseLog getFileSharedServerLeaseLog ( String logDirStem , String localRecoveryIdentity , String recoveryGroup ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "FileSharedServerLeaseLog" , new Object [ ] { logDirStem , localRecoveryIdentity , recoveryGroup } ) ; if ( _serverInstallLeas... | Access the singleton instance of the FileSystem Lease log . | 156 | 13 |
161,251 | public static int parseRMICCompatible ( String options ) // PM46698 { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "parseRMICCompatible: " + options ) ; int flags ; if ( options == null ) { flags = RMIC_COMPATIBLE_DEFAULT ; } else if ... | Parse an rmic compatibility options string . | 286 | 9 |
161,252 | public static void registerJIT_StubClassPlugin ( ClassLoader classloader ) { boolean isRegistered = JIT_StubPluginImpl . register ( classloader ) ; if ( ! isRegistered ) { throw new IllegalArgumentException ( "Specified ClassLoader does not support JIT_StubClassPlugin : " + classloader ) ; } } | F1339 - 8988 | 74 | 6 |
161,253 | synchronized void setStageTopics ( String stageName , String [ ] topics ) { for ( String t : topics ) { if ( t . equals ( "*" ) ) { wildcardStageTopics . put ( "" , stageName ) ; } else if ( t . endsWith ( "/*" ) ) { wildcardStageTopics . put ( t . substring ( 0 , t . length ( ) - 1 ) , stageName ) ; } else { discreteS... | Set the list of topics to be associated with the specified work stage . | 130 | 14 |
161,254 | TopicData getTopicData ( Topic topic , String topicName ) { TopicData topicData = null ; if ( topic != null ) { topicData = topic . getTopicData ( ) ; } if ( topicData == null ) { topicData = topicDataCache . get ( topicName ) ; if ( topic != null && topicData != null ) { topic . setTopicDataReference ( topicData . get... | Get the cached information about the specified topic . The cached data will allow us to avoid the expense of finding various and sundry data associated with a specific topic and topic hierarchies . | 146 | 36 |
161,255 | public boolean accessDenied ( InetAddress remoteAddr ) { String hostname = null ; //F184719 // check the inclusion lists first to see if the client matches if ( includeAccess . getActive ( ) || includeAccessNames . getActive ( ) ) { boolean closeSocket = true ; if ( includeAccess . getActive ( ) ) { if ( remoteAddr ins... | Query whether a given client address is denied by this configuration . | 692 | 12 |
161,256 | @ Override public void sendAckMessage ( SIBUuid8 sourceMEUuid , SIBUuid12 destUuid , SIBUuid8 busUuid , long ackPrefix , int priority , Reliability reliability , SIBUuid12 stream , boolean consolidate ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry... | sendAckMessage is called from preCommitCallback after the message has been delivered to the final destination | 327 | 21 |
161,257 | @ Override public void sendNackMessage ( SIBUuid8 sourceMEUuid , SIBUuid12 destUuid , SIBUuid8 busUuid , long startTick , long endTick , int priority , Reliability reliability , SIBUuid12 stream ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc ... | Sends a Nack message back to the originating ME | 351 | 11 |
161,258 | private ControlNack createControlNackMessage ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createControlNackMessage" ) ; ControlNack nackMsg = null ; // Create new NackMessage try { nackMsg = _cmf . createNewControlNack ( ) ; } catch ( ... | Creates an NACK message for sending | 403 | 8 |
161,259 | protected ControlRequestFlush createControlRequestFlush ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createControlRequestFlush" ) ; ControlRequestFlush rflushMsg = null ; // Create new message try { rflushMsg = _cmf . createNewControlR... | Creates a REQUESTFLUSH message for sending | 408 | 10 |
161,260 | private int checkCanExceptionMessage ( DestinationHandler destinationHandler ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkCanExceptionMessage" , new Object [ ] { destinationHandler } ) ; // Destination exception destination handler ExceptionDestinationHandler... | Check whether it will be possible to place a message on the exception destination belonging to a destination . | 171 | 19 |
161,261 | private int checkTargetAbleToAcceptOrExceptionMessage ( JsDestinationAddress targetDestinationAddr ) throws SITemporaryDestinationNotFoundException , SIResourceException , SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "chec... | See if a target destination or if necessary its exception destination can handle any more messages . | 434 | 17 |
161,262 | private int checkLinkAbleToExceptionMessage ( ) throws SIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkLinkAbleToExceptionMessage" ) ; int blockingReason = DestinationHandler . OUTPUT_HANDLER_NOT_FOUND ; blockingReason = checkCanExceptionMessage ( _des... | See if a link s exception destination can handle any more messages . | 141 | 13 |
161,263 | void balancedPush ( int state , GBSNode node ) { push ( state , node ) ; if ( node . balance ( ) != 0 ) _bpidx = _cidx ; } | Push a node and associated state onto the stack remembering a height imbalance if there is one . | 41 | 18 |
161,264 | void processSubFringe ( GBSNode p ) { /* Depth of a balanced T-zero tree for */ /* this tree's K factor */ int t0_depth = _tree . tZeroDepth ( ) ; /* Determine top-most node we must visit in the tree walk */ int ntop = 0 ; /* This is the index within the */ /* NodeStack that represents the top */ /* of the sub-tree. We... | Walk through a fringe of the tree . | 202 | 8 |
161,265 | private void innerProcessSubTree ( GBSNode p , int initialState , int topIndex ) { boolean done = false ; _topIndex = topIndex ; _endp = p ; _endIndex = _idx ; GBSNode q ; /* Used for tree walking */ int s = initialState ; while ( ! done ) { switch ( s ) { case NodeStack . VISIT_LEFT : s = NodeStack . PROCESS_CURRENT ;... | Walk through an entire sub - tree invoking processNode on each node . | 364 | 14 |
161,266 | public String stateName ( int state ) { String name = "Unknown state = " + state ; switch ( state ) { case NodeStack . VISIT_LEFT : name = "VISIT_LEFT" ; break ; case NodeStack . PROCESS_CURRENT : name = "PROCESS_CURRENT" ; break ; case NodeStack . VISIT_RIGHT : name = "VISIT_RIGHT" ; break ; case NodeStack . DONE_VISI... | Return the name of a node state | 119 | 7 |
161,267 | public final static void logException ( TraceComponent compTc , Throwable t , EJBMethodMetaData m , BeanO bean ) { //d408351 - only log recursive exceptions if they have not been logged before if ( hasBeenLogged ( t ) ) { return ; } BeanId beanId = null ; if ( bean != null ) { beanId = bean . getId ( ) ; } if ( m == nu... | d408351 - added new signature with customizable TraceComponent | 297 | 11 |
161,268 | static public Throwable findRootCause ( Throwable throwable ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "findRootCause: " + throwable ) ; } Throwable root = throwable ; Throwable next = root ; while ( next != null ) { root = next ; if ( TraceComponent . isAnyTracin... | Finds the root cause of a Throwable that occured . This routine will continue to look through chained Throwables until it cannot find another chained Throwable and return the last one in the chain as the root cause . | 605 | 44 |
161,269 | public static Exception Exception ( Throwable cause ) { return ( cause instanceof Exception ) ? ( Exception ) cause : new Exception ( "See nested Throwable" , cause ) ; } | F71894 . 1 | 37 | 5 |
161,270 | protected ClientBehaviorAttachedObjectTargetImpl createAttachedObjectTarget ( FaceletContext ctx ) { ClientBehaviorAttachedObjectTargetImpl target = new ClientBehaviorAttachedObjectTargetImpl ( ) ; if ( _event != null ) { target . setEvent ( _event . getValueExpression ( ctx , String . class ) ) ; } if ( _name != null ... | Create a new AttachedObjectTarget instance to be added on the target list . | 173 | 16 |
161,271 | private void registerEndpointMBean ( String name , EndPointInfoImpl ep ) { endpointMBeans . put ( name , registerMBeanAsService ( name , ep ) ) ; } | Register an endpoint MBean and publish it . | 42 | 10 |
161,272 | private EndPointInfoImpl updateEndpointMBean ( String name , String host , int port ) { EndPointInfoImpl existingEP = endpoints . get ( name ) ; existingEP . updateHost ( host ) ; existingEP . updatePort ( port ) ; return existingEP ; } | Update an existing endpoint MBean which will emit change notifications . | 60 | 13 |
161,273 | private void destroyEndpointMBeans ( ) { for ( Map . Entry < String , ServiceRegistration < DynamicMBean > > mbean : endpointMBeans . entrySet ( ) ) { String mbeanName = mbean . getKey ( ) ; endpointMBeans . remove ( mbeanName ) ; mbean . getValue ( ) . unregister ( ) ; } } | For each registered MBean unpublish unregister and remove from the map . | 82 | 17 |
161,274 | public static void destroyEndpoints ( ) { EndPointMgrImpl _this = ( EndPointMgrImpl ) getRef ( ) ; synchronized ( _this . endpoints ) { _this . destroyEndpointMBeans ( ) ; _this . endpoints . clear ( ) ; } } | Destroy all of the defined endpoints . | 62 | 8 |
161,275 | private void unregisterMBeanInService ( String name ) { ServiceRegistration < DynamicMBean > existingMBean = endpointMBeans . remove ( name ) ; if ( existingMBean != null ) { existingMBean . unregister ( ) ; } } | Remove the MBean from the map of registered MBeans and unregister it . | 59 | 18 |
161,276 | @ Override public void removeEndPoint ( String name ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Deleting endpoint: " + name ) ; } synchronized ( this . endpoints ) { if ( this . endpoints . remove ( name ) != null ) { unregisterMBeanInService ( name ) ; } } } | Delete the endpoint that matches the provided name . | 90 | 9 |
161,277 | private static String [ ] getTokensArray ( String tokenComposite ) throws ParseException { if ( tokenComposite == null || "" . equals ( tokenComposite ) ) { return null ; } return parseNameTokens ( tokenComposite ) ; } | Takes a string that is a composite of tokens extracts tokens delimited by any whitespace character sequence combination and returns a String array of such tokens . | 56 | 30 |
161,278 | static public String [ ] parseNameTokens ( String stringValue ) { if ( stringValue == null ) { return null ; } ArrayList < String > list = new ArrayList < String > ( 5 ) ; int length = stringValue . length ( ) ; boolean inSpace = true ; int start = 0 ; for ( int i = 0 ; i < length ; i ++ ) { char ch = stringValue . cha... | Parses a whitespace separated series of name tokens . | 311 | 12 |
161,279 | public static FlowType getKey ( int ordinal ) { if ( ordinal >= 0 && ordinal < _values . length ) { return _values [ ordinal ] ; } return null ; } | Fetch the FlowType for a particular integer . | 41 | 10 |
161,280 | public boolean containsChannel ( String channelName ) { boolean found = false ; for ( int i = 0 ; i < channels . length ; i ++ ) { if ( channels [ i ] . getName ( ) . equals ( channelName ) ) { found = true ; break ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "con... | Check whether this chain contains the input channel name . | 108 | 10 |
161,281 | private static boolean needsEncoding ( String s , boolean relax , boolean [ ] unreserved ) { int len = s . length ( ) ; for ( int i = 0 ; i < len ; ++ i ) { char c = s . charAt ( i ) ; if ( c == ' ' && relax ) { continue ; } if ( c > unreserved . length ) { return true ; } if ( unreserved [ c ] == false ) { return true... | Determines if the input string contains any invalid URI characters that require encoding | 102 | 15 |
161,282 | public Object getWLMEndPointData ( ) { if ( mode != PropertiesType . WLM_EP ) { throw new SIErrorException ( nls . getFormattedMessage ( "INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006" , null , "INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006" ) // D270373 ) ; } return wlmEndPointData ; } | Returns the WLM endpoint data associated with this instance of connection properties . This is only valid if the instance was created to use the WLM endpoint mode of operation . An IllegalArgumentException will be thrown otherwise . | 97 | 43 |
161,283 | public static String getContextRootNotFoundMessage ( ) { // this does not return a default string, since the caller may (and does in our case) choose to build a runtime // dependent string. HttpDispatcher f = instance . get ( ) . get ( ) ; if ( f != null ) return f . appOrContextRootNotFound ; return null ; } | Get the value for the appOrContextRootMissingMessage custom property . return null if it was not set . | 78 | 22 |
161,284 | public boolean isTrusted ( String hostAddr , String headerName ) { if ( ! wcTrusted ) { return false ; } if ( HttpHeaderKeys . isSensitivePrivateHeader ( headerName ) ) { // if this is a sensitive private header, check trustedSensitiveHeaderOrigin values return isTrustedForSensitiveHeaders ( hostAddr ) ; } if ( ! usePr... | Check to see if the source host address is one we allow for specification of private headers | 226 | 17 |
161,285 | public boolean isTrustedForSensitiveHeaders ( String hostAddr ) { if ( ! useSensitivePrivateHeaders ) { // trustedSensitiveHeaderOrigin list is either unset (defaults to "none") or explicitly set to "none" return false ; } if ( restrictSensitiveHeaderOrigin == null ) { // trustedSensitiveHeaderOrigin is set to "*" retu... | Check to see if the source host address is one we allow for specification of sensitive private headers | 120 | 18 |
161,286 | public static ExecutorService getExecutorService ( ) { HttpDispatcher f = instance . get ( ) . get ( ) ; if ( f == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "HttpDispatcher instance not found" ) ; } return null ; } else { if ( TraceComponent . isAnyTracingEn... | Access the collaboration engine . | 137 | 5 |
161,287 | public static CHFWBundle getCHFWBundle ( ) { HttpDispatcher f = instance . get ( ) . get ( ) ; if ( f != null ) return f . chfw ; return null ; } | Access the channel framework bundle . | 47 | 6 |
161,288 | public static WsByteBufferPoolManager getBufferManager ( ) { final CHFWBundle chfw = getCHFWBundle ( ) ; if ( null == chfw ) { return ChannelFrameworkFactory . getBufferManager ( ) ; } return chfw . getBufferManager ( ) ; } | Access the current reference to the bytebuffer pool manager . | 62 | 11 |
161,289 | public static ChannelFramework getFramework ( ) { final CHFWBundle chfw = getCHFWBundle ( ) ; if ( null == chfw ) { return ChannelFrameworkFactory . getChannelFramework ( ) ; } return chfw . getFramework ( ) ; } | Access the current reference to the channel framework instance . | 60 | 10 |
161,290 | @ Reference ( name = "workClassifier" , policy = ReferencePolicy . DYNAMIC , cardinality = ReferenceCardinality . OPTIONAL ) protected void setWorkClassifier ( WorkClassifier service ) { workClassifier = service ; } | DS method for setting the Work Classification service reference . | 53 | 10 |
161,291 | public static WorkClassifier getWorkClassifier ( ) { HttpDispatcher f = instance . get ( ) . get ( ) ; if ( f != null ) return f . workClassifier ; return null ; } | Access to the WorkClassifier | 46 | 6 |
161,292 | private static ObjectName createObjectName ( String type , String name , Hashtable < String , String > props ) { props . put ( KEY_TYPE , type ) ; props . put ( KEY_NAME , name ) ; try { return new ObjectName ( DOMAIN_NAME , props ) ; } catch ( MalformedObjectNameException e ) { throw new IllegalArgumentException ( e )... | Common object name factory method . | 84 | 6 |
161,293 | public static ObjectName createApplicationObjectName ( String name , String serverName ) { Hashtable < String , String > props = new Hashtable < String , String > ( ) ; props . put ( TYPE_SERVER , serverName ) ; return createObjectName ( TYPE_APPLICATION , name , props ) ; } | Application and module factory methods ... | 67 | 6 |
161,294 | public static ObjectName createEJBModuleObjectName ( String uri , String appName , String serverName ) { return createModuleObjectName ( ModuleType . EJBModule , uri , appName , serverName ) ; } | EJB factory methods ... | 48 | 5 |
161,295 | public static ObjectName createWebModuleObjectName ( String moduleURI , String appName , String serverName ) { return createModuleObjectName ( ModuleType . WebModule , moduleURI , appName , serverName ) ; } | Servlet factory methods ... | 46 | 5 |
161,296 | public static ObjectName createJavaMailObjectName ( String serverName , String mailSessionID , int resourceCounter ) { Hashtable < String , String > props = new Hashtable < String , String > ( ) ; props . put ( TYPE_SERVER , serverName ) ; props . put ( MAIL_SESSION_ID , mailSessionID ) ; props . put ( RESOURCE_ID , TY... | Java mail factory methods ... | 213 | 5 |
161,297 | public static ObjectName createResourceObjectName ( String serverName , String resourceType , String keyName ) { ObjectName objectName ; Hashtable < String , String > props = new Hashtable < String , String > ( ) ; props . put ( TYPE_SERVER , serverName ) ; objectName = createObjectName ( resourceType , keyName , props... | Creates a Resource ObjectName for a Resource MBean | 81 | 12 |
161,298 | @ Override public boolean libraryExists ( String libraryName ) { FacesContext facesContext = FacesContext . getCurrentInstance ( ) ; String localePrefix = getLocalePrefixForLocateResource ( facesContext ) ; final List < String > contracts = facesContext . getResourceLibraryContracts ( ) ; String pathToLib = null ; Bool... | Check if a library exists or not . This is done delegating to each ResourceLoader used because each one has a different prefix and way to load resources . | 560 | 31 |
161,299 | public Object setValue ( Token object ) { Object result = value ; value = object ; return result ; } | Sets the value for this entry | 22 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.