idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
159,800
private boolean sendMessage ( SIBusMessage sibMessage , boolean lastMsg , Integer priority ) throws MessageEncodeFailedException , IncorrectMessageTypeException , MessageCopyFailedException , UnsupportedEncodingException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this ,...
Method to perform a single send of a message to the client .
272
13
159,801
private boolean sendEntireMessage ( SIBusMessage sibMessage , List < DataSlice > messageSlices , boolean lastMsg , Integer priority ) throws MessageEncodeFailedException , IncorrectMessageTypeException , MessageCopyFailedException , UnsupportedEncodingException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . is...
Sends the message in one big buffer . If the messageSlices parameter is not null then the message has already been encoded and does not need to be done again . This may be in the case where the message was destined to be sent in chunks but is so small that it does not seem worth it .
640
63
159,802
public void consumerSessionStopped ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "consumerSessionStopped" ) ; // Inform the main consumer instance that message processor has stopped the session, this will prevent any more // restart requests from the client...
Method called when the asynchronous consumer has been stopped duee to the maxSequentialFailures threshold being reached
415
21
159,803
private void checkObjectFactoryAttributes ( ResourceInjectionBinding resourceBinding , ObjectFactoryInfo extensionFactory ) // d675976 throws InjectionConfigurationException { Resource resourceAnnotation = resourceBinding . getAnnotation ( ) ; if ( ! extensionFactory . isAttributeAllowed ( "authenticationType" ) ) { ch...
Check attributes for registered ObjectFactory s .
146
8
159,804
private Reference createExtensionFactoryReference ( ObjectFactoryInfo extensionFactory , ResourceInjectionBinding resourceBinding ) // F48603.9 { String className = extensionFactory . getObjectFactoryClass ( ) . getName ( ) ; Reference ref = new Reference ( resourceBinding . getInjectionClassTypeName ( ) , className , ...
Creates a Reference for a binding from a registered ObjectFactory .
120
13
159,805
private ResourceInfo createResourceInfo ( ResourceInjectionBinding resourceBinding ) // F48603.9 { J2EEName j2eeName = ivNameSpaceConfig . getJ2EEName ( ) ; Resource resourceAnnotation = resourceBinding . getAnnotation ( ) ; return new ResourceInfo ( j2eeName == null ? null : j2eeName . getApplication ( ) , j2eeName ==...
Creates a ResourceInfo for a binding .
229
9
159,806
public HttpURLConnection createConnection ( TLSClientParameters tlsClientParameters , Proxy proxy , URL url ) throws IOException { HttpURLConnection connection = ( HttpURLConnection ) ( proxy != null ? url . openConnection ( proxy ) : url . openConnection ( ) ) ; if ( HTTPS_URL_PROTOCOL_ID . equals ( url . getProtocol ...
Create a HttpURLConnection proxified if necessary .
219
11
159,807
public static List < Parameter > collectConstructorParameters ( Class < ? > cls , Components components , javax . ws . rs . Consumes classConsumes ) { if ( cls . isLocalClass ( ) || ( cls . isMemberClass ( ) && ! Modifier . isStatic ( cls . getModifiers ( ) ) ) ) { return Collections . emptyList ( ) ; } List < Paramete...
Collects constructor - level parameters from class .
456
9
159,808
public static List < Parameter > collectFieldParameters ( Class < ? > cls , Components components , javax . ws . rs . Consumes classConsumes ) { final List < Parameter > parameters = new ArrayList < Parameter > ( ) ; for ( Field field : ReflectionUtils . getDeclaredFields ( cls ) ) { final List < Annotation > annotatio...
Collects field - level parameters from class .
138
9
159,809
public static String [ ] splitContentValues ( String [ ] strings ) { final Set < String > result = new LinkedHashSet < String > ( ) ; for ( String string : strings ) { if ( string . isEmpty ( ) ) continue ; String [ ] splitted = string . trim ( ) . split ( "," ) ; for ( String string2 : splitted ) { result . add ( stri...
Splits the provided array of strings into an array using comma as the separator . Also removes leading and trailing whitespace and omits empty strings from the results .
108
33
159,810
public static boolean objectsNotEqual ( final Object one , final Object two ) { return ( one == null ) ? ( two != null ) : ( ! one . equals ( two ) ) ; }
Compares two objects for equality .
41
7
159,811
public static void addFieldToString ( final StringBuffer buffer , final String name , final Object value ) { buffer . append ( " <" ) ; buffer . append ( name ) ; buffer . append ( "=" ) ; buffer . append ( value ) ; buffer . append ( ">" ) ; }
Adds a string representation of the given field to the buffer .
62
12
159,812
public static void addPasswordFieldToString ( final StringBuffer buffer , final String name , final Object value ) { addFieldToString ( buffer , name , ( value == null ) ? null : "*****" ) ; }
Adds a string representation of the given password to the buffer . This will contain a row of asterisks if the password is non - null .
46
28
159,813
public final void service ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { _jspService ( request , response ) ; }
Entry point into service .
38
5
159,814
public Object put ( long key , Object value ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "put" , new Object [ ] { new Long ( key ) , value , this } ) ; if ( value == null ) { if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "put" , "IllegalArgumentException" ) ; throw new IllegalArgumentException ( "Null is not ...
Store the given value in the map associating it with the given key . If the map already contains an entry associated with the given key that entry will be replaced .
753
33
159,815
public Object remove ( long key ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "remove" , new Object [ ] { new Long ( key ) , this } ) ; int hash = getHashForExistingEntry ( key ) ; Object result = null ; if ( hash >= 0 ) { result = _values [ hash ] ; } if ( result != null ) { if ( tc . isDebugEnabled ( ) ) Tr . ...
Remove the entry from the map that is associated with the given key .
153
14
159,816
public Object get ( long key ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "get" , new Object [ ] { new Long ( key ) , this } ) ; int hash = getHashForExistingEntry ( key ) ; Object value = null ; if ( hash >= 0 ) { value = _values [ hash ] ; } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "get" , value ) ; re...
Return the entry from the map associated with the given key
104
11
159,817
private int getHashForKey ( long key ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getHashForKey" , new Object [ ] { new Long ( key ) , this } ) ; int hash = ( int ) ( key % _mapSize ) ; if ( hash < 0 ) hash = - hash ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getHashForKey" , new Integer ( hash ) ) ; re...
suitable int index into the map
108
7
159,818
private void processConfigProps ( Map < String , Object > props ) { if ( props == null || props . isEmpty ( ) ) return ; id = ( String ) props . get ( CFG_KEY_ID ) ; if ( id == null ) { Tr . error ( tc , "AUTHZ_ROLE_ID_IS_NULL" ) ; return ; } rolePids = ( String [ ] ) props . get ( CFG_KEY_ROLE ) ; // if (rolePids == n...
Process the sytemRole properties from the server . xml .
130
12
159,819
private Configuration retrieveConfig ( NestedConfigHelper configHelper , ConfigurationAdmin configAdmin ) throws InitWithoutConfig { if ( configHelper == null ) throw new InitWithoutConfig ( "Configuration not found" ) ; // We need configAdmin to list the configurations of nested classloader elements with this applicat...
get the configuration object or die trying
437
7
159,820
private List < String > getIds ( ConfigurationAdmin ca , String [ ] pids ) { final String methodName = "getIds(): " ; if ( pids == null ) { return Collections . emptyList ( ) ; } List < String > ids = new ArrayList < String > ( ) ; for ( String pid : pids ) { try { String filter = "(" + org . osgi . framework . Constan...
Find the PID in the configAdmin and get the id corresponding to it .
315
15
159,821
private boolean folderContainsFiles ( File folder ) { if ( folder != null ) { File [ ] files = folder . listFiles ( ) ; for ( File file : files ) if ( file . isFile ( ) ) return true ; for ( File file : files ) if ( file . isDirectory ( ) ) if ( folderContainsFiles ( file ) ) return true ; } return false ; }
Breadth - first traversal of folder and any subdirectories looking for if any files exist
83
20
159,822
public static ASN1Sequence getInstance ( Object obj ) { if ( obj == null || obj instanceof ASN1Sequence ) { return ( ASN1Sequence ) obj ; } throw new IllegalArgumentException ( "unknown object in getInstance" ) ; }
return an ASN1Sequence from the given object .
58
12
159,823
private static boolean markError ( OverlayContainer overlay , String errorTag ) { if ( overlay . getFromNonPersistentCache ( errorTag , WebExtAdapter . class ) == null ) { overlay . addToNonPersistentCache ( errorTag , WebExtAdapter . class , errorTag ) ; return true ; } else { return false ; } }
Mark an error condition to an overlay container .
73
9
159,824
@ Override @ FFDCIgnore ( ParseException . class ) public com . ibm . ws . javaee . dd . webext . WebExt adapt ( Container root , OverlayContainer rootOverlay , ArtifactContainer artifactContainer , Container containerToAdapt ) throws UnableToAdaptException { // What web extension is stored depends on the web descripto...
Obtain the web extension for a module container .
550
10
159,825
private String stripExtension ( String moduleName ) { if ( moduleName . endsWith ( ".war" ) || moduleName . endsWith ( ".jar" ) ) { return moduleName . substring ( 0 , moduleName . length ( ) - 4 ) ; } return moduleName ; }
Strip the extension from a module name .
61
9
159,826
public final boolean isReconfigurable ( WSConnectionRequestInfoImpl cri , boolean reauth ) { // The CRI is only reconfigurable if all fields which cannot be changed already match. // Although sharding keys can sometimes be changed via connection.setShardingKey, // the spec does not guarantee that this method will allow...
Indicates whether a Connection with this CRI may be reconfigured to the specific CRI .
265
19
159,827
private boolean matchKerberosIdentities ( WSConnectionRequestInfoImpl cri ) { boolean flag = false ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "matchKerberosIdentities" , this , cri ) ; if ( kerberosIdentityisSet && cri . ke...
Per JAVA Docs method returns true if the two names contain at least one primitive element in common . If either of the names represents an anonymous entity the method will return false .
299
37
159,828
private static final boolean match ( Object obj1 , Object obj2 ) { return obj1 == obj2 || ( obj1 != null && obj1 . equals ( obj2 ) ) ; }
Determine if two objects either of which may be null are equal .
39
15
159,829
private final boolean matchCatalog ( WSConnectionRequestInfoImpl cri ) { // At least one of the CRIs should know the default value. String defaultValue = defaultCatalog == null ? cri . defaultCatalog : defaultCatalog ; return match ( ivCatalog , cri . ivCatalog ) || ivCatalog == null && match ( defaultValue , cri . ivC...
Determine if the catalog property matches . It is considered to match if - Both catalog values are unspecified . - Both catalog values are the same value . - One of the catalog values is unspecified and the other CRI requested the default value .
95
49
159,830
private final boolean matchSchema ( WSConnectionRequestInfoImpl cri ) { // At least one of the CRIs should know the default value. String defaultValue = defaultSchema == null ? cri . defaultSchema : defaultSchema ; return match ( ivSchema , cri . ivSchema ) || ivSchema == null && match ( defaultValue , cri . ivSchema )...
Determine if the schema property matches . It is considered to match if - Both schema values are unspecified . - Both schema values are the same value . - One of the schema values is unspecified and the other CRI requested the default value .
105
49
159,831
private final boolean matchNetworkTimeout ( WSConnectionRequestInfoImpl cri ) { // At least one of the CRIs should know the default value. int defaultValue = defaultNetworkTimeout == 0 ? cri . defaultNetworkTimeout : defaultNetworkTimeout ; return ivNetworkTimeout == cri . ivNetworkTimeout || ivNetworkTimeout == 0 && (...
Determine if the networkTimeout property matches . It is considered to match if - Both networkTimeout values are unspecified . - Both networkTimeout values are the same value . - One of the networkTimeout values is unspecified and the other CRI requested the default value .
98
53
159,832
private final boolean matchHoldability ( WSConnectionRequestInfoImpl cri ) { // At least one of the CRIs should know the default value. int defaultValue = defaultHoldability == 0 ? cri . defaultHoldability : defaultHoldability ; return ivHoldability == cri . ivHoldability || ivHoldability == 0 && match ( defaultValue ,...
Determine if the result set holdability property matches . It is considered to match if - Both holdability values are unspecified . - Both holdability values are the same value . - One of the holdability values is unspecified and the other CRI requested the default value .
102
55
159,833
private final boolean matchReadOnly ( WSConnectionRequestInfoImpl cri ) { // At least one of the CRIs should know the default value. Boolean defaultValue = defaultReadOnly == null ? cri . defaultReadOnly : defaultReadOnly ; return match ( ivReadOnly , cri . ivReadOnly ) || ivReadOnly == null && match ( defaultValue , c...
Determine if the read - only property matches . It is considered to match if - Both read - only values are unspecified . - Both read - only values are the same value . - One of the read - only values is unspecified and the other CRI requested the default value .
105
57
159,834
private final boolean matchTypeMap ( WSConnectionRequestInfoImpl cri ) { // At least one of the CRIs should know the default value. Map < String , Class < ? > > defaultValue = defaultTypeMap == null ? cri . defaultTypeMap : defaultTypeMap ; return matchTypeMap ( ivTypeMap , cri . ivTypeMap ) || ivTypeMap == null && mat...
Determine if the type map property matches . It is considered to match if - Both type map values are unspecified . - Both type map values are the same value . - One of the type map values is unspecified and the other CRI requested the default value .
119
53
159,835
public static final boolean matchTypeMap ( Map < String , Class < ? > > m1 , Map < String , Class < ? > > m2 ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "matchTypeMap" , new Object [ ] { m1 , m2 } ) ; boolean match = false ; if (...
determines if two typeMaps match . Note that this method takes under account an Oracle 11g change with TypeMap
163
24
159,836
public void setDefaultValues ( String catalog , int holdability , Boolean readOnly , Map < String , Class < ? > > typeMap , String schema , int networkTimeout ) { defaultCatalog = catalog ; defaultHoldability = holdability ; defaultReadOnly = readOnly ; defaultTypeMap = typeMap ; defaultSchema = schema ; defaultNetwork...
Initialize default values that are used for unspecified properties . This allows us to match unspecified values with specified values in another CRI .
77
26
159,837
public boolean isCRIChangable ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "isCRIChangable :" , changable ) ; return changable ; }
returns boolean indicating if cri is changable or not .
59
13
159,838
public void setCatalog ( String catalog ) throws SQLException { if ( ! changable ) { throw new SQLException ( AdapterUtil . getNLSMessage ( "WS_INTERNAL_ERROR" , new Object [ ] { "ConnectionRequestInfo cannot be modified, doing so may result in corruption: catalog, cri" , catalog , this } ) ) ; } if ( TraceComponent . ...
Change the value of the catalog property in the connection request information .
130
13
159,839
public void setHoldability ( int holdability ) throws SQLException { if ( ! changable ) { throw new SQLException ( AdapterUtil . getNLSMessage ( "WS_INTERNAL_ERROR" , new Object [ ] { "ConnectionRequestInfo cannot be modified, doing so may result in corruption: holdability, cri" , holdability , this } ) ) ; } if ( Trac...
Change the value of the result set holdability property in the connection request information .
138
16
159,840
public void setTransactionIsolationLevel ( int iso ) throws SQLException { if ( ! changable ) { throw new SQLException ( AdapterUtil . getNLSMessage ( "WS_INTERNAL_ERROR" , "ConnectionRequestInfo cannot be modified, doing so may result in corruption: iso , cri" , iso , this ) ) ; } if ( TraceComponent . isAnyTracingEna...
sets the isolation level for this CRI . The J2C team are aware of the change and they are ok with setting the isolation level as the values are not part of the hashCode and hence any changes there will not affect the bucket in which the mc will reside in the connection pool We are in need for setting the cri in case th...
129
78
159,841
public void setReadOnly ( boolean readOnly ) throws SQLException { if ( ! changable ) { throw new SQLException ( AdapterUtil . getNLSMessage ( "WS_INTERNAL_ERROR" , new Object [ ] { "ConnectionRequestInfo cannot be modified, doing so may result in corruption: readOnly , cri" , readOnly , this } ) ) ; } if ( TraceCompon...
sets the readonly for this CRI . The J2C team are aware of the change and they are ok with setting the readonly as the values are not part of the hashCode and hence any changes there will not affect the bucket in which the mc will reside in the connection pool . We are in need for setting the cri in case the applicatio...
137
79
159,842
public void setShardingKey ( Object shardingKey ) throws SQLException { if ( ! changable ) throw new SQLException ( AdapterUtil . getNLSMessage ( "WS_INTERNAL_ERROR" , "ConnectionRequestInfo cannot be modified, doing so may result in corruption: shardingKey, cri" , shardingKey , this ) ) ; if ( TraceComponent . isAnyTr...
Change the value of the sharding key property in the connection request information .
138
15
159,843
public void setSuperShardingKey ( Object superShardingKey ) throws SQLException { if ( ! changable ) throw new SQLException ( AdapterUtil . getNLSMessage ( "WS_INTERNAL_ERROR" , "ConnectionRequestInfo cannot be modified, doing so may result in corruption: superShardingKey, cri" , superShardingKey , this ) ) ; if ( Trac...
Change the value of the super sharding key property in the connection request information .
146
16
159,844
public void setTypeMap ( Map < String , Class < ? > > map ) throws SQLException { if ( ! changable ) { throw new SQLException ( AdapterUtil . getNLSMessage ( "WS_INTERNAL_ERROR" , new Object [ ] { "ConnectionRequestInfo cannot be modified, doing so may result in corruption: type map, cri" , map , this } ) ) ; } if ( Tr...
Change the value of the type map property in the connection request information .
143
14
159,845
public static WSConnectionRequestInfoImpl createChangableCRIFromNon ( WSConnectionRequestInfoImpl oldCRI ) { WSConnectionRequestInfoImpl connInfo = new WSConnectionRequestInfoImpl ( oldCRI . getUserName ( ) , oldCRI . getPassword ( ) , oldCRI . getIsolationLevel ( ) , oldCRI . getCatalog ( ) , oldCRI . isReadOnly ( ) ,...
utility to create changable CRI from non changable one .
250
14
159,846
@ Override protected void processAnnotations ( Object instance ) throws IllegalAccessException , InvocationTargetException , NamingException { if ( context == null ) { // No resource injection return ; } checkAnnotation ( instance . getClass ( ) , instance ) ; /* * May be only check non private fields and methods * for...
Inject resources in specified instance .
154
7
159,847
protected static void lookupMethodResource ( javax . naming . Context context , Object instance , Method method , String name ) throws NamingException , IllegalAccessException , InvocationTargetException { if ( ! method . getName ( ) . startsWith ( "set" ) || method . getParameterTypes ( ) . length != 1 || ! method . g...
Inject resources in specified method .
257
7
159,848
private void _send ( SIBusMessage msg , SITransaction tran ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SILimitExceededException , SIErrorException , SINotAuthorizedException , SII...
This method performs the actual send but does no parameter checking and gets no locks needed to perform the send . This should be done by a suitable super - method .
668
32
159,849
private void sendEntireMessage ( SITransaction tran , SIBusMessage msg , List < DataSlice > messageSlices , boolean requireReply , short jfapPriority ) throws SIResourceException , SISessionUnavailableException , SINotPossibleInCurrentConfigurationException , SIIncorrectCallException , SIConnectionUnavailableException ...
Sends the entire message in one big JFap message . This requires the allocation of one big area of storage for the whole message . If the messageSlices parameter is not null then the message has already been encoded and can just be added into the buffer without encoding again .
370
57
159,850
private void sendData ( CommsByteBuffer request , short jfapPriority , boolean requireReply , SITransaction tran , int outboundSegmentType , int outboundNoReplySegmentType , int replySegmentType ) throws SIResourceException , SISessionUnavailableException , SINotPossibleInCurrentConfigurationException , SIIncorrectCall...
This helper method is used to send the final or only part of a message to our peer . It takes care of whether we should be exchanging the message and deals with the exceptions returned .
553
37
159,851
public void close ( ) throws SIResourceException , SIConnectionLostException , SIErrorException , SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "close" ) ; // Have we already been closed? if ( ! isClosed ( ) ) { try { closeLock . wr...
Closes the ProducerSession .
427
6
159,852
private static Object getFieldValue ( FieldClassValue fieldClassValue , Object obj ) { try { return fieldClassValue . get ( obj . getClass ( ) ) . get ( obj ) ; } catch ( IllegalAccessException e ) { // FieldClassValueFactory returns ClassValue that make the Field // accessible, so this should not happen. throw new Ill...
Get the value of a field from an object .
81
10
159,853
public static WrapperProxyState getLocalBeanWrapperProxyState ( LocalBeanWrapperProxy obj ) { // F58064 BusinessLocalWrapperProxy proxyStateHolder = ( BusinessLocalWrapperProxy ) getFieldValue ( svLocalBeanWrapperProxyStateFieldClassValue , obj ) ; return proxyStateHolder . ivState ; }
Returns the wrapper proxy object for an object that implements LocalBeanWrapperProxy . This operation should never fail but if it does exceptions will be thrown as EJBException .
74
35
159,854
protected void registerServant ( ) { if ( ivRemoteObjectWrapper != null ) { // synchronized on the remote Wrapper to set the isRemoteRegistered flag synchronized ( ivRemoteObjectWrapper ) { if ( ! isRemoteRegistered ) { try { if ( ! isZOS ) // LIDB2775-23.9 { // Servant registration must be performed with the applicati...
Register the remote wrapper servant to ORB .
524
9
159,855
private void registerServant ( BusinessRemoteWrapper wrapper , int i ) { // synchronized on the remote Wrapper to set the isRemoteRegistered flag synchronized ( wrapper ) { if ( ! ivBusinessRemoteRegistered [ i ] ) { try { if ( ! isZOS ) { // Since there may be multiple remote interfaces per bean // type, a unique Wrap...
d416391 added entire method .
570
7
159,856
protected void disconnect ( ) { if ( localWrapperProxyState != null ) // F58064 { localWrapperProxyState . disconnect ( ) ; } if ( ivBusinessLocalWrapperProxyStates != null ) // F58064 { for ( WrapperProxyState state : ivBusinessLocalWrapperProxyStates ) { state . disconnect ( ) ; } } if ( ivRemoteObjectWrapper != null...
Disconnect all wrappers . Unregisters the remote wrapper servant from ORB and disconnects local wrapper proxy states .
625
24
159,857
public EJBLocalObject getLocalObject ( ) { if ( localObject != null ) { if ( localWrapperProxyState != null && localWrapperProxyState . ivWrapper == null ) { localWrapperProxyState . connect ( ivBeanId , localWrapper ) ; } return localObject ; } throw new IllegalStateException ( "Local interface not defined" ) ; }
Returns a client proxy object for the local component view .
82
11
159,858
public Object getBusinessObject ( String interfaceName ) throws RemoteException { int interfaceIndex = ivBMD . getLocalBusinessInterfaceIndex ( interfaceName ) ; if ( interfaceIndex != - 1 ) { return getLocalBusinessObject ( interfaceIndex ) ; } interfaceIndex = ivBMD . getRemoteBusinessInterfaceIndex ( interfaceName )...
Method to get a business object given the name of the interface .
110
13
159,859
public Object getLocalBusinessObject ( int interfaceIndex ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getLocalBusinessObject : " + ivBusinessLocalProxies [ interfaceIndex ] . getClass ( ) . getName ( ) ) ; if ( ivBusinessLocalWrapperProxyStates != null && ivBusiness...
Method to get the local business object given the index of the interface . The returned object will be a wrapper a no - interface wrapper or a local wrapper proxy .
142
32
159,860
public EJSWrapperBase getLocalBusinessWrapperBase ( int interfaceIndex ) { if ( interfaceIndex == 0 && ivBMD . ivLocalBean ) { return getLocalBeanWrapperBase ( ( LocalBeanWrapper ) ivBusinessLocal [ 0 ] ) ; } return ( EJSWrapperBase ) ivBusinessLocal [ 0 ] ; }
Method to get the local business wrapper base .
78
9
159,861
public Object getRemoteBusinessObject ( int interfaceIndex ) throws RemoteException { Class < ? > [ ] bInterfaceClasses = ivBMD . ivBusinessRemoteInterfaceClasses ; BusinessRemoteWrapper wrapper = ivBusinessRemote [ interfaceIndex ] ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug...
Method to get the remote business object given the index of the interface .
154
14
159,862
public BusinessRemoteWrapper getRemoteBusinessWrapper ( WrapperId wrapperId ) { int remoteIndex = wrapperId . ivInterfaceIndex ; BusinessRemoteWrapper wrapper = null ; String wrapperInterfaceName = "" ; if ( remoteIndex < ivBusinessRemote . length ) { wrapper = ivBusinessRemote [ remoteIndex ] ; wrapperInterfaceName = ...
d419704 - rewrote for new WrapperId fields and remove the todo .
330
19
159,863
private String getAliasToFinalize ( CMConfigData cmConfigData ) { String alias = null ; if ( cmConfigData == null ) return alias ; // Not expected, but being safe // Check for DefaultPrincipalMapping alias from res-ref: final String DEFAULT_PRINCIPAL_MAPPING = "DefaultPrincipalMapping" ; final String MAPPING_ALIAS = "c...
Get the jaas alias from the config .
263
9
159,864
private Set getPrivateGenericCredentials ( final Subject subj ) throws ResourceException { Set privateGenericCredentials = null ; if ( System . getSecurityManager ( ) != null ) { try { privateGenericCredentials = ( Set ) AccessController . doPrivileged ( new PrivilegedExceptionAction ( ) { @ Override public Object run ...
Return the set of private credentials of type GenericCredential from the given subject .
263
17
159,865
private Object setJ2CThreadIdentity ( final Subject subj ) throws ResourceException { Object retObject = null ; try { if ( System . getSecurityManager ( ) != null ) { retObject = AccessController . doPrivileged ( new PrivilegedExceptionAction ( ) { @ Override public Object run ( ) throws Exception { return ThreadIdenti...
Apply the given subject s identity to the thread .
507
10
159,866
private void checkForUTOKENNotFoundError ( Subject subj ) throws ResourceException { // A Subject without a UTOKEN genericCredential can // legitimately occur in the case where the resource // adapter has indicated Thread Identity Support // is "ALLOWED, but a valid Container-managed alias // was specified. On the othe...
Check for an unexpected condition when a UTOKEN is not found in the Subject .
702
17
159,867
protected void copyStreams ( InputStream is , OutputStream os ) throws IOException { byte [ ] buffer = new byte [ 1024 ] ; try { int read ; while ( ( read = is . read ( buffer ) ) != - 1 ) { os . write ( buffer , 0 , read ) ; buffer = new byte [ 1024 ] ; } } finally { if ( null != os ) os . close ( ) ; if ( null != is ...
Reads from the input stream and copies to the output stream
100
12
159,868
protected ExtractedFileInformation extractFileFromArchive ( String fileName , String regex ) throws RepositoryArchiveException , RepositoryArchiveEntryNotFoundException , RepositoryArchiveIOException { JarFile jarFile = null ; ExtractedFileInformation result = null ; File outputFile = null ; File sourceArchive = new Fi...
Extract a file from a jar file to a temporary location on disk that is deleted when the jvm exits .
547
23
159,869
protected void processLAandLI ( File archive , RepositoryResourceWritable resource , ProvisioningFeatureDefinition feature ) throws IOException , RepositoryException { String LAHeader = feature . getHeader ( LA_HEADER_FEATURE ) ; String LIHeader = feature . getHeader ( LI_HEADER_FEATURE ) ; processLAandLI ( archive , r...
Locate and process license agreement and information files within a feature
84
12
159,870
protected void processLAandLI ( File archive , RepositoryResourceWritable resource , Manifest manifest ) throws RepositoryException , IOException { Attributes attribs = manifest . getMainAttributes ( ) ; String LAHeader = attribs . getValue ( LA_HEADER_PRODUCT ) ; String LIHeader = attribs . getValue ( LI_HEADER_PRODUC...
Locate and process license agreement and information files within a jar
98
12
159,871
public List < String > getRequiresFeature ( ArtifactMetadata amd ) { // Now check we have non-null input. I would like to check for valid // features // but as these may be user created I cannot find any way to do this so // it // is important there are no typos in the requires feature list TODO ? List < String > requi...
Take the require . feature comma separated list and return a List of the entries
180
15
159,872
protected void processIcons ( ArtifactMetadata amd , RepositoryResourceWritable res ) throws RepositoryException { String current = "" ; String sizeString = "" ; String iconName = "" ; String iconNames = amd . getIcons ( ) ; if ( iconNames != null ) { iconNames . replaceAll ( "\\s" , "" ) ; StringTokenizer s = new Stri...
Process icons from the properties file
367
6
159,873
public void registerLink ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "registerLink" ) ; // Tell TRM that the link exists try { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Register MQ...
Registers the link with WLM
302
7
159,874
public void deregisterLink ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deregisterLink" ) ; //Deregister the link with TRM deregisterDestination ( ) ; // Tell TRM that the link should be undefined if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnab...
De - registers the link from WLM
184
8
159,875
public void stop ( int mode ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stop" ) ; super . stop ( mode ) ; // Signal the MQLink component to stop try { if ( _mqLinkObject != null ) _mqLinkObject . stop ( ) ; } catch ( SIResourceException e ) { // No FFDC code need...
This stop method overrides the stop method in BaseDestinationHandler and is driven when the ME is stopped . As well as performing the normal stop processing for the MQLink object it also ensures that the uuid of the the MQLink is undefined from the set managed by the TRM . Otherwise there is the potential to add the uu...
230
78
159,876
public void announceMPStarted ( int startMode , JsMessagingEngine me ) throws SIResourceException , SIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "announceMPStarted" , new Object [ ] { startMode , me } ) ; // Drive mpStarted against the associated MQLink o...
Alert the MQLink and PSB components that MP has now started .
154
15
159,877
public void destroy ( ) throws SIResourceException , SIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "destroy" ) ; // Drive destroy against the associated MQLink object if ( _mqLinkObject != null ) _mqLinkObject . destroy ( ) ; if ( TraceComponent . isAnyTra...
Alert the MQLink and PSB components that destroy has been driven .
114
15
159,878
void recycle ( ) { flushed = false ; closed = false ; out = null ; nextChar = 0 ; converterBuffer . clear ( ) ; //PM19500 response = null ; //PM23029 }
Package - level access
42
4
159,879
public final void clear ( ) throws IOException { if ( ( bufferSize == 0 ) && ( out != null ) ) // clear() is illegal after any unbuffered output (JSP.5.5) throw new IllegalStateException ( "jsp.error.ise_on_clear" ) ; if ( flushed ) throw new IOException ( "jsp.error.attempt_to_clear_flushed_buffer" ) ; // defect 31298...
Discard the output buffer .
133
6
159,880
public static File [ ] getUserExtensionVersionFiles ( File installDir ) { File [ ] versionFiles = null ; String userDirLoc = System . getenv ( BootstrapConstants . ENV_WLP_USER_DIR ) ; File userDir = ( userDirLoc != null ) ? new File ( userDirLoc ) : ( ( installDir != null ) ? new File ( installDir , "usr" ) : null ) ;...
Retrieves the product extension jar bundles located in the installation s usr directory .
165
17
159,881
private String getUserFromUniqueID ( String id ) { if ( id == null ) { return "" ; } id = id . trim ( ) ; int realmDelimiterIndex = id . indexOf ( "/" ) ; if ( realmDelimiterIndex < 0 ) { return "" ; } else { return id . substring ( realmDelimiterIndex + 1 ) ; } }
New method added as an alternative of getUserFromUniqueId method of WSSecurityPropagationHelper
81
22
159,882
private void checkNotClosed ( ) throws SIConnectionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkNotClosed" ) ; //Synchronize on the closed object to prevent it being changed while we check it. synchronized ( this ) { if ( _closed ) { if ( T...
Check if this connection has been closed . If it has a SIObjectClosedException is thrown .
301
20
159,883
void removeBrowserSession ( BrowserSessionImpl browser ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeBrowserSession" , browser ) ; synchronized ( _browsers ) { _browsers . remove ( browser ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEna...
This method simply removes a Browser Session from our list . It is generally called by the Browser Session as it is closing down .
105
25
159,884
void removeConsumerSession ( ConsumerSessionImpl consumer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeConsumerSession" , consumer ) ; synchronized ( _consumers ) { _consumers . remove ( consumer ) ; } _messageProcessor . removeConsumer ( consumer ) ; if ( T...
This method simply removes a Consumer Session from our list . It is generally called by the Consumer Session as it is closing down .
114
25
159,885
void removeProducerSession ( ProducerSessionImpl producer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeProducerSession" ) ; synchronized ( _producers ) { _producers . remove ( producer ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnable...
This method simply removes a Producer Session from our list . It is generally called by the Producer Session as it is closing down .
104
25
159,886
private ProducerSession internalCreateProducerSession ( SIDestinationAddress destAddress , DestinationType destinationType , boolean system , SecurityContext secContext , boolean keepSecurityUserid , boolean fixedMessagePoint , boolean preferLocal , boolean clearPubSubFingerprints , String discriminator ) throws SIConn...
Method that creates the producer session .
508
7
159,887
private void checkTemporary ( DestinationHandler destination , boolean mqinterop ) throws SITemporaryDestinationNotFoundException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkTemporary" , new Object [ ] { destination , Boolean . valueOf ( mqinterop ) } ) ; // I...
Checks to see if the destination is temporary and the connection used to create the temp destination is the same as the one trying to access it .
298
29
159,888
private ConsumerSession internalCreateConsumerSession ( SIDestinationAddress destAddr , String alternateUser , DestinationType destinationType , SelectionCriteria criteria , Reliability reliability , boolean enableReadAhead , boolean nolocal , boolean forwardScanning , boolean system , Reliability unrecoverableReliabil...
Internal method for creating the consumer .
430
7
159,889
private SIBusMessage internalReceiveNoWait ( SITransaction tran , Reliability unrecoverableReliability , SIDestinationAddress destAddr , DestinationType destinationType , SelectionCriteria criteria , Reliability reliability , String alternateUser , boolean system ) throws SIConnectionDroppedException , SIConnectionUnav...
Internal implementation for receiving no wait
839
6
159,890
private BrowserSession createBrowserSession ( SIDestinationAddress destinationAddress , DestinationType destinationType , SelectionCriteria criteria , boolean system , String alternateUser , boolean gatherMessages ) throws SIConnectionUnavailableException , SIConnectionDroppedException , SIErrorException , SITemporaryD...
Creates the Browser session .
660
6
159,891
private static final boolean isDestinationPrefixValid ( String destinationPrefix ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isDestinationPrefixValid" , destinationPrefix ) ; boolean isValid = true ; // Assume the prefix is valid until we know otherwise. // null ...
Determines whether a destination prefix for a System destination is valid or not .
355
16
159,892
@ Override public ItemStream getMQLinkPubSubBridgeItemStream ( String mqLinkUuidStr ) throws SIException { MQLinkHandler mqLinkHandler = null ; ItemStream mqLinkPubSubBridgeItemStream = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMQLinkPubSubBridgeItemStrea...
Retrieves the MQLink s PubSubBridge ItemStream
555
13
159,893
void removeBifurcatedConsumerSession ( BifurcatedConsumerSessionImpl bifurcatedConsumer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPIConnection . tc . isEntryEnabled ( ) ) SibTr . entry ( CoreSPIConnection . tc , "removeBifurcatedConsumerSession" , new Object [ ] { this , bifurcatedConsumer } ) ; // Remo...
Remove a bifurcated consumer from the connection list .
192
13
159,894
private boolean checkConsumerDiscriminatorAccess ( DestinationHandler destination , String discriminator , SecurityContext secContext ) throws SIDiscriminatorSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkConsumerDiscriminatorAccess" , new Object ...
Checks the authority of a consumer to consume from a discriminator
375
13
159,895
private void checkInquireAuthority ( DestinationHandler destination , String destinationName , String busName , SecurityContext secContext , boolean temporary ) throws SINotAuthorizedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkInquireAuthority" , new...
Checks the authority to inquire on a destination
789
9
159,896
private boolean isSIBServerSubject ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isSIBServerSubject" ) ; boolean ispriv = false ; if ( _subject != null ) ispriv = _messageProcessor . getAuthorisationUtils ( ) . isSIBServerSubject ( _subject ) ; if ( TraceComponen...
Returns true if the subject associated with the connection is the privileged SIBServerSubject .
139
17
159,897
@ Override public boolean isMulticastEnabled ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isMulticastEnabled" ) ; boolean enabled = _messageProcessor . isMulticastEnabled ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . ex...
Returns true if multicast is enabled
117
7
159,898
@ Override public MulticastProperties getMulticastProperties ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMulticastProperties" ) ; MulticastProperties props = _messageProcessor . getMulticastProperties ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc...
Returns the MulticastProperties for this messaging engine null if multicast is not enabled .
123
19
159,899
private void checkDestinationAccess ( DestinationHandler destination , String destinationName , String busName , SecurityContext secContext ) throws SINotAuthorizedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkDestinationAccess" , new Object [ ] { dest...
Checks the authority of a producer to produce to a destination
352
12