idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
162,500
public static Class getHttpsProviderClass ( ) throws ClassNotFoundException { if ( _httpsProviderClass == null ) { // [ 1520925 ] SSL patch Provider [ ] sslProviders = Security . getProviders ( "SSLContext.SSLv3" ) ; // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // IBM-FIX: Prevent NPE when SSLv3 is disabled. //...
get the Https Provider Class if it s been set already return it - otherwise check with the Security package and take the first available provider if all fails take the default provider class
426
36
162,501
private static void registerSSLProtocolHandler ( ) { String list = System . getProperty ( PROTOCOL_HANDLER_PKGS ) ; if ( list == null || list . length ( ) == 0 ) { System . setProperty ( PROTOCOL_HANDLER_PKGS , SSL_PROTOCOL_HANDLER ) ; } else if ( list . indexOf ( SSL_PROTOCOL_HANDLER ) < 0 ) { // [ 1516007 ] Default S...
register the Secure Socket Layer Protocol Handler
146
7
162,502
protected static int obtainIntConfigParameter ( MessageStoreImpl msi , String parameterName , String defaultValue , int minValue , int maxValue ) { int value = Integer . parseInt ( defaultValue ) ; if ( msi != null ) { String strValue = msi . getProperty ( parameterName , defaultValue ) ; if ( TraceComponent . isAnyTra...
Obtains the value of an integer configuration parameter given its name the default value and reasonable minimum and maximum values .
240
22
162,503
protected static long obtainLongConfigParameter ( MessageStoreImpl msi , String parameterName , String defaultValue , long minValue , long maxValue ) { long value = Long . parseLong ( defaultValue ) ; if ( msi != null ) { String strValue = msi . getProperty ( parameterName , defaultValue ) ; if ( TraceComponent . isAny...
Obtains the value of a long integer configuration parameter given its name the default value and reasonable minimum and maximum values .
240
23
162,504
public int originalFrame ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) JmfTr . entry ( this , tc , "originalFrame" ) ; int result ; synchronized ( getMessageLockArtefact ( ) ) { if ( ( contents == null ) || reallocated ) { result = - 1 ; } else { result = length ; } } if ( TraceCompon...
only called by Unit Tests so it is academic .
137
10
162,505
public boolean isPresent ( int accessor ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) JmfTr . entry ( this , tc , "isPresent" , new Object [ ] { Integer . valueOf ( accessor ) } ) ; boolean result ; if ( accessor < cacheSize ) { result = super . isPresent ( accessor ) ; } else if ( acce...
The BoxManager stuff is a black art so we ll lock round it to be safe .
317
18
162,506
public boolean setPosition ( long position ) { try { long fileSize = reader . length ( ) ; if ( fileSize > position ) { reader . seek ( position ) ; return true ; } logger . logp ( Level . SEVERE , className , "setPosition" , "HPEL_OffsetBeyondFileSize" , new Object [ ] { file , Long . valueOf ( position ) , Long . val...
Positions file stream to the location of a previously read record .
168
13
162,507
public long getPosition ( ) { try { return reader . getFilePointer ( ) ; } catch ( IOException ex ) { logger . logp ( Level . SEVERE , className , "getPosition" , "HPEL_ErrorReadingFileOffset" , new Object [ ] { file , ex . getMessage ( ) } ) ; } return - 1L ; }
Retrieves position in the reader s input stream .
79
11
162,508
public RepositoryLogRecord findNext ( long refSequenceNumber ) { if ( nextRecord == null ) { nextRecord = getNext ( refSequenceNumber ) ; } if ( nextRecord == null || refSequenceNumber >= 0 && refSequenceNumber < nextRecord . getInternalSeqNumber ( ) ) { return null ; } else { RepositoryLogRecord result = nextRecord ; ...
returns next record from the stream matching required condition .
92
11
162,509
public long seekToNextRecord ( LogRecordSerializer formatter ) throws IOException { long fileSize = reader . length ( ) ; long position = reader . getFilePointer ( ) ; int location ; int len = 0 ; int offset = 0 ; byte [ ] buffer = new byte [ 2048 ] ; do { if ( offset > 0 ) { position += len - offset ; // keep the last...
Repositions reader to the location of the next record . This is done by searching next eyeCatcher and then seek 4 bytes before its start .
282
30
162,510
public long seekToPrevRecord ( LogRecordSerializer formatter ) throws IOException { long position = reader . getFilePointer ( ) ; byte [ ] buffer = new byte [ 2048 ] ; int location ; int offset = 0 ; int len = 0 ; do { if ( position <= formatter . getEyeCatcherSize ( ) + 3 ) { throw new IOException ( "No eyeCatcher fou...
Repositions reader to the location of the previous record . This is done by searching prev eyeCatcher and then seek 4 bytes before its start .
266
30
162,511
protected LogFileReader createNewReader ( LogFileReader other ) throws IOException { if ( other instanceof LogFileReaderImpl ) { return new LogFileReaderImpl ( ( LogFileReaderImpl ) other ) ; } throw new IOException ( "Instance of the " + other . getClass ( ) . getName ( ) + " is not clonable by " + OneLogFileRecordIte...
Creates the new instance of a reader to read input data with based on an existing one .
95
19
162,512
public final void persistLock ( final Transaction transaction ) throws ProtocolException , TransactionException , SevereMessageStoreException { Membership membership = _getMembership ( ) ; if ( null == membership ) { throw new NotInMessageStore ( ) ; } membership . persistLock ( transaction ) ; }
Use this method to persist the lock currently active on the item . Item MUST be locked .
59
18
162,513
public void persistRedeliveredCount ( int redeliveredCount ) throws SevereMessageStoreException { Membership thisItemLink = _getMembership ( ) ; if ( null == thisItemLink ) { throw new NotInMessageStore ( ) ; } thisItemLink . persistRedeliveredCount ( redeliveredCount ) ; }
Use this method to persist the redelivered count for the item .
69
14
162,514
public final void requestUpdate ( Transaction transaction ) throws MessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "requestUpdate" , transaction ) ; Membership membership = _getMembership ( ) ; if ( null == membership ) { throw new NotInMess...
Request an update
129
3
162,515
private LaunchArguments createLaunchArguments ( String [ ] args , Map < String , String > initProps ) { List < String > cmdArgs = processBatchFileArgs ( new ArrayList < String > ( Arrays . asList ( args ) ) ) ; return new LaunchArguments ( cmdArgs , initProps , isClient ( ) ) ; }
Return an instance of LaunchArguments .
76
8
162,516
protected ReturnCode handleActions ( BootstrapConfig bootProps , LaunchArguments launchArgs ) { ReturnCode rc = launchArgs . getRc ( ) ; switch ( rc ) { case OK : rc = new KernelBootstrap ( bootProps ) . go ( ) ; break ; case CREATE_ACTION : // Use initialized bootstrap configuration to create the server lock. // This ...
Handle the process action .
702
5
162,517
protected void findLocations ( BootstrapConfig bootProps , String processName ) { // Check for environment variables... String userDirStr = getEnv ( BootstrapConstants . ENV_WLP_USER_DIR ) ; String serversDirStr = getEnv ( bootProps . getOutputDirectoryEnvName ( ) ) ; // Check for the variable calculated by the shell s...
Find main locations
282
3
162,518
public ProtocolVersion getVersion ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getVersion" ) ; // The ProtocolVersion to be returned ProtocolVersion version = ProtocolVersion . UNKNOWN ; // Get the MetaData out of the connection ConnectionMetaData connMetaData =...
Retrieve the ProtocolVersion associated with this connection .
161
10
162,519
@ Override protected Object performInvocation ( Exchange exchange , final Object serviceObject , Method m , Object [ ] paramArray ) throws Exception { // This retrieves the appropriate method from the wrapper class m = serviceObject . getClass ( ) . getMethod ( m . getName ( ) , m . getParameterTypes ( ) ) ; return sup...
This invokes the target operation . We override this method to deal with the fact that the serviceObject is actually an EJB wrapper class . We need to get an equivalent method on the serviceObject class in order to invoke the target operation .
88
48
162,520
private String getUserAccessId ( String userName ) { try { SecurityService securityService = securityServiceRef . getService ( ) ; UserRegistryService userRegistryService = securityService . getUserRegistryService ( ) ; UserRegistry userRegistry = userRegistryService . getUserRegistry ( ) ; String realm = userRegistry ...
Get the access id for a user by performing a looking up in the user registry .
245
17
162,521
private String getGroupAccessId ( String groupName ) { try { SecurityService securityService = securityServiceRef . getService ( ) ; UserRegistryService userRegistryService = securityService . getUserRegistryService ( ) ; UserRegistry userRegistry = userRegistryService . getUserRegistry ( ) ; String realm = userRegistr...
Get the access id for a group by performing a looking up in the user registry .
247
17
162,522
private Object getSavedState ( FacesContext facesContext ) { Object encodedState = facesContext . getExternalContext ( ) . getRequestParameterMap ( ) . get ( STANDARD_STATE_SAVING_PARAM ) ; if ( encodedState == null || ( ( ( String ) encodedState ) . length ( ) == 0 ) ) { return null ; } Object savedStateObject = _stat...
Reconstructs the state from the javax . faces . ViewState request parameter .
105
19
162,523
@ Override public boolean isPostback ( FacesContext context ) { return context . getExternalContext ( ) . getRequestParameterMap ( ) . containsKey ( ResponseStateManager . VIEW_STATE_PARAM ) ; }
Checks if the current request is a postback
46
10
162,524
public void initialise ( Identifier rootId , boolean enableCache ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "initialise" , new Object [ ] { rootId , new Boolean ( enableCache ) } ) ; switch ( rootId . getType ( ) ) { case Selector . UNKNOWN : case Selector . OBJ...
Initialise a newly created MatchSpace
277
7
162,525
public synchronized void addTarget ( Conjunction conjunction , MatchTarget object ) throws MatchingException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "addTarget" , new Object [ ] { conjunction , object } ) ; // Deal with Conjunctions that test equality on...
Adds a Conjunction to the space and associates a MatchTarget with it .
724
15
162,526
private CacheEntry getCacheEntry ( Object value , boolean create ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "getCacheEntry" , new Object [ ] { value , new Boolean ( create ) , matchCache } ) ; CacheEntry e = ( CacheEntry ) matchCache . get ( value ) ; if ...
Gets the appropriate CacheEntry for a value of the root Identifier
192
14
162,527
public boolean shouldRetain ( Object key , Object val ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "shouldRetain" , new Object [ ] { key , val } ) ; CacheEntry e = ( CacheEntry ) val ; if ( e . exactMatcher != null ) { if ( TraceComponent . isAnyTracingEnab...
entries that don t have an exactMatcher .
176
11
162,528
public void statistics ( PrintWriter wtr ) { int truePessimisticGets = pessimisticGets - puntsDueToCache ; wtr . println ( "Exact puts: " + exactPuts + ", Wildcard generation: " + matchTreeGeneration + ", Wildcard puts: " + wildPuts + ", Wildcard-Cache-hit gets: " + wildCacheHitGets + ", Wildcard-Cache-miss gets: " + w...
Only used when doing isolated performance testing of the MatchSpace .
207
12
162,529
public synchronized void clear ( Identifier rootId , boolean enableCache ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "clear" ) ; matchTree = null ; matchTreeGeneration = 0 ; subExpr . clear ( ) ; // Now reinitialise the matchspace initialise ( rootId , ena...
Removes all objects from the MatchSpace resetting it to the as new condition .
124
17
162,530
public SICoreConnection getConnection ( ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getConnection" ) ; checkAlreadyClosed ( )...
Returns the SICoreConnection which created this Session .
148
11
162,531
protected void checkAlreadyClosed ( ) throws SISessionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "checkAlreadyClosed" ) ; if ( isClosed ( ) ) throw new SISessionUnavailableException ( nls . getFormattedMessage ( "SESSION_CLOSED_SICO1013"...
Helper method to check if this session is closed and throws the appropriate exception if it is .
139
18
162,532
public SIDestinationAddress getDestinationAddress ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getDestinationAddress" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getDestinationAddress" , desti...
This method will return the destination address of the destination that this session is currently attached to .
99
18
162,533
public TrmClientBootstrapRequest createNewTrmClientBootstrapRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmClientBootstrapRequest" ) ; TrmClientBootstrapRequest msg = null ; try { msg = new TrmClientBootstrap...
Create a new empty TrmClientBootstrapRequest message
183
11
162,534
public TrmClientBootstrapReply createNewTrmClientBootstrapReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmClientBootstrapReply" ) ; TrmClientBootstrapReply msg = null ; try { msg = new TrmClientBootstrapReplyImp...
Create a new empty TrmClientBootstrapReply message
183
11
162,535
public TrmClientAttachRequest createNewTrmClientAttachRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmClientAttachRequest" ) ; TrmClientAttachRequest msg = null ; try { msg = new TrmClientAttachRequestImpl ( )...
Create a new empty TrmClientAttachRequest message
177
10
162,536
public TrmClientAttachRequest2 createNewTrmClientAttachRequest2 ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmClientAttachRequest2" ) ; TrmClientAttachRequest2 msg = null ; try { msg = new TrmClientAttachRequest2Imp...
Create a new empty TrmClientAttachRequest2 message
183
11
162,537
public TrmClientAttachReply createNewTrmClientAttachReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmClientAttachReply" ) ; TrmClientAttachReply msg = null ; try { msg = new TrmClientAttachReplyImpl ( ) ; } catch...
Create a new empty TrmClientAttachReply message
177
10
162,538
public TrmMeConnectRequest createNewTrmMeConnectRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeConnectRequest" ) ; TrmMeConnectRequest msg = null ; try { msg = new TrmMeConnectRequestImpl ( ) ; } catch ( Me...
Create a new empty TrmMeConnectRequest message
177
10
162,539
public TrmMeConnectReply createNewTrmMeConnectReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeConnectReply" ) ; TrmMeConnectReply msg = null ; try { msg = new TrmMeConnectReplyImpl ( ) ; } catch ( MessageDecod...
Create a new empty TrmMeConnectReply message
177
10
162,540
public TrmMeLinkRequest createNewTrmMeLinkRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeLinkRequest" ) ; TrmMeLinkRequest msg = null ; try { msg = new TrmMeLinkRequestImpl ( ) ; } catch ( MessageDecodeFail...
Create a new empty TrmMeLinkRequest message
177
10
162,541
public TrmMeLinkReply createNewTrmMeLinkReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeLinkReply" ) ; TrmMeLinkReply msg = null ; try { msg = new TrmMeLinkReplyImpl ( ) ; } catch ( MessageDecodeFailedExceptio...
Create a new empty TrmMeLinkReply message
177
10
162,542
public TrmMeBridgeRequest createNewTrmMeBridgeRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeBridgeRequest" ) ; TrmMeBridgeRequest msg = null ; try { msg = new TrmMeBridgeRequestImpl ( ) ; } catch ( Message...
Create a new empty TrmMeBridgeRequest message
177
10
162,543
public TrmMeBridgeReply createNewTrmMeBridgeReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeBridgeReply" ) ; TrmMeBridgeReply msg = null ; try { msg = new TrmMeBridgeReplyImpl ( ) ; } catch ( MessageDecodeFail...
Create a new empty TrmMeBridgeReply message
177
10
162,544
public TrmMeBridgeBootstrapRequest createNewTrmMeBridgeBootstrapRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeBridgeBootstrapRequest" ) ; TrmMeBridgeBootstrapRequest msg = null ; try { msg = new TrmMeBridg...
Create a new empty TrmMeBridgeBootstrapRequest message
189
12
162,545
public TrmMeBridgeBootstrapReply createNewTrmMeBridgeBootstrapReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeBridgeBootstrapReply" ) ; TrmMeBridgeBootstrapReply msg = null ; try { msg = new TrmMeBridgeBootstr...
Create a new empty TrmMeBridgeBootstrapReply message
189
12
162,546
public TrmFirstContactMessage createInboundTrmFirstContactMessage ( byte rawMessage [ ] , int offset , int length ) throws MessageDecodeFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createInboundTrmFirstContactMessage" , new Object [ ] { rawMessage , ...
Create a TrmFirstContactMessage to represent an inbound message .
196
14
162,547
public TrmRouteData createTrmRouteData ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createTrmRouteData" ) ; TrmRouteData msg = null ; try { msg = new TrmRouteDataImpl ( MfpConstants . CONSTRUCTOR_NO_OP ) ; } catch ( MessageDec...
Create a TrmRouteData message
180
7
162,548
public void eventRestored ( ) throws SevereMessageStoreException { super . eventRestored ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "eventRestored" ) ; try { NonLockingCursor cursor = newNonLockingItemCursor ( null ) ; AbstractItem item = cursor . next (...
the message store . We build the index of any currently stored items .
265
14
162,549
void addSchema ( JMFSchema schema , Transaction tran ) throws MessageStoreException { addItem ( new SchemaStoreItem ( schema ) , tran ) ; }
Add a new schema defintion to the store
37
10
162,550
JMFSchema findSchema ( long schemaId ) throws MessageStoreException { Long storeId = schemaIndex . get ( Long . valueOf ( schemaId ) ) ; if ( storeId != null ) { AbstractItem item = findById ( storeId . longValue ( ) ) ; return ( ( SchemaStoreItem ) item ) . getSchema ( ) ; } else throw new MessageStoreException ( "Sch...
Restore a schema definition from the store
100
8
162,551
void addToIndex ( SchemaStoreItem item ) throws NotInMessageStore { schemaIndex . put ( item . getSchema ( ) . getLongID ( ) , Long . valueOf ( item . getID ( ) ) ) ; item . setStream ( this ) ; }
Add an item to our index
59
6
162,552
void removeFromIndex ( SchemaStoreItem item ) { schemaIndex . remove ( item . getSchema ( ) . getLongID ( ) ) ; item . setStream ( null ) ; }
Remove an item from our index
41
6
162,553
public synchronized WSPKCSInKeyStore insert ( String tokenType , String tokenlib , String tokenPwd , boolean askeystore , String keyStoreProvider ) throws Exception { // check to see if the library has been initialized already;by comparing // the elements in the enumerations // perhaps a java 2 sec mgr if ( tc . isEntr...
Insert a new keystore into the list .
294
9
162,554
private WSPKCSInKeyStore insertedAlready ( String tokenlib ) { WSPKCSInKeyStore pKS = null ; WSPKCSInKeyStore rc = null ; Enumeration < WSPKCSInKeyStore > e = theV . elements ( ) ; while ( null == rc && e . hasMoreElements ( ) ) { pKS = e . nextElement ( ) ; if ( tokenlib . equalsIgnoreCase ( pKS . getlibName_key ( ) )...
Lookup the keystore object that may exist in the list for the input token library value .
150
19
162,555
public InputStream openKeyStore ( String fileName ) throws MalformedURLException , IOException { InputStream fis = null ; URL urlFile = null ; File kfile = null ; try { kfile = new File ( fileName ) ; } catch ( NullPointerException e ) { throw new IOException ( ) ; } try { if ( kfile . exists ( ) ) { // its a file that...
Open the input filename as a stream .
286
8
162,556
private void addAlternateNamedFacesConfig ( Container moduleContainer , ArrayList < String > classList ) { try { WebApp webapp = moduleContainer . adapt ( WebApp . class ) ; //If null, assume there was no web.xml, so no need to look for ContextParams in it. if ( webapp == null ) { return ; } List < ParamValue > params ...
Look at the web . xml for a context - param javax . faces . CONFIG_FILES and treat as a comma delimited list
301
29
162,557
public static QName getServiceQName ( ClassInfo classInfo , String seiClassName , String targetNamespace ) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , "Service QName" ) ; if ( annotationInfo == null ) { return null ; } //serviceName can only be defined in implementation bean, targetNamesp...
Get serviceName s QName of Web Service
144
9
162,558
public static QName getPortQName ( ClassInfo classInfo , String seiClassName , String targetNamespace ) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , "Port QName" ) ; if ( annotationInfo == null ) { return null ; } boolean webServiceProviderAnnotation = isProvider ( classInfo ) ; String wsN...
Get portName QName of Web Service
180
8
162,559
public static boolean isProvider ( ClassInfo classInfo ) { AnnotationInfo annotationInfo = classInfo . getAnnotation ( JaxWsConstants . WEB_SERVICE_ANNOTATION_NAME ) ; if ( annotationInfo == null ) { annotationInfo = classInfo . getAnnotation ( JaxWsConstants . WEB_SERVICE_PROVIDER_ANNOTATION_NAME ) ; if ( annotationIn...
Judge if is a Web Service Provider .
101
8
162,560
public static String getImplementedTargetNamespace ( ClassInfo classInfo ) { String defaultValue = getNamespace ( classInfo , null ) ; if ( StringUtils . isEmpty ( defaultValue ) ) { defaultValue = JaxWsConstants . UNKNOWN_NAMESPACE ; } AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , JaxWsConst...
get the targetNamespace from implementation bean . if can get the targetNamespace attribute from annotation then return it otherwise return the package name as default value . Both webService and webServiceprovider has the same logic .
196
44
162,561
public static String getInterfaceTargetNamespace ( ClassInfo classInfo , String seiClassName , String implementedTargetNamespace , InfoStore infoStore ) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , JaxWsConstants . TARGETNAMESPACE_ATTRIBUTE ) ; if ( annotationInfo == null ) { return "" ; }...
get the targetNamespace from SEI . If it is webServiceProvider just return the targetNamespace attribute from annotation . If it is webService and no SEI specified return the implementedTargetNamespace ; If it is webService and SEI specified with no targetNamespace attribute should report error? If it is webService and...
559
84
162,562
public static String getWSDLLocation ( ClassInfo classInfo , String seiClassName , InfoStore infoStore ) { return getStringAttributeFromAnnotation ( classInfo , seiClassName , infoStore , JaxWsConstants . WSDLLOCATION_ATTRIBUTE , "" , "" ) ; }
First get the WSDL Location .
68
8
162,563
private static String getStringAttributeFromWebServiceProviderAnnotation ( AnnotationInfo annotationInfo , String attribute , String defaultForServiceProvider ) { //the two values can not be found in webserviceProvider annotation so just return the default value to save time if ( attribute . equals ( JaxWsConstants . E...
Return the attribute value of WebServiceProvider annotation
172
9
162,564
private static String getStringAttributeFromAnnotation ( ClassInfo classInfo , String seiClassName , InfoStore infoStore , String attribute , String defaultForService , String defaultForServiceProvider ) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , attribute ) ; if ( annotationInfo == null...
Get the string value of attribute in WebService or WebserviceProvider annotation .
490
16
162,565
public static String getPortComponentName ( ClassInfo classInfo , String seiClassName , InfoStore infoStore ) { String defaultForServiceProvider = classInfo . getName ( ) ; String defaultForService = getClassName ( classInfo . getName ( ) ) ; return getStringAttributeFromAnnotation ( classInfo , seiClassName , infoStor...
Get the portComponentName from ClassInfo
100
8
162,566
private static QName getPortQName ( ClassInfo classInfo , String namespace , String wsName , String wsPortName , String suffix ) { String portName ; if ( wsPortName != null && ! wsPortName . isEmpty ( ) ) { portName = wsPortName . trim ( ) ; } else { if ( wsName != null && ! wsName . isEmpty ( ) ) { portName = wsName ....
Get portName . 1 . declared portName in web service annotation 2 . name in web service annotation + Port 3 . service class name + Port .
188
30
162,567
public static boolean matchesQName ( QName regQName , QName targetQName , boolean ignorePrefix ) { if ( regQName == null || targetQName == null ) { return false ; } if ( "*" . equals ( getQNameString ( regQName ) ) ) { return true ; } // if the name space or the prefix is not equal, just return false; if ( ! ( regQName...
Check whether the regQName matches the targetQName
235
11
162,568
public static String getProtocolByToken ( String token , boolean returnDefault ) { if ( StringUtils . isEmpty ( token ) && returnDefault ) { return JaxWsConstants . SOAP11HTTP_BINDING ; } if ( JaxWsConstants . SOAP11_HTTP_TOKEN . equals ( token ) ) { return JaxWsConstants . SOAP11HTTP_BINDING ; } else if ( JaxWsConstan...
Get the protocol by token
268
5
162,569
@ Override public boolean addSync ( ) throws ResourceException { if ( tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "addSync" ) ; } UOWCoordinator uowCoord = mcWrapper . getUOWCoordinator ( ) ; if ( uowCoord == null ) { IllegalStateException e = new IllegalStateException ( "addSync: illegal state exception. uowC...
Register the RRSGlobalTransactionWrapper as a sync object with the Transaction Manager for the current transaction .
742
21
162,570
private void taskProperties ( RESTRequest request , RESTResponse response ) { String taskID = RESTHelper . getRequiredParam ( request , APIConstants . PARAM_TASK_ID ) ; String taskPropertiesText = getMultipleRoutingHelper ( ) . getTaskProperties ( taskID ) ; OutputHelper . writeTextOutput ( response , taskPropertiesTex...
Returns the list of available properties and their corresponding URLs .
85
11
162,571
private void taskProperty ( RESTRequest request , RESTResponse response ) { String taskID = RESTHelper . getRequiredParam ( request , APIConstants . PARAM_TASK_ID ) ; String property = RESTHelper . getRequiredParam ( request , APIConstants . PARAM_PROPERTY ) ; String taskPropertyText = getMultipleRoutingHelper ( ) . ge...
Returns the value of the property . An IllegalArgument exception is thrown if the value is not an instance of java . lang . String .
111
28
162,572
public static DERUTF8String getInstance ( Object obj ) { if ( obj == null || obj instanceof DERUTF8String ) { return ( DERUTF8String ) obj ; } if ( obj instanceof ASN1OctetString ) { return new DERUTF8String ( ( ( ASN1OctetString ) obj ) . getOctets ( ) ) ; } if ( obj instanceof ASN1TaggedObject ) { return getInstance ...
return an UTF8 string from the passed in object .
148
11
162,573
public static JsMessagingEngine [ ] registerMessagingEngineListener ( final SibRaMessagingEngineListener listener , final String busName ) { final String methodName = "registerMessagingEngineListener" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , methodName , new Object [ ] { listener , busName } ) ; } ...
Registers a listener for active messaging engines on a bus .
474
12
162,574
public static void deregisterMessagingEngineListener ( final SibRaMessagingEngineListener listener , final String busName ) { final String methodName = "deregisterMessagingEngineListener" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , methodName , new Object [ ] { listener , busName } ) ; } synchronized ...
Deregisters a listener for active messaging engines on a bus .
194
14
162,575
public static JsMessagingEngine [ ] getMessagingEngines ( final String busName ) { final String methodName = "getMessagingEngines" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , methodName , busName ) ; } final JsMessagingEngine [ ] result ; synchronized ( MESSAGING_ENGINES ) { // Do we have any messagin...
Returns an array of initialized messaging engines for the given bus . If there are none an empty array is returned .
235
22
162,576
public void engineReloaded ( Object objectSent ) { final JsMessagingEngine engine = ( JsMessagingEngine ) objectSent ; final String methodName = "engineReloaded" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , engine ) ; } RELOADING_MESSAGING_ENGINES . remove ( engine . getUuid ( ) . t...
lohith liberty change
210
5
162,577
private static Set getListeners ( final String busName ) { final String methodName = "getListeners" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , methodName , busName ) ; } final Set listeners = new HashSet ( ) ; synchronized ( MESSAGING_ENGINE_LISTENERS ) { // Get listeners for the particular bus final...
Returns the set of listeners for the given bus .
225
10
162,578
private static boolean isTruePartitionOfTopLevelStep ( Step step ) { Partition partition = step . getPartition ( ) ; if ( partition . getMapper ( ) != null ) { if ( logger . isLoggable ( Level . FINER ) ) { logger . logp ( Level . FINER , CLASSNAME , "validatePartition" , "Found partitioned step with mapper" , step ) ;...
Need to perform this check because of the way we manipulate the model in building our subjob for the partition .
276
22
162,579
protected ClassConfigData processClassConfiguration ( final InputStream inputStream ) throws IOException { if ( introspectAnnotations == false ) { return new ClassConfigData ( inputStream ) ; } ClassReader cr = new ClassReader ( inputStream ) ; ClassWriter cw = new ClassWriter ( cr , 0 ) ; // Don't compute anything - r...
Introspect configuration information from the class in the provided InputStream .
154
14
162,580
protected ClassInfo mergeClassConfigInfo ( ClassInfo classInfo ) { // Update introspected class information from introspected package PackageInfo packageInfo = configFileParser . getPackageInfo ( classInfo . getInternalPackageName ( ) ) ; if ( packageInfo == null ) { packageInfo = getPackageInfo ( classInfo . getIntern...
Attempt to normalize the various levels of configuration information prior to instrumenting a class .
155
17
162,581
private static void printUsageMessage ( ) { System . out . println ( "Description:" ) ; System . out . println ( " StaticTraceInstrumentation can modify classes" ) ; System . out . println ( " in place to add calls to a trace framework that will" ) ; System . out . println ( " delegate to JSR47 logging or WebSphere Tr....
Gentle usage message that needs to be written .
243
10
162,582
public static LibertyVersionRange valueOf ( String versionRangeString ) { if ( versionRangeString == null ) { return null ; } Matcher versionRangeMatcher = VERSION_RANGE_PATTERN . matcher ( versionRangeString ) ; if ( versionRangeMatcher . matches ( ) ) { // Have a min and max so parse both LibertyVersion minVersion = ...
Attempts to parse the supplied version range string into a Liberty version range containing just numbers . If it fails to do so it will return null .
219
28
162,583
protected void detach ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "detach" ) ; // Cleanly dispose of the getCursor getCursor . finished ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "detach" ) ; }
Detach processing for this filter
94
6
162,584
protected void discard ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "discard" ) ; // Discard any old cursor if ( getCursor != null ) { getCursor . finished ( ) ; getCursor = null ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr...
Discard processing for this filter
107
6
162,585
@ Override public void registerInterceptors ( EjbDescriptor < ? > ejbDescriptor , InterceptorBindings interceptorBindings ) { if ( interceptorBindings != null ) { final Collection < Interceptor < ? > > interceptors = interceptorBindings . getAllInterceptors ( ) ; if ( interceptors != null ) { for ( Interceptor < ? > in...
Throw an exception if an interceptor for Transactional is registered
341
13
162,586
protected void updateSubjectWithTemporarySubjectContents ( ) { subject . getPrincipals ( ) . addAll ( temporarySubject . getPrincipals ( ) ) ; subject . getPublicCredentials ( ) . addAll ( temporarySubject . getPublicCredentials ( ) ) ; subject . getPrivateCredentials ( ) . addAll ( temporarySubject . getPrivateCredent...
Sets the subject with the temporary subject contents that was not set already from the shared state .
86
19
162,587
@ Override public int size ( boolean includeDiskCache ) { int mappings = 0 ; mappings = cache . getNumberCacheEntries ( ) ; if ( includeDiskCache ) { if ( cache instanceof CacheProviderWrapper ) { CacheProviderWrapper cpw = ( CacheProviderWrapper ) cache ; if ( cpw . featureSupport . isDiskCacheSupported ( ) ) mappings...
Returns number of key - value mappings in this map .
122
12
162,588
@ Override public void addAlias ( Object key , Object [ ] aliasArray ) { final String methodName = "addAlias(key, aliasArray)" ; functionNotAvailable ( methodName ) ; }
Adds one or more aliases for the given key in the cache s mapping table . If the alias is already associated with another key it will be changed to associate with the new key .
42
36
162,589
@ Override public void invalidate ( Object key , boolean wait , boolean checkPreInvalidationListener ) { final String methodName = "invalidate(key, wait, checkPreInvalidationListener)" ; functionNotAvailable ( methodName ) ; }
invalidate - invalidates the given key . If the key is for a specific cache entry then only that object is invalidated . If the key is for a dependency id then all objects that share that dependency id will be invalidated .
52
48
162,590
public void setWsLogHandler ( String id , WsLogHandler ref ) { if ( id != null && ref != null ) { //There can be many Reader locks, but only one writer lock. //This ReaderWriter lock is needed to avoid duplicate messages when the class is passing on EarlyBuffer messages to the new WsLogHandler. RERWLOCK . writeLock ( )...
Add the WsLogHandler ref . 1 or more LogHandlers may be set .
274
18
162,591
public long getByteBufferAddress ( ByteBuffer byteBuffer ) { /* * This only works for DIRECT byte buffers. Direct ByteBuffers have a field * called "address" which * holds the physical address of the start of the buffer contents in native * memory. * This method obtains the value of the address field through reflection...
Get the native address for the specified DirectByteBuffer
138
10
162,592
public long getSocketChannelHandle ( SocketChannel socketChannel ) { StartPrivilegedThread privThread = new StartPrivilegedThread ( socketChannel ) ; return AccessController . doPrivileged ( privThread ) ; }
Get the socket channel handle .
43
6
162,593
public void cleanThreadLocals ( Thread thread ) { try { svThreadLocalsField . set ( thread , null ) ; } catch ( IllegalAccessException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Unable to clear java.lang.ThreadLocals: " , e ) ; } }
Clean up the thread locals for the specified Thread .
82
10
162,594
private boolean hasConfigChanged ( Document newConfig ) { NodeList list = newConfig . getElementsByTagName ( "*" ) ; int currentHash = nodeListHashValue ( list ) ; // Either this is the first time checking the config or there has been some change if ( this . previousConfigHash == null || currentHash != this . previousC...
Check to see if the current config has the same information as the previously written config . If this config has no new information return false .
102
27
162,595
@ Override public URLConnection openConnection ( URL url ) throws IOException { String path = url . getPath ( ) ; int resourceDelimiterIndex = path . indexOf ( "!/" ) ; URLConnection conn ; if ( resourceDelimiterIndex == - 1 ) { // The "jar" protocol requires that the path contain an entry path. // For backwards compat...
begin 408408 . 2
347
5
162,596
public ConsumerDispatcher createSubscriptionConsumerDispatcher ( ConsumerDispatcherState subState ) throws SIDiscriminatorSyntaxException , SISelectorSyntaxException , SIResourceException , SISelectorSyntaxException , SIDiscriminatorSyntaxException , SINonDurableSubscriptionMismatchException { if ( TraceComponent . isA...
however nobody is calling this thru AbstractAliasDestinationHandler in Liberty .
758
15
162,597
public SubscriptionIndex getSubscriptionIndex ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getSubscriptionIndex" ) ; SibTr . exit ( tc , "getSubscriptionIndex" , _subscriptionIndex ) ; } return _subscriptionIndex ; }
Retrieve the subscription index for this destination .
78
9
162,598
public MessageItem retrieveMessageFromItemStream ( long msgStoreID ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "retrieveMessageFromItemStream" , new Long ( msgStoreID ) ) ; MessageItem msgItem = null ; try { msgItem = ( MessageItem ) _pu...
Retrieve the message from the non - persistent ItemStream
280
11
162,599
private void traceJndiBegin ( String methodname , Object ... objs ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { String providerURL = "UNKNOWN" ; try { providerURL = ( String ) getEnvironment ( ) . get ( Context . PROVIDER_URL ) ; } catch ( NamingException ne ) { /* Ignore. */ } Tr . d...
Trace a message with JNDI_CALL that includes the parameters sent to the JNDI call .
117
23