idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
163,300
synchronized public void set ( Element value ) { int bind = ( ( int ) value . getIndex ( ) & Integer . MAX_VALUE ) % buckets . length ; Element [ ] bucket = buckets [ bind ] ; int count = counts [ bind ] ; if ( bucket == null ) buckets [ bind ] = bucket = new Element [ initBucketSize ] ; else if ( bucket . length == co...
Set an element into the array
145
6
163,301
synchronized public Object [ ] toArray ( Object [ ] values ) { int count = 0 ; for ( int bind = 0 ; bind < buckets . length ; bind ++ ) { if ( counts [ bind ] > 0 ) System . arraycopy ( buckets [ bind ] , 0 , values , count , counts [ bind ] ) ; count += counts [ bind ] ; } return values ; }
Return the contents of the HashedArray as an array
81
11
163,302
@ SuppressWarnings ( "unchecked" ) private < T > T getProperty ( Map < String , Object > properties , String name , T deflt ) { T value = deflt ; try { T prop = ( T ) properties . get ( name ) ; if ( prop != null ) { value = prop ; } } catch ( ClassCastException e ) { //auto FFDC and allow the default value to be retur...
get a property and if not set use the supplied default
101
11
163,303
public static TraceComponent register ( String name , Class < ? > aClass , String [ ] groups ) { return register ( name , aClass , groups , null ) ; }
Register the provided name with the trace service and assign it to the provided groups .
36
16
163,304
public static final void audit ( TraceComponent tc , String msgKey , Object ... objs ) { TrConfigurator . getDelegate ( ) . audit ( tc , msgKey , objs ) ; }
Print the provided translated message if the input trace component allows audit level messages .
43
15
163,305
public static final void entry ( TraceComponent tc , String methodName , Object ... objs ) { TrConfigurator . getDelegate ( ) . entry ( tc , methodName , objs ) ; }
Print the provided trace point if the input trace component allows entry level messages .
43
15
163,306
public static final String formatMessage ( TraceComponent tc , String msgKey , Object ... objs ) { return formatMessage ( tc , Locale . getDefault ( ) , msgKey , objs ) ; }
Translate a message in the context of the input trace component using the default locale . This method is typically used to provide translated messages that might help resolve an exception that is surfaced to a user .
43
39
163,307
public static final String formatMessage ( TraceComponent tc , List < Locale > locales , String msgKey , Object ... objs ) { // WsLogRecord.createWsLogRecord + BaseTraceService.formatMessage // The best odds for finding the resource bundle are with using the // classloader that loaded the associated class to begin with...
Translate a message in the context of the input trace component . This method is typically used to provide translated messages that might help resolve an exception that is surfaced to a user .
188
35
163,308
static void registerTraceComponent ( TraceComponent tc ) { tc . setTraceSpec ( activeTraceSpec ) ; TrService activeDelegate = TrConfigurator . getDelegate ( ) ; activeDelegate . register ( tc ) ; TrConfigurator . traceComponentRegistered ( tc ) ; // Add the new TraceComponent to the queue of new trace components newTra...
Support for com . ibm . ejs . ras . Tr register methods
147
16
163,309
public void updateXIDToCommitted ( PersistentTranId xid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "updateXIDToCommitted" , "XID=" + xid ) ; if ( _deferredException == null ) { // We are committing a transaction. The transaction can // be either one-phase or two-...
In the OM implementation this method is used to flag the batching context so that upon the next call to executeBatch the OM transaction being used is committed .
281
32
163,310
public < T > T unwrap ( Class < T > cls ) // d706751 { if ( cls . isInstance ( ivFactory ) ) { return cls . cast ( ivFactory ) ; } throw new PersistenceException ( cls . toString ( ) ) ; }
Return an object of the specified type to allow access to provider - specific API .
60
16
163,311
@ SuppressWarnings ( "unchecked" ) private T getService ( boolean throwException ) { T svc = null ; ReferenceTuple < T > current = null ; ReferenceTuple < T > newTuple = null ; do { // Get the current tuple current = tuple . get ( ) ; // We have both a context and a service reference.. svc = current . locatedService ; ...
Try to locate the service
426
5
163,312
private static < T > ThreadContext < T > getCurrentThreadContext ( ThreadContext < T > threadContext ) { return ( ( ThreadContextImpl < T > ) threadContext ) . get ( ) ; }
Obtains a context object optimized for accessing the current thread .
43
12
163,313
public BeanO getCallbackBeanO ( ) { BeanO result = ivCallbackBeanOStack . peek ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getCallbackBeanO: " + result ) ; return result ; }
Gets a reference to the bean that the container is currently processing via a business method or lifecycle callback .
69
22
163,314
public void pushCallbackBeanO ( BeanO bean ) // d662032 throws CSIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "pushCallbackBeanO: " + bean ) ; HandleListInterface hl = bean . reAssociateHandleList ( ) ; ivHandleListContext . beginContext ( hl ) ; ivCallbackBe...
Updates the bean that the container is currently processing via a business method or lifecycle callback and establishes a thread context specific to the bean .
101
28
163,315
public void pushClassLoader ( BeanMetaData bmd ) { ClassLoader classLoader = bmd . ivContextClassLoader ; // F85059 Object origCL = svThreadContextAccessor . pushContextClassLoaderForUnprivileged ( classLoader ) ; ivClassLoaderStack . push ( origCL ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnable...
Sets the thread context class loader for the specified bean metadata and saves the current thread context class loader .
151
21
163,316
public Map < String , Object > getContextData ( ) // d644886 { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; Map < String , Object > contextData ; if ( isLifecycleMethodActive ( ) ) // d704496 { if ( ivLifecycleContextData == null ) { ivLifecycleContextData = new HashMap < String , Object > ( ) ;...
Gets the context data associated with the current EJB method or EJB lifecycle callback .
303
19
163,317
protected static Object getImpl ( String className , Class [ ] types , Object [ ] args ) { // No tracing as this is used to load the trace factory. Object Impl ; // For return. try { Class classToInstantiate = Class . forName ( className ) ; java . lang . reflect . Constructor constructor = classToInstantiate . getDecl...
Create a platform specific instance of a utils class .
185
11
163,318
public void scheduleUpdate ( UniqueKeyGenerator generator ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "scheduleUpdate" , "GeneratorName=" + generator . getName ( ) ) ; synchronized ( _asyncQ ) { _asyncQ . add ( generator ) ; _asyncQ . notify ( ) ; } if ( TraceComp...
Request an asynchronous update of the persistent state
126
8
163,319
public boolean entryExists ( UniqueKeyGenerator generator ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "entryExists" , "GeneratorName=" + generator . getName ( ) ) ; boolean retval = false ; if ( _generators . containsKey ( generator . getName ( ) ) ) { retval = tr...
Test if the generator is known to the persistence layer
141
10
163,320
public long addEntry ( UniqueKeyGenerator generator ) throws PersistenceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addEntry" , "GeneratorName=" + generator . getName ( ) ) ; if ( ! _generators . containsKey ( generator . getName ( ) ) ) { Transaction tra...
Tell the persistence layer about a new generator
620
8
163,321
public long updateEntry ( UniqueKeyGenerator generator ) throws PersistenceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "updateEntry" , "GeneratorName=" + generator . getName ( ) ) ; long currentLimit = 0L ; // Do we know of this generator? if ( _generators...
Request an immediate update to the persistent state
735
8
163,322
public void run ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "run" ) ; UniqueKeyGenerator generator = null ; while ( _running ) { synchronized ( _asyncQ ) { // Do we have anything to do? while ( _asyncQ . isEmpty ( ) ) { // If not we need to wait until told // th...
This method is where the asynchronous reads and writes are done to the filesystem for persistent updates to the currently active range of keys .
344
25
163,323
private Object getInstance ( TransientWebServiceRefInfo tInfo , WebServiceRefInfo wsrInfo ) throws Exception { Object instance = null ; // First, obtain an instance of the JAX-WS Service class. Service svc = null ; List < WebServiceFeature > originalWsFeatureList = LibertyProviderImpl . getWebServiceFeatures ( ) ; WebS...
This method will create an instance of a JAX - WS service ref using the metadata supplied in the WebServiceRefInfo object .
592
26
163,324
@ Override public boolean checkCondition ( IValue test ) throws FilterException { Iterator iter = values . iterator ( ) ; while ( iter . hasNext ( ) ) { IValue value = ( IValue ) iter . next ( ) ; if ( value . containedBy ( test ) ) { return true ; } } return false ; }
Loop through all of the values and see if any of them pass the equality test
70
16
163,325
public void setRealm ( String inputRealm ) { if ( ( inputRealm != null ) && ( ! inputRealm . equals ( "" ) ) ) { this . realm = inputRealm ; setRealmDefined ( true ) ; } }
Set the realm .
54
4
163,326
@ Override public boolean isH2Request ( HttpInboundConnection hic , ServletRequest request ) throws ServletException { //first check if H2 is enabled for this channel/port if ( ! ( ( Http2InboundConnection ) hic ) . isHTTP2UpgradeRequest ( null , true ) ) { return false ; } Map < String , String > headers = new HashMap...
Determines if a given request is an http2 upgrade request
229
13
163,327
@ Override public void handleRequest ( HttpInboundConnection hic , HttpServletRequest request , HttpServletResponse response ) { Http2InboundConnection h2ic = ( Http2InboundConnection ) hic ; H2UpgradeHandlerWrapper h2uh = null ; try { h2uh = request . upgrade ( H2UpgradeHandlerWrapper . class ) ; } catch ( IOException...
Upgrades the given request for http2
462
8
163,328
public final WSConnectionEvent recycle ( int eid , Exception ex , Object handle ) { id = eid ; exception = ex ; setConnectionHandle ( handle ) ; return this ; }
Recycle this ConnectionEvent by replacing the current values with those for the new event .
38
17
163,329
public VirtualConnection encryptAndWriteAsync ( long numBytes , boolean forceQueue , int timeout ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "encryptAndWriteAsync: " + numBytes ) ; } this . asyncBytesToWrite = 0L ; this . asyncTimeout = timeout ; VirtualConnection ...
This method is called as a part of an asynchronous write but after a potential SSL handshake has taken place .
631
21
163,330
private SSLEngineResult doHandshake ( MyHandshakeCompletedCallback hsCallback ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "doHandshake" ) ; } SSLEngineResult sslResult ; SSLEngine sslEngine = getConnLink ( ) . getSSLEngine ( ) ; // Line up all th...
When a write is attempted a first check is done to see if the SSL engine needs to do a handshake . If so this method will be called . Note it is used by both the sync and async writes .
531
42
163,331
private SSLEngineResult encryptMessage ( ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "encryptMessage" ) ; } // Get the application buffer used as input to the encryption algorithm. // Extract the app buffers containing data to be written. final W...
Handle common activity of write and writeAsynch involving the encryption of the current buffers . The caller will have the responsibility of writing them to the device side channel .
619
33
163,332
protected void increaseEncryptedBuffer ( ) throws IOException { final int packetSize = getConnLink ( ) . getPacketBufferSize ( ) ; if ( null == this . encryptedAppBuffer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Allocating encryptedAppBuffer, size=" + packetSize...
Reuse the buffers used to send data out to the network . If existing buffer is available grow the array by one .
360
24
163,333
private void getEncryptedAppBuffer ( int requested_size ) throws IOException { final int size = Math . max ( getConnLink ( ) . getPacketBufferSize ( ) , requested_size ) ; synchronized ( closeSync ) { if ( closeCalled ) { IOException up = new IOException ( "Operation failed due to connection close detected" ) ; throw u...
Make sure that an output buffer is ready for encryption use . This will always allocate a minimum of the current SSLSession packet size .
234
27
163,334
public void close ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "close" ) ; } synchronized ( closeSync ) { if ( closeCalled ) { return ; } closeCalled = true ; // Release the buffer used to store results of encryption, and given to // device channel for writing. if...
Release the potential input buffer that was created during encryption .
207
11
163,335
public DERObject getPublicKey ( ) throws IOException { ByteArrayInputStream bIn = new ByteArrayInputStream ( keyData . getBytes ( ) ) ; ASN1InputStream aIn = new ASN1InputStream ( bIn ) ; return aIn . readObject ( ) ; }
for when the public key is an encoded object - if the bitstring can t be decoded this routine throws an IOException .
64
26
163,336
@ Override public void visitEnd ( ) { if ( ! fieldAlreadyExists ) { FieldVisitor fv = super . visitField ( Opcodes . ACC_PUBLIC + Opcodes . ACC_FINAL + Opcodes . ACC_STATIC , versionFieldName , Type . getDescriptor ( String . class ) , null , versionFieldValue ) ; fv . visitEnd ( ) ; } super . visitEnd ( ) ; }
End of class visitor that creates a version field definition if an existing definition wasn t observed .
94
18
163,337
@ Override public void setNonPersistentMapping ( String nonPersistentMapping ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setNonPersistentMapping" , nonPersistentMapping ) ; if ( nonPersistentMapping == null ) { throw ( JMSException ) Jm...
default non persistent mapping is EXPRESS_NONPERSISTENT null non persistent mapping is not valid .
506
22
163,338
@ Override public void setPersistentMapping ( String persistentMapping ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setPersistentMapping" , persistentMapping ) ; if ( persistentMapping == null ) { throw ( JMSException ) JmsErrorUtils . n...
default persistent mapping is RELIABLE_PERSISTENT null persistent mapping is not valid .
475
19
163,339
@ Override public void setConnectionProximity ( String newConnectionProximity ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setConnectionProximity" , newConnectionProximity ) ; // Check for null and empty string, and set to default value ...
Set the connection proximity 181802 . 2
408
9
163,340
@ Override public void setTargetTransportChain ( String newTargetTransportChain ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTargetTransportChain" , newTargetTransportChain ) ; jcaManagedConnectionFactory . setTargetTransportChain ( n...
Set the remote protocol 181802 . 2
130
9
163,341
@ Override public void setTarget ( String newTargetGroup ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTarget" , newTargetGroup ) ; jcaManagedConnectionFactory . setTarget ( newTargetGroup ) ; if ( TraceComponent . isAnyTracingEnabled ...
Set the target 181802 . 2
112
8
163,342
@ Override public void setTargetType ( String newTargetType ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTargetType" , newTargetType ) ; // Check for null and empty string, and set to default value if found if ( ( newTargetType == nul...
Set the target type 181802 . 2
335
9
163,343
@ Override public void setTemporaryQueueNamePrefix ( String prefix ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTemporaryQueueNamePrefix" , prefix ) ; if ( prefix != null && ! prefix . equals ( "" ) ) { jcaManagedConnectionFactory . s...
Set the temp queue name prefix 188482
163
8
163,344
@ Override public void setMulticastInterface ( String mi ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setMulticastInterface" , mi ) ; jcaManagedConnectionFactory . setMulticastInterface ( mi ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryE...
Set network interface to be used for multicast data .
114
11
163,345
@ Override public void setSubscriptionProtocol ( String p ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setSubscriptionProtocol" , p ) ; if ( ApiJmsConstants . SUBSCRIPTION_PROTOCOL_UNICAST . equals ( p ) || ApiJmsConstants . SUBSCRIPTION...
Set the subscription protocol to be used for the transmission of message data from the ME to the client .
270
20
163,346
@ Override public void setProducerDoesNotModifyPayloadAfterSet ( String propertyValue ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setProducerDoesNotModifyPayloadAfterSet" , propertyValue ) ; // First of all, convert null and empty to me...
Sets the property that indicates if the producer will modify the payload after setting it .
360
17
163,347
public DistributionPoint [ ] getDistributionPoints ( ) { DistributionPoint [ ] dp = new DistributionPoint [ seq . size ( ) ] ; for ( int i = 0 ; i != seq . size ( ) ; i ++ ) { dp [ i ] = DistributionPoint . getInstance ( seq . getObjectAt ( i ) ) ; } return dp ; }
Return the distribution points making up the sequence .
77
9
163,348
public static Throwable getNextThrowable ( Throwable t ) { Throwable nextThrowable = null ; if ( t != null ) { // try getCause first. nextThrowable = t . getCause ( ) ; if ( nextThrowable == null ) { // if getCause returns null, look for the JDBC and JCA specific chained exceptions // in case the resource adapter or da...
Finds the next Throwable object from the one provided .
159
12
163,349
public List < com . ibm . wsspi . security . wim . model . CheckPointType > getCheckPoint ( ) { if ( checkPoint == null ) { checkPoint = new ArrayList < com . ibm . wsspi . security . wim . model . CheckPointType > ( ) ; } return this . checkPoint ; }
Gets the value of the checkPoint property .
75
10
163,350
public boolean isKeyReady ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isKeyReady" ) ; boolean returnValue = false ; if ( keyGroup == null ) returnValue = ready ; else //check if the ordering context is ready returnValue = keyGroup . isKeyReady ( ) ; if ( TraceC...
Determine if this key is ready No need to synchronize as this should be called under the readyConsumerPointLock
133
24
163,351
public synchronized void markNotReady ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "markNotReady" ) ; // No-op if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "markNotReady" ) ; }
No - op for gathering
86
5
163,352
public void reattachConsumer ( SIBUuid8 uuid , ConsumableKey ck ) throws SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "reattachConsumer" , new Object [ ] { uuid , ck } ) ; long timeout = LocalConsumerPoint . NO_WAIT...
Also add the consumer key back into the list .
362
10
163,353
public Token like ( Token likeToken ) { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "like" , new Object [ ] { likeToken } ) ; // See if we already have a copy of the object in memory. If so we must reuse // it so that all references to the object via the object...
References a ManagedObject at the same location in the store . Used to make sure that the caller is refering to the same object as all other users of the ManagedObject .
343
37
163,354
public Token allocate ( ManagedObject objectToStore ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "allocate" , objectToStore ) ; // We cannot store null, it won't serialize and we have no way to manage the transaction state. if (...
Allocate a Token for the ManagedObject .
749
10
163,355
public int getIdentifier ( ) { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) { trace . entry ( this , cclass , "getIdentifier" ) ; trace . exit ( this , cclass , "getIdentifier" , "returns objectStoreIdentifier=" + objectStoreIdentifier + "(int)" ) ; } return objectStoreIdentifier ; }
The identifier of the ObjectStore unique within this ObjectManager .
88
12
163,356
public void setIdentifier ( int identifier ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "setIdentifier" , new Object [ ] { new Integer ( identifier ) } ) ; // We can only set this once. if ( objectStoreIdentifier != IDENTIFIER_N...
Set the identifier of the Object Store unique within this ObjectManager .
294
13
163,357
public final String getName ( ) { final String methodName = "getName" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) { trace . entry ( this , cclass , methodName ) ; trace . exit ( this , cclass , methodName , new Object [ ] { storeName } ) ; } return storeName ; }
The name of the ObjectStore .
81
7
163,358
private UserRegistry autoDetectUserRegistry ( boolean exceptionOnError ) throws RegistryException { // Determine if there is a federation registry configured. UserRegistry ur = getFederationRegistry ( exceptionOnError ) ; synchronized ( userRegistrySync ) { if ( ur != null ) { setRegistriesToBeFederated ( ( FederationR...
When a configuration element is not defined use some auto - detect logic to try and return the single UserRegistry . If there is no service or multiple services that is considered an error case which auto - detect can not resolve .
457
45
163,359
private UserRegistry getUserRegistryFromConfiguration ( ) throws RegistryException { String [ ] refIds = this . refId ; if ( refIds == null || refIds . length == 0 ) { // Can look for config.source = file // If thats set, and we're missing this, we can error. // If its not set, we don't have configuration from the // f...
When a configuration element is defined use it to resolve the effective UserRegistry configuration .
317
17
163,360
public long processSyncReadRequest ( long numBytes , int timeout ) throws IOException { long bytesRead = 0 ; boolean freeJIT = false ; IOException exThisTime = null ; immedTimeoutRequested = false ; setJITAllocateAction ( false ) ; this . jITAllocatedDirect = false ; // allocate buffers if asked to do so, and none exis...
that apply here
430
3
163,361
public void startElement ( String namespaceURI , String localName , String qName , Attributes attrs ) throws SAXException { if ( logger . isLoggable ( Level . FINER ) ) logger . exiting ( className , "startElement(String,String,String,org.xml.sax.Attributes)" ) ; Properties props = new Properties ( ) ; int attrLength =...
This function parses an IFix top level element and all its children .
251
15
163,362
public void endElement ( String uri , String localName , String qName ) throws SAXException { if ( logger . isLoggable ( Level . FINER ) ) logger . entering ( className , "endElement(String,String,String)" ) ; if ( ! previousObjects . isEmpty ( ) ) { this . current = ( JSONObject ) this . previousObjects . pop ( ) ; } ...
Function ends a tag in this iFix parser .
132
10
163,363
public void flushBuffer ( ) throws IOException { if ( logger . isLoggable ( Level . FINER ) ) logger . entering ( className , "flushBuffer()" ) ; if ( this . osWriter != null ) { this . osWriter . flush ( ) ; } if ( logger . isLoggable ( Level . FINER ) ) logger . exiting ( className , "flushBuffer()" ) ; }
Method to flush out anything remaining in the buffers .
89
10
163,364
private void startJSON ( ) throws SAXException { if ( logger . isLoggable ( Level . FINER ) ) logger . entering ( className , "startJSON()" ) ; this . head = new JSONObject ( "" , null ) ; this . current = head ; if ( logger . isLoggable ( Level . FINER ) ) logger . exiting ( className , "startJSON()" ) ; }
Internal method to start JSON generation .
89
7
163,365
private void endJSON ( ) throws SAXException { if ( logger . isLoggable ( Level . FINER ) ) logger . entering ( className , "endJSON()" ) ; try { this . head . writeObject ( this . osWriter , 0 , true , this . compact ) ; this . head = null ; this . current = null ; this . previousObjects . clear ( ) ; } catch ( Except...
Internal method to end the JSON generation and to write out the resultant JSON text and reset the internal state of the hander .
150
25
163,366
@ Override final public ManagedConnection matchManagedConnections ( final Set connectionSet , final Subject subject , final ConnectionRequestInfo requestInfo ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , "matchManagedConnections" , new Object [ ] { connectio...
Returns a matching connection from the candidate set of connections .
591
11
163,367
Map getTrmProperties ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "getTrmProperties" ) ; } final Map trmProperties = new HashMap ( ) ; final String trmBusName = getBusName ( ) ; if ( ( trmBusName != null ) && ( ! trmBusName . equals ( "" ) ) ) { tr...
Returns the map of properties required by TRM .
843
10
163,368
Reference getReference ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "getReference" ) ; } // Create a reference object describing this class final Reference reference = new Reference ( getConnectionType ( ) , getClass ( ) . getName ( ) , null ) ; //...
Returns a reference for this managed connection factory .
333
9
163,369
public void setReference ( final Reference reference ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "setReference" , reference ) ; } // Make sure no-one can pull the rug from beneath us. synchronized ( _properties ) { _properties = JmsJcaReferenceUtils...
Initializes this managed connection factory using the given reference .
147
11
163,370
@ Override public Object getObjectInstance ( final Object object , final Name name , final Context context , final Hashtable environment ) throws Exception { JmsConnectionFactory jmsConnectionFactory = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , ...
Constructs an object factory which constructs a managed connection factory calls the non - managed createConnectionFactory and then calls the setReference on the JMSConnFactory .
447
32
163,371
public void setWsTraceHandler ( String id , WsTraceHandler ref ) { if ( id != null && ref != null ) { RERWLOCK . writeLock ( ) . lock ( ) ; try { wsTraceHandlerServices . put ( id , ref ) ; /* * Route prev traces to the new LogHandler. * * This is primarily for solving the problem during server init where the WsTraceRo...
Add the wsTraceHandler ref . 1 or more LogHandlers may be set .
232
19
163,372
protected boolean routeToAll ( RoutedMessage routedTrace , Set < String > logHandlerIds ) { for ( String logHandlerId : logHandlerIds ) { routeTo ( routedTrace , logHandlerId ) ; } return true ; //for now return true. Later we might have a config/flag to check whether to log normally or not. }
Route the trace to all LogHandlers in the set .
76
12
163,373
protected void routeTo ( RoutedMessage routedTrace , String logHandlerId ) { WsTraceHandler wsTraceHandler = wsTraceHandlerServices . get ( logHandlerId ) ; if ( wsTraceHandler != null ) { wsTraceHandler . publish ( routedTrace ) ; } }
Route the traces to the LogHandler identified by the given logHandlerId .
69
15
163,374
public MatchSpace createMatchSpace ( Identifier rootId , boolean enableCacheing ) { MatchSpace matchSpace = new MatchSpaceImpl ( rootId , enableCacheing ) ; return matchSpace ; }
Create a concrete instance of a MatchSpace
41
8
163,375
public Operator createOperator ( int op , Selector operand ) { Operator operator = new OperatorImpl ( op , operand ) ; return operator ; }
Create a concrete instance of an Operator
32
7
163,376
public Operator createLikeOperator ( Selector ar , String pattern , boolean escaped , char escape ) { Object parsed = Pattern . parsePattern ( pattern , escaped , escape ) ; if ( parsed == null ) return null ; else if ( parsed == Pattern . matchMany ) return createOperator ( Selector . NOT , createOperator ( Selector ....
Create a concrete instance of a LikeOperator
136
9
163,377
public static String getURIForCurrentDispatch ( HttpServletRequest req ) { String includeURI = ( String ) req . getAttribute ( WebAppRequestDispatcher . REQUEST_URI_INCLUDE_ATTR ) ; if ( includeURI == null ) return req . getRequestURI ( ) ; else return includeURI ; }
Used to retrive the true uri that represents the current request . If include request_uri attribute is set it returns that value . Otherwise it returns the default of req . getRequestUri
72
39
163,378
private void publishEvent ( WSJobInstance objectToPublish , String eventToPublish ) { if ( getBatchEventsPublisher ( ) != null ) { getBatchEventsPublisher ( ) . publishJobInstanceEvent ( objectToPublish , eventToPublish , correlationId ) ; } }
Publish event for this job instance
62
7
163,379
private void publishEvent ( WSJobExecution execution , WSJobInstance jobInstance , BatchStatus batchStatus ) { if ( batchStatus == BatchStatus . FAILED ) { publishEvent ( execution , BatchEventsPublisher . TOPIC_EXECUTION_FAILED ) ; publishEvent ( jobInstance , BatchEventsPublisher . TOPIC_INSTANCE_FAILED ) ; } else if...
Helper method to publish execution data to appropriate topic per batchStatus
334
12
163,380
public static ThreadManager getInstance ( ) { if ( thisClass == null ) { thisClass = new ThreadManager ( ) ; String useInheritableThreadLocalString = SSLConfigManager . getInstance ( ) . getGlobalProperty ( Constants . SSLPROP_USE_INHERITABLE_THREAD_LOCAL ) ; if ( useInheritableThreadLocalString != null && ( useInherit...
Access the singleton instance of this class .
175
9
163,381
public ThreadContext getThreadContext ( ) { if ( useInheritableThreadLocal && ! SSLConfigManager . getInstance ( ) . isServerProcess ( ) ) { ThreadContext context = inheritableThreadLocStorage . get ( ) ; if ( context == null ) { context = new ThreadContext ( ) ; inheritableThreadLocStorage . set ( context ) ; } return...
Access the current thread context .
121
6
163,382
public void stop ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "stop" ) ; ivIsInitialized = false ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "stop" ) ; }
Set the initialized flag to false so that others may not NOT register in their start method .
83
18
163,383
@ Override public < A extends Annotation , AS extends Annotation > void registerInjectionProcessor ( Class < ? extends InjectionProcessor < A , AS > > processor , Class < A > annotation ) throws InjectionException { if ( OverrideInjectionProcessor . class . isAssignableFrom ( processor ) ) // RTC114863 { throw new Ille...
Registers the specified processor with the injection engine .
130
10
163,384
@ Override public void processInjectionMetaData ( HashMap < Class < ? > , InjectionTarget [ ] > injectionTargetMap , ComponentNameSpaceConfiguration compNSConfig ) throws InjectionException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc...
Populates the empty cookie map with cookies to be injections .
414
12
163,385
private void checkAnnotationClasses ( ClassLoader loader ) // d676633 { boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . entry ( tc , "checkAnnotationClasses: " + loader ) ; // All EJBs in an application share the same class loader. Only check // a given cl...
Check the specified class loader to check if it has overridden any annotation classes processed by the injection engine .
602
21
163,386
@ Override public void inject ( Object objectToInject , InjectionTarget injectionTarget ) throws InjectionException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "inject" , objectToInject , injectionTarget ) ; injectionTarget . injec...
This method handles the actual injection of injectedObject to the target beanObject using either the METHOD or FIELD specified in the injectionTarget .
118
28
163,387
@ Override public void registerInjectionMetaDataListener ( InjectionMetaDataListener metaDataListener ) { if ( metaDataListener == null ) { throw new IllegalArgumentException ( "A null InjectionMetaDataListener cannot be registered " + "with the injection engine." ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && ...
This method will register an instance of an InjectionMetaDataListener with the current engine instance .
124
19
163,388
@ Override public void unregisterInjectionMetaDataListener ( InjectionMetaDataListener metaDataListener ) { if ( metaDataListener == null ) { throw new IllegalArgumentException ( "A null InjectionMetaDataListener cannot be unregistered " + "from the injection engine." ) ; } if ( TraceComponent . isAnyTracingEnabled ( )...
This method will unregister an instance of an InjectionMetaDataListener with the current engine instance .
127
20
163,389
@ Override public < A extends Annotation > void registerOverrideReferenceFactory ( Class < A > annotation , OverrideReferenceFactory < A > factory ) throws InjectionException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "registerOverrideReferenceFactory" , annotation , ...
F1339 - 9050
627
6
163,390
@ Override @ SuppressWarnings ( "unchecked" ) public synchronized < A extends Annotation > OverrideReferenceFactory < A > [ ] getOverrideReferenceFactories ( Class < A > klass ) // F743-32443 { ivOverrideReferenceFactoryMapCopyOnWrite = true ; // PM79779 return ( OverrideReferenceFactory < A > [ ] ) ivOverrideReference...
Gets the list of override factories for the specified class .
93
12
163,391
@ Override public MBLinkReferenceFactory registerManagedBeanReferenceFactory ( MBLinkReferenceFactory mbLinkRefFactory ) { MBLinkReferenceFactory rtnFactory = DEFAULT_MBLinkRefFactory ; ivMBLinkRefFactory = mbLinkRefFactory ; // d703474 return rtnFactory ; }
d698540 . 1
71
6
163,392
public static boolean walkPath ( File appRoot , String relativePath ) throws IOException { // Walk the path from the app root String [ ] relativePathElements = relativePath . replace ( File . separatorChar , ' ' ) . split ( "/" ) ; File currentPath = new File ( appRoot . getCanonicalPath ( ) ) ; for ( int i = 0 ; i < r...
end 94578 Security Defect .
265
8
163,393
public static void staticHandleControlMessage ( ControlMessage cMsg , DestinationManager DM , MessageProcessor MP ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "staticHandleControlMessage" , new Object [ ] { cMsg , DM , MP } ) ; // This should be one of three reques...
This is the only message handling method which should be invoked on the DurableOutputHandler . This method will receive control messages giving the status of durable subcription creation or deletion as well as stream creation requests .
540
41
163,394
protected static void handleCreateDurable ( DestinationManager DM , ControlCreateDurable msg , MessageProcessor MP ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "handleCreateDurable" , new Object [ ] { DM , msg , MP } ) ; int status = STATUS_SUB_GENERAL_ERROR ; SIBU...
Attempt to create a new durable subscription and send back either a ControlDurableConfirm giving the result .
861
21
163,395
protected static void handleDeleteDurable ( DestinationManager DM , ControlDeleteDurable msg , MessageProcessor MP ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "handleDeleteDurable" , new Object [ ] { DM , msg , MP } ) ; int status = STATUS_SUB_GENERAL_ERROR ; try ...
Attempt to delete the durable subscription specified by the sender and send back a ControlDurableConfirm giving the result .
793
23
163,396
protected static ControlDurableConfirm createDurableConfirm ( MessageProcessor MP , SIBUuid8 target , long reqID , int status ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createDurableConfirm" , new Object [ ] { MP , target , new Long ( reqID ) , new Integer ( sta...
Create a DurableConfirm reply .
300
8
163,397
protected static ControlCardinalityInfo createCardinalityInfo ( MessageProcessor MP , SIBUuid8 target , long reqID , int card ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createCardinalityInfo" , new Object [ ] { MP , target , new Long ( reqID ) , new Integer ( ca...
Create a CardinalityInfo reply .
302
7
163,398
protected static void initializeControlMessage ( SIBUuid8 sourceME , ControlMessage msg , SIBUuid8 remoteMEId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initializeControlMessage" , new Object [ ] { msg , remoteMEId } ) ; SIMPUtils . setGuaranteedDeliveryProperti...
Common initialization for all messages sent by the DurableOutputHandler .
209
13
163,399
private void associateConnection ( ManagedConnectionFactory mcf , Subject subject , ConnectionRequestInfo cri , Object connection ) throws ResourceException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "associateConnection" )...
not associated with a connection to get reassociated with a valid connection .
416
14