idx
int64
0
41.2k
question
stringlengths
83
4.15k
target
stringlengths
5
715
40,000
protected void addSubscriptionToMessage ( MESubscription subscription , boolean isLocalBus ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addSubscriptionToMessage" , new Object [ ] { subscription , new Boolean ( isLocalBus ) } ) ; iTopics . add ( subscription . getTopic ( ) ) ; if ( isLocalBus ) { iTopicSpace...
Adds a subscription to the proxy message that is to be sent .
40,001
protected SubscriptionMessage getSubscriptionMessage ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getSubscriptionMessage" ) ; iSubscriptionMessage . setTopics ( iTopics ) ; iSubscriptionMessage . setMEName ( iMEName ) ; iSubscriptionMessage . setMEUUID ( iMEUUID . toByteArray ( ) ) ; iSubscriptionMessage ...
Method to return the Subscription Message to be sent to the Neighbouring ME s
40,002
private void auditEventSafAuthDetails ( Object [ ] methodParams ) { Object [ ] varargs = ( Object [ ] ) methodParams [ 1 ] ; int safReturnCode = ( Integer ) varargs [ 0 ] ; int racfReturnCode = ( Integer ) varargs [ 1 ] ; int racfReasonCode = ( Integer ) varargs [ 2 ] ; String userSecurityName = ( String ) varargs [ 3 ...
Handles audit event for SECURITY_SAF_AUTH_DETAILS
40,003
private String [ ] getValues ( Object propValue ) { String [ ] keys = null ; if ( propValue instanceof String ) { keys = new String [ ] { ( String ) propValue } ; } else if ( propValue instanceof String [ ] ) { keys = ( String [ ] ) propValue ; } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabl...
Gets a set of values for a given property
40,004
public HandlerInfo getHandler ( String requestURL ) { Iterator < HandlerPath > keys = handlerKeys . iterator ( ) ; if ( requestURL == null || keys == null ) { return null ; } Iterator < ServiceAndServiceReferencePair < RESTHandler > > itr = handlerMap . getServicesWithReferences ( requestURL ) ; if ( itr != null && itr...
Try to find the appropriate RESTHandler and HandlerPath pair for the given URL . Return null if no match found . May return null for the HandlerPath field if the RESTHandler matched an URL that did not contain variables .
40,005
public Iterator < String > registeredKeys ( ) { Iterator < HandlerPath > paths = handlerKeys . iterator ( ) ; List < String > registeredKeys = new ArrayList < String > ( handlerKeys . size ( ) ) ; while ( paths . hasNext ( ) ) { HandlerPath path = paths . next ( ) ; if ( ! path . isHidden ( ) ) { registeredKeys . add (...
Return our registered keys .
40,006
synchronized public Element get ( long index ) { int bind = ( ( int ) index & Integer . MAX_VALUE ) % buckets . length ; Element [ ] bucket = buckets [ bind ] ; if ( bucket == null ) return null ; for ( int i = 0 ; i < counts [ bind ] ; i ++ ) if ( bucket [ i ] . getIndex ( ) == index ) return bucket [ i ] ; return nul...
Get an element from the array
40,007
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
40,008
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
40,009
@ 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 ) { } return value ; }
get a property and if not set use the supplied default
40,010
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 .
40,011
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 .
40,012
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 .
40,013
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 .
40,014
public static final String formatMessage ( TraceComponent tc , List < Locale > locales , String msgKey , Object ... objs ) { ResourceBundle rb ; String msg ; try { rb = TraceNLSResolver . getInstance ( ) . getResourceBundle ( tc . getTraceClass ( ) , tc . getResourceBundleName ( ) , locales ) ; msg = rb . getString ( m...
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 .
40,015
static void registerTraceComponent ( TraceComponent tc ) { tc . setTraceSpec ( activeTraceSpec ) ; TrService activeDelegate = TrConfigurator . getDelegate ( ) ; activeDelegate . register ( tc ) ; TrConfigurator . traceComponentRegistered ( tc ) ; newTracecomponents . add ( tc ) ; processNewTraceComponents ( ) ; }
Support for com . ibm . ejs . ras . Tr register methods
40,016
public void updateXIDToCommitted ( PersistentTranId xid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "updateXIDToCommitted" , "XID=" + xid ) ; if ( _deferredException == null ) { if ( _state == STATE_ACTIVE || _state == STATE_PREPARED ) { _state = STATE_COMMITTING ...
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 .
40,017
public < T > T unwrap ( Class < T > cls ) { 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 .
40,018
@ SuppressWarnings ( "unchecked" ) private T getService ( boolean throwException ) { T svc = null ; ReferenceTuple < T > current = null ; ReferenceTuple < T > newTuple = null ; do { current = tuple . get ( ) ; svc = current . locatedService ; if ( svc != null ) { break ; } if ( current . context == null || current . se...
Try to locate the service
40,019
private static < T > ThreadContext < T > getCurrentThreadContext ( ThreadContext < T > threadContext ) { return ( ( ThreadContextImpl < T > ) threadContext ) . get ( ) ; }
Obtains a context object optimized for accessing the current thread .
40,020
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 .
40,021
public void pushCallbackBeanO ( BeanO bean ) throws CSIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "pushCallbackBeanO: " + bean ) ; HandleListInterface hl = bean . reAssociateHandleList ( ) ; ivHandleListContext . beginContext ( hl ) ; ivCallbackBeanOStack . ...
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 .
40,022
public void pushClassLoader ( BeanMetaData bmd ) { ClassLoader classLoader = bmd . ivContextClassLoader ; Object origCL = svThreadContextAccessor . pushContextClassLoaderForUnprivileged ( classLoader ) ; ivClassLoaderStack . push ( origCL ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr...
Sets the thread context class loader for the specified bean metadata and saves the current thread context class loader .
40,023
public Map < String , Object > getContextData ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; Map < String , Object > contextData ; if ( isLifecycleMethodActive ( ) ) { if ( ivLifecycleContextData == null ) { ivLifecycleContextData = new HashMap < String , Object > ( ) ; if ( isTraceOn && tc ...
Gets the context data associated with the current EJB method or EJB lifecycle callback .
40,024
protected static Object getImpl ( String className , Class [ ] types , Object [ ] args ) { Object Impl ; try { Class classToInstantiate = Class . forName ( className ) ; java . lang . reflect . Constructor constructor = classToInstantiate . getDeclaredConstructor ( types ) ; constructor . setAccessible ( true ) ; Impl ...
Create a platform specific instance of a utils class .
40,025
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
40,026
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
40,027
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
40,028
public long updateEntry ( UniqueKeyGenerator generator ) throws PersistenceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "updateEntry" , "GeneratorName=" + generator . getName ( ) ) ; long currentLimit = 0L ; if ( _generators . containsKey ( generator . getN...
Request an immediate update to the persistent state
40,029
public void run ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "run" ) ; UniqueKeyGenerator generator = null ; while ( _running ) { synchronized ( _asyncQ ) { while ( _asyncQ . isEmpty ( ) ) { try { _asyncQ . wait ( ) ; } catch ( InterruptedException ie ) { } if ( ...
This method is where the asynchronous reads and writes are done to the filesystem for persistent updates to the currently active range of keys .
40,030
private Object getInstance ( TransientWebServiceRefInfo tInfo , WebServiceRefInfo wsrInfo ) throws Exception { Object instance = null ; Service svc = null ; List < WebServiceFeature > originalWsFeatureList = LibertyProviderImpl . getWebServiceFeatures ( ) ; WebServiceRefInfo originalWebServiceRefInfo = LibertyProviderI...
This method will create an instance of a JAX - WS service ref using the metadata supplied in the WebServiceRefInfo object .
40,031
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
40,032
public void setRealm ( String inputRealm ) { if ( ( inputRealm != null ) && ( ! inputRealm . equals ( "" ) ) ) { this . realm = inputRealm ; setRealmDefined ( true ) ; } }
Set the realm .
40,033
public boolean isH2Request ( HttpInboundConnection hic , ServletRequest request ) throws ServletException { if ( ! ( ( Http2InboundConnection ) hic ) . isHTTP2UpgradeRequest ( null , true ) ) { return false ; } Map < String , String > headers = new HashMap < String , String > ( ) ; HttpServletRequest hsrt = ( HttpServl...
Determines if a given request is an http2 upgrade request
40,034
public void handleRequest ( HttpInboundConnection hic , HttpServletRequest request , HttpServletResponse response ) { Http2InboundConnection h2ic = ( Http2InboundConnection ) hic ; H2UpgradeHandlerWrapper h2uh = null ; try { h2uh = request . upgrade ( H2UpgradeHandlerWrapper . class ) ; } catch ( IOException e ) { if (...
Upgrades the given request for http2
40,035
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 .
40,036
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 .
40,037
private SSLEngineResult doHandshake ( MyHandshakeCompletedCallback hsCallback ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "doHandshake" ) ; } SSLEngineResult sslResult ; SSLEngine sslEngine = getConnLink ( ) . getSSLEngine ( ) ; WsByteBuffer netB...
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 .
40,038
private SSLEngineResult encryptMessage ( ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "encryptMessage" ) ; } final WsByteBuffer [ ] appBuffers = getBuffers ( ) ; SSLEngineResult result ; while ( true ) { int [ ] appLimitInfo = SSLUtils . adjustBuf...
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 .
40,039
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 .
40,040
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 .
40,041
public void close ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "close" ) ; } synchronized ( closeSync ) { if ( closeCalled ) { return ; } closeCalled = true ; if ( null != this . encryptedAppBuffer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventE...
Release the potential input buffer that was created during encryption .
40,042
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 .
40,043
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 .
40,044
public void setNonPersistentMapping ( String nonPersistentMapping ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setNonPersistentMapping" , nonPersistentMapping ) ; if ( nonPersistentMapping == null ) { throw ( JMSException ) JmsErrorUtils...
default non persistent mapping is EXPRESS_NONPERSISTENT null non persistent mapping is not valid .
40,045
public void setPersistentMapping ( String persistentMapping ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setPersistentMapping" , persistentMapping ) ; if ( persistentMapping == null ) { throw ( JMSException ) JmsErrorUtils . newThrowable...
default persistent mapping is RELIABLE_PERSISTENT null persistent mapping is not valid .
40,046
public void setConnectionProximity ( String newConnectionProximity ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setConnectionProximity" , newConnectionProximity ) ; if ( ( newConnectionProximity == null ) || ( "" . equals ( newConnection...
Set the connection proximity 181802 . 2
40,047
public void setTargetTransportChain ( String newTargetTransportChain ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTargetTransportChain" , newTargetTransportChain ) ; jcaManagedConnectionFactory . setTargetTransportChain ( newTargetTra...
Set the remote protocol 181802 . 2
40,048
public void setTarget ( String newTargetGroup ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTarget" , newTargetGroup ) ; jcaManagedConnectionFactory . setTarget ( newTargetGroup ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc ....
Set the target 181802 . 2
40,049
public void setTargetType ( String newTargetType ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTargetType" , newTargetType ) ; if ( ( newTargetType == null ) || ( "" . equals ( newTargetType ) ) ) { jcaManagedConnectionFactory . setTar...
Set the target type 181802 . 2
40,050
public void setTemporaryQueueNamePrefix ( String prefix ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTemporaryQueueNamePrefix" , prefix ) ; if ( prefix != null && ! prefix . equals ( "" ) ) { jcaManagedConnectionFactory . setTemporary...
Set the temp queue name prefix 188482
40,051
public void setMulticastInterface ( String mi ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setMulticastInterface" , mi ) ; jcaManagedConnectionFactory . setMulticastInterface ( mi ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ...
Set network interface to be used for multicast data .
40,052
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_PROTOCOL_M...
Set the subscription protocol to be used for the transmission of message data from the ME to the client .
40,053
public void setProducerDoesNotModifyPayloadAfterSet ( String propertyValue ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setProducerDoesNotModifyPayloadAfterSet" , propertyValue ) ; if ( ( propertyValue == null ) || ( "" . equals ( proper...
Sets the property that indicates if the producer will modify the payload after setting it .
40,054
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 .
40,055
public static Throwable getNextThrowable ( Throwable t ) { Throwable nextThrowable = null ; if ( t != null ) { nextThrowable = t . getCause ( ) ; if ( nextThrowable == null ) { if ( t instanceof SQLException ) { nextThrowable = ( ( SQLException ) t ) . getNextException ( ) ; } else if ( t instanceof ResourceException )...
Finds the next Throwable object from the one provided .
40,056
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 .
40,057
public boolean isKeyReady ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isKeyReady" ) ; boolean returnValue = false ; if ( keyGroup == null ) returnValue = ready ; else returnValue = keyGroup . isKeyReady ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc ...
Determine if this key is ready No need to synchronize as this should be called under the readyConsumerPointLock
40,058
public synchronized void markNotReady ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "markNotReady" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "markNotReady" ) ; }
No - op for gathering
40,059
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 .
40,060
public Token like ( Token likeToken ) { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "like" , new Object [ ] { likeToken } ) ; Token inMemoryToken = ( Token ) inMemoryTokens . putIfAbsent ( new Long ( likeToken . storedObjectIdentifier ) , likeToken ) ; if ( inM...
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 .
40,061
public Token allocate ( ManagedObject objectToStore ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "allocate" , objectToStore ) ; if ( objectToStore == null ) { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ...
Allocate a Token for the ManagedObject .
40,062
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 .
40,063
public void setIdentifier ( int identifier ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "setIdentifier" , new Object [ ] { new Integer ( identifier ) } ) ; if ( objectStoreIdentifier != IDENTIFIER_NOT_SET ) { InvalidConditionExc...
Set the identifier of the Object Store unique within this ObjectManager .
40,064
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 .
40,065
private UserRegistry autoDetectUserRegistry ( boolean exceptionOnError ) throws RegistryException { UserRegistry ur = getFederationRegistry ( exceptionOnError ) ; synchronized ( userRegistrySync ) { if ( ur != null ) { setRegistriesToBeFederated ( ( FederationRegistry ) ur , exceptionOnError ) ; isFederationActive = tr...
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 .
40,066
private UserRegistry getUserRegistryFromConfiguration ( ) throws RegistryException { String [ ] refIds = this . refId ; if ( refIds == null || refIds . length == 0 ) { Tr . error ( tc , "USER_REGISTRY_SERVICE_CONFIG_ERROR_NO_REFID" ) ; throw new RegistryException ( TraceNLS . getFormattedMessage ( this . getClass ( ) ,...
When a configuration element is defined use it to resolve the effective UserRegistry configuration .
40,067
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 ; if ( getJITAllocateSize ( ) > 0 && getBuffers ( ) ==...
that apply here
40,068
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 .
40,069
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 .
40,070
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 .
40,071
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 .
40,072
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 .
40,073
final public ManagedConnection matchManagedConnections ( final Set connectionSet , final Subject subject , final ConnectionRequestInfo requestInfo ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , "matchManagedConnections" , new Object [ ] { connectionSet , JmsJ...
Returns a matching connection from the candidate set of connections .
40,074
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 .
40,075
Reference getReference ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "getReference" ) ; } final Reference reference = new Reference ( getConnectionType ( ) , getClass ( ) . getName ( ) , null ) ; synchronized ( _properties ) { final Map encodedMap =...
Returns a reference for this managed connection factory .
40,076
public void setReference ( final Reference reference ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "setReference" , reference ) ; } synchronized ( _properties ) { _properties = JmsJcaReferenceUtils . getInstance ( ) . getMapFromReference ( reference ,...
Initializes this managed connection factory using the given reference .
40,077
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 , "getObjectI...
Constructs an object factory which constructs a managed connection factory calls the non - managed createConnectionFactory and then calls the setReference on the JMSConnFactory .
40,078
public void setWsTraceHandler ( String id , WsTraceHandler ref ) { if ( id != null && ref != null ) { RERWLOCK . writeLock ( ) . lock ( ) ; try { wsTraceHandlerServices . put ( id , ref ) ; if ( earlierTraces == null ) { return ; } for ( RoutedMessage earlierTrace : earlierTraces . toArray ( new RoutedMessage [ earlier...
Add the wsTraceHandler ref . 1 or more LogHandlers may be set .
40,079
protected boolean routeToAll ( RoutedMessage routedTrace , Set < String > logHandlerIds ) { for ( String logHandlerId : logHandlerIds ) { routeTo ( routedTrace , logHandlerId ) ; } return true ; }
Route the trace to all LogHandlers in the set .
40,080
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 .
40,081
public MatchSpace createMatchSpace ( Identifier rootId , boolean enableCacheing ) { MatchSpace matchSpace = new MatchSpaceImpl ( rootId , enableCacheing ) ; return matchSpace ; }
Create a concrete instance of a MatchSpace
40,082
public Operator createOperator ( int op , Selector operand ) { Operator operator = new OperatorImpl ( op , operand ) ; return operator ; }
Create a concrete instance of an Operator
40,083
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
40,084
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
40,085
private void publishEvent ( WSJobInstance objectToPublish , String eventToPublish ) { if ( getBatchEventsPublisher ( ) != null ) { getBatchEventsPublisher ( ) . publishJobInstanceEvent ( objectToPublish , eventToPublish , correlationId ) ; } }
Publish event for this job instance
40,086
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
40,087
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 .
40,088
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 .
40,089
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 .
40,090
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 ) ) { throw new IllegalArgumentException ( "...
Registers the specified processor with the injection engine .
40,091
public void processInjectionMetaData ( HashMap < Class < ? > , InjectionTarget [ ] > injectionTargetMap , ComponentNameSpaceConfiguration compNSConfig ) throws InjectionException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "process...
Populates the empty cookie map with cookies to be injections .
40,092
protected void processInjectionMetaData ( ComponentNameSpaceConfiguration compNSConfig , List < Class < ? > > annotatedClasses ) throws InjectionException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processInjectionMetaData: " + c...
Processes injection metadata using the specified configuration with InjectionProcessorContext already set .
40,093
private void checkAnnotationClasses ( ClassLoader loader ) { boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . entry ( tc , "checkAnnotationClasses: " + loader ) ; if ( ivCheckedAnnotationClassLoaders . add ( loader ) ) { for ( Class < ? > processorClass : i...
Check the specified class loader to check if it has overridden any annotation classes processed by the injection engine .
40,094
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 . inject ( objectT...
This method handles the actual injection of injectedObject to the target beanObject using either the METHOD or FIELD specified in the injectionTarget .
40,095
public void registerInjectionMetaDataListener ( InjectionMetaDataListener metaDataListener ) { if ( metaDataListener == null ) { throw new IllegalArgumentException ( "A null InjectionMetaDataListener cannot be registered " + "with the injection engine." ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntr...
This method will register an instance of an InjectionMetaDataListener with the current engine instance .
40,096
public void unregisterInjectionMetaDataListener ( InjectionMetaDataListener metaDataListener ) { if ( metaDataListener == null ) { throw new IllegalArgumentException ( "A null InjectionMetaDataListener cannot be unregistered " + "from the injection engine." ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . is...
This method will unregister an instance of an InjectionMetaDataListener with the current engine instance .
40,097
public < A extends Annotation > void registerOverrideReferenceFactory ( Class < A > annotation , OverrideReferenceFactory < A > factory ) throws InjectionException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "registerOverrideReferenceFactory" , annotation , factory ) ;...
F1339 - 9050
40,098
@ SuppressWarnings ( "unchecked" ) public synchronized < A extends Annotation > OverrideReferenceFactory < A > [ ] getOverrideReferenceFactories ( Class < A > klass ) { ivOverrideReferenceFactoryMapCopyOnWrite = true ; return ( OverrideReferenceFactory < A > [ ] ) ivOverrideReferenceFactoryMap . get ( klass ) ; }
Gets the list of override factories for the specified class .
40,099
public MBLinkReferenceFactory registerManagedBeanReferenceFactory ( MBLinkReferenceFactory mbLinkRefFactory ) { MBLinkReferenceFactory rtnFactory = DEFAULT_MBLinkRefFactory ; ivMBLinkRefFactory = mbLinkRefFactory ; return rtnFactory ; }
d698540 . 1