idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
161,500
private Collection < String > getCollectionFromSpaceSplitString ( String stringValue ) { //@special handling for @all, @none, @form and @this if ( stringValue . equals ( VAL_FORM ) ) { return VAL_FORM_LIST ; } else if ( stringValue . equals ( VAL_ALL ) ) { return VAL_ALL_LIST ; } else if ( stringValue . equals ( VAL_NO...
Splits the String based on spaces and returns the resulting Strings as Collection .
165
16
161,501
public static void traceSetTxCommon ( int opType , String txId , String desc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( TxLifeCycle_Set_Tx_Type_Str ) . append ( DataDelimiter ) . append ( TxLifeCycle_Set_Tx_Type ) . append ...
This is called by the EJB container server code to write a set transaction record to the trace log if enabled .
154
23
161,502
public static void traceCommon ( int opType , String txId , String desc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( TxLifeCycle_State_Type_Str ) . append ( DataDelimiter ) . append ( TxLifeCycle_State_Type ) . append ( DataD...
This is called by the EJB container server code to write a common record to the trace log if enabled .
148
22
161,503
synchronized private JaspiConfig readConfigFile ( final File configFile ) throws PrivilegedActionException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "readConfigFile" , new Object [ ] { configFile } ) ; if ( configFile == null ) { // TODO handle persistence // String msg = MessageFormatHelper.getFormattedMessag...
Return a Java representation of the JASPI persistent providers that are defined in the given configuration file or null if the object returned by JAXB is not an JaspiConfig instance or an exception is thrown by method AccessController . doPrivileged .
311
51
161,504
synchronized private void writeConfigFile ( final JaspiConfig jaspiConfig ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "writeConfigFile" , new Object [ ] { jaspiConfig } ) ; if ( configFile == null ) { // TODO handle persistence //String msg = MessageFormatHelper.getFormattedMessage(msgBundle, AdminConstants.MS...
Store the in - memory Java representation of the JASPI persistent providers into the given configuration file .
344
20
161,505
public String getRedirectUrlFromServerToClient ( String clientId , String contextPath , String redirectToRPHostAndPort ) { String redirectURL = null ; if ( redirectToRPHostAndPort != null && redirectToRPHostAndPort . length ( ) > 0 ) { try { final String fHostPort = redirectToRPHostAndPort ; @ SuppressWarnings ( { "unc...
moved from oidcconfigimpl so social can use it .
386
15
161,506
@ FFDCIgnore ( { IndexOutOfBoundsException . class } ) public boolean validateReqParameters ( ConvergedClientConfig clientConfig , Hashtable < String , String > reqParameters , String cookieValue ) { boolean validCookie = true ; String encoded = null ; String cookieName = "WASOidcCode" ; String requestParameters = null...
This gets called after an auth code or implicit token might have been received . This method examines the encodedReqParameters extracted from the WASOidcCode cookie along with the client config and request params to determine if the params in the cookie are valid .
676
51
161,507
public Boolean verifyState ( HttpServletRequest req , HttpServletResponse res , String responseState , ConvergedClientConfig clientConfig ) { if ( responseState . length ( ) < OidcUtil . STATEVALUE_LENGTH ) { return false ; // the state does not even match the length, the verification failed } long clockSkewMillSeconds...
Determine the name of the state cookie based on the state name key + hashcode of response state . Retrieve that cookie value then create a check value by hashing the clinet config and resonseState again . If the hash result equals the cookie value request is valid proceed to check the clock skew .
578
62
161,508
void update ( Dictionary < String , Object > props ) { if ( deleted ) { return ; } final String instancePid = ( String ) props . get ( "service.pid" ) ; final String instanceId = ( String ) props . get ( "id" ) ; if ( instanceId == null ) { Tr . error ( tc , "cls.library.id.missing" ) ; } if ( libraryListenersTracker =...
called from SharedLibraryFactory inside a synchronized block over this instance
417
12
161,509
public void mapFunction ( String prefix , String fnName , final Class c , final String methodName , final Class [ ] args ) { //192474 start //We can get in to this method with null parameters if a JSP was compiled against the jsp-2.3 feature but running in a jsp-2.2 server. //This check is needed for the temporary JspC...
Stores a mapping from the given EL function prefix and name to the given Java method .
303
18
161,510
void add ( int event ) { int b = bits . addAndGet ( event ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "add " + event + ", polling state: " + b ) ; }
Add an event without checking if we are ready to start polling .
64
13
161,511
boolean addAndCheckIfReady ( int event ) { int b = bits . addAndGet ( event ) ; boolean isReady = b == READY_WITHOUT_SIGNAL || b == READY_WITH_UNNECESSARY_SIGNAL || b == READY_WITH_SIGNAL ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "addAndCheckIfReady " + event ...
Add an event and then check if we are ready for polling .
127
13
161,512
public int getTransactionTimeout ( ) throws XAException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getTransactionTimeout" ) ; int timeout = 0 ; try { CommsByteBuffer request = getCommsByteBuffer ( ) ; request . putInt ( getTransactionId ( ) ) ; CommsByteBuf...
Returns the transaction timeout for this XAResource instance .
383
12
161,513
private HashMap < Xid , SIXAResourceProxy > getLinkLevelXAResourceMap ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getLinkLevelXAResourceMap" ) ; HashMap < Xid , SIXAResourceProxy > map = ( ( ClientLinkLevelState ) getConversation ( ) . getLinkLevelAttach...
Helper method to retrieve the map in the link level state that contains the XAResources and the XId they are currently enlisted with .
167
28
161,514
private String replaceCharacters ( String name ) { name = name . replaceAll ( "&gt;" , ">" ) ; name = name . replaceAll ( "&lt;" , "<" ) ; name = name . replaceAll ( "&amp;" , "&" ) ; name = name . replaceAll ( "<\\%" , "<%" ) ; name = name . replaceAll ( "%\\>" , "%>" ) ; return name ; }
PK40417 Method to replace translated characters to their original form . This prevents compilation errors when escaped characters are used in tags .
92
25
161,515
private boolean handleCaseSensitivityCheck ( String path , boolean checkWEBINF ) throws IOException { if ( System . getSecurityManager ( ) != null ) { final String tmpPath = path ; final boolean tmpCheckWEBINF = checkWEBINF ; //PK81387 try { return ( ( Boolean ) AccessController . doPrivileged ( new PrivilegedException...
PK81387 - added checkWEBINF param
201
12
161,516
public final void nameSpace ( String namespace ) { if ( namespace == null || namespace . equals ( "" ) ) { _namespace = "" ; } else { _namespace = namespace + ":" ; } }
Set the namespace prefix to be prefixed to subseqyent tags . The namespace prefix allow different components to use the same tag without risk of confusion .
44
31
161,517
public final void write ( Throwable e ) throws IOException { indent ( ) ; newLine ( ) ; write ( e . toString ( ) ) ; StackTraceElement [ ] elements = e . getStackTrace ( ) ; for ( int i = 0 ; i < elements . length ; i ++ ) { newLine ( ) ; write ( elements [ i ] . toString ( ) ) ; } Throwable cause = e . getCause ( ) ; ...
Write a throwable used to indicate a problem during data collection not formatted .
126
15
161,518
public PublicKey getPublicKeyFromJwk ( String kid , String x5t , boolean useSystemPropertiesForHttpClientConnections ) throws PrivilegedActionException , IOException , KeyStoreException , InterruptedException { return getPublicKeyFromJwk ( kid , x5t , null , useSystemPropertiesForHttpClientConnections ) ; }
Either kid or x5t will work . But not both
74
12
161,519
@ FFDCIgnore ( { KeyStoreException . class } ) public PublicKey getPublicKeyFromJwk ( String kid , String x5t , String use , boolean useSystemPropertiesForHttpClientConnections ) throws PrivilegedActionException , IOException , KeyStoreException , InterruptedException { PublicKey key = null ; KeyStoreException errKeySt...
Either kid x5t or use will work but not all
261
12
161,520
@ FFDCIgnore ( { PrivilegedActionException . class } ) protected InputStream getInputStream ( final File f , String fileSystemSelector , String location , String classLoadingSelector ) throws IOException { // check file system first like we used to do if ( f != null ) { InputStream is = null ; try { is = ( FileInputStr...
open an input stream to either a file on the file system or a url on the classpath . Update the locationUsed class variable to note where we got the stream from so results of reading it can be cached properly
315
43
161,521
public boolean parseJwk ( String keyText , FileInputStream inputStream , JWKSet jwkset , String signatureAlgorithm ) { boolean bJwk = false ; if ( keyText != null ) { bJwk = parseKeyText ( keyText , locationUsed , jwkset , signatureAlgorithm ) ; } else if ( inputStream != null ) { String keyAsString = getKeyAsString ( ...
separate to be an independent method for unit tests
126
10
161,522
@ Override public CompletableFuture < T > newIncompleteFuture ( ) { if ( JAVA8 ) return new ManagedCompletionStage < T > ( new CompletableFuture < T > ( ) , defaultExecutor , null ) ; else return new ManagedCompletionStage < T > ( defaultExecutor ) ; }
minimalCompletionStage is allowed because java . util . concurrent . CompletableFuture s minimalCompletionStage allows it
72
25
161,523
@ Override @ SuppressWarnings ( "hiding" ) @ Trivial < T > CompletableFuture < T > newInstance ( CompletableFuture < T > completableFuture , Executor managedExecutor , FutureRefExecutor futureRef ) { return new ManagedCompletionStage < T > ( completableFuture , managedExecutor , futureRef ) ; }
This method is only for Java SE 8 . It is used to override the newInstance method of ManagedCompletableFuture to ensure that newly created instances are ManagedCompletionStage .
81
38
161,524
public void becomeCloneOf ( ManagedObject other ) { final String methodName = "becomeCloneOf" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , other ) ; //!! See transactionDeleteLogRecord as to why this is necessary. //!! The dummy is used where we n...
Replace the state of this object with the same object in some other state . Used for to restore the before immage if a transaction rolls back or is read from the log during restart .
187
38
161,525
private boolean setState ( State newState ) { switch ( newState ) { case DEPLOYED : return changeState ( State . DEPLOYING , State . DEPLOYED ) ; case DEPLOYING : //can move from either UNDEPLOYED or FAILED into DEPLOYING state return ( changeState ( State . UNDEPLOYED , State . DEPLOYING ) || changeState ( State . FAI...
state should only transition while the terminated lock is held .
191
11
161,526
Event createFailedEvent ( Throwable t ) { synchronized ( terminated ) { if ( terminated . get ( ) ) { return null ; } if ( setState ( State . FAILED ) ) { installer . removeWabFromEligibleForCollisionResolution ( this ) ; installer . attemptRedeployOfPreviouslyCollidedContextPath ( this . wabContextPath ) ; return crea...
and kicks off the collision resolution process
104
7
161,527
Event createFailedEvent ( String collisionContext , long [ ] cIds ) { synchronized ( terminated ) { if ( terminated . get ( ) ) { return null ; } if ( setState ( State . FAILED ) ) return createEvent ( State . FAILED , null , collisionContext , cIds ) ; } return null ; }
as it s used only to report collision failures = )
73
11
161,528
@ Override @ Trivial public WAB addingBundle ( Bundle bundle , BundleEvent event ) { //the bundle is in STARTING | ACTIVE state because of our state mask //only action work for the bundle represented by this WAB. if ( bundle . getBundleId ( ) == wabBundleId ) { //sync lock inside bundle id check to avoid locking on eve...
so we don t want that in the trace all the time
310
12
161,529
public static String identityToString ( Object o ) { return o == null ? null : o . getClass ( ) . getName ( ) + ' ' + Integer . toHexString ( System . identityHashCode ( o ) ) ; }
Returns a string containing a concise human - readable description of the object . The string is the same as the one that would be returned by Object . toString even if the object s class has overriden the toString or hashCode methods . The return value for a null object is null .
51
59
161,530
public static final String getThreadId ( ) { String id = threadids . get ( ) ; if ( null == id ) { // Pad the tid out to 8 characters id = getThreadId ( Thread . currentThread ( ) ) ; threadids . set ( id ) ; } return id ; }
Get and return the thread id padded to 8 characters .
62
11
161,531
public static final String padHexString ( int num , int width ) { final String zeroPad = "0000000000000000" ; String str = Integer . toHexString ( num ) ; final int length = str . length ( ) ; if ( length >= width ) return str ; StringBuilder buffer = new StringBuilder ( zeroPad . substring ( 0 , width ) ) ; buffer . r...
Returns the provided integer padded to the specified number of characters with zeros .
99
15
161,532
public static final String throwableToString ( Throwable t ) { final StringWriter s = new StringWriter ( ) ; final PrintWriter p = new PrintWriter ( s ) ; if ( t == null ) { p . println ( "none" ) ; } else { printStackTrace ( p , t ) ; } return DataFormatHelper . escape ( s . toString ( ) ) ; }
Returns a string containing the formatted exception stack
83
8
161,533
private static final boolean printFieldStackTrace ( PrintWriter p , Throwable t , String className , String fieldName ) { for ( Class < ? > c = t . getClass ( ) ; c != Object . class ; c = c . getSuperclass ( ) ) { if ( c . getName ( ) . equals ( className ) ) { try { Object value = c . getField ( fieldName ) . get ( t...
Find a field value in the class hierarchy of an exception and if the field contains another Throwable then print its stack trace .
171
25
161,534
private String createErrorMsg ( JspLineId jspLineId , int errorLineNr ) { StringBuffer compilerOutput = new StringBuffer ( ) ; if ( jspLineId . getSourceLineCount ( ) <= 1 ) { Object [ ] objArray = new Object [ ] { new Integer ( jspLineId . getStartSourceLineNum ( ) ) , jspLineId . getFilePath ( ) } ; if ( jspLineId . ...
name of parent file
817
4
161,535
@ SuppressWarnings ( "unchecked" ) public static < T > T getInstanceInitParameter ( ExternalContext context , String name , String deprecatedName , T defaultValue ) { String param = getStringInitParameter ( context , name , deprecatedName ) ; if ( param == null ) { return defaultValue ; } else { try { return ( T ) Clas...
Gets the init parameter value from the specified context and instanciate it . If the parameter was not specified the default value is used instead .
121
30
161,536
public static String escapeLDAPFilterTerm ( String term ) { if ( term == null ) return null ; Matcher m = FILTER_CHARS_TO_ESCAPE . matcher ( term ) ; StringBuffer sb = new StringBuffer ( term . length ( ) ) ; while ( m . find ( ) ) { final String replacement = escapeFilterChar ( m . group ( ) . charAt ( 0 ) ) ; m . app...
Escape a term for use in an LDAP filter .
131
12
161,537
private static Method getBindingMethod ( UIComponent parent ) { Class [ ] clazzes = parent . getClass ( ) . getInterfaces ( ) ; for ( int i = 0 ; i < clazzes . length ; i ++ ) { Class clazz = clazzes [ i ] ; if ( clazz . getName ( ) . indexOf ( "BindingAware" ) != - 1 ) { try { return parent . getClass ( ) . getMethod ...
This is all a hack to work around a spec - bug which will be fixed in JSF2 . 0
136
22
161,538
public void setObjectClasses ( List < String > objectClasses ) { int size = objectClasses . size ( ) ; iObjectClasses = new ArrayList < String > ( objectClasses . size ( ) ) ; for ( int i = 0 ; i < size ; i ++ ) { String objectClass = objectClasses . get ( i ) . toLowerCase ( ) ; if ( ! iObjectClasses . contains ( obje...
Sets a list of defining object classes for this entity type . The object classes will be stored in lower case form for comparison .
111
26
161,539
public void setObjectClassesForCreate ( List < String > objectClasses ) { if ( iRDNObjectClass != null && iRDNObjectClass . length > 1 ) { iObjectClassAttrs = new Attribute [ iRDNObjectClass . length ] ; for ( int i = 0 ; i < iRDNObjectClass . length ; i ++ ) { iObjectClassAttrs [ i ] = new BasicAttribute ( LdapConstan...
Sets the object classes attribute for creating .
393
9
161,540
public void setRDNAttributes ( List < Map < String , Object > > rdnAttrList ) throws MissingInitPropertyException { int size = rdnAttrList . size ( ) ; // if size = 0, No RDN attributes defined. Same as RDN properties. if ( size > 0 ) { iRDNAttrs = new String [ size ] [ ] ; iRDNObjectClass = new String [ size ] [ ] ; i...
Sets the RDN attribute types of this member type . RDN attribute types will be converted to lower case .
403
23
161,541
public Attribute getObjectClassAttribute ( String dn ) { if ( iObjectClassAttrs . length == 1 || dn == null ) { return iObjectClassAttrs [ 0 ] ; } else { String [ ] rdns = LdapHelper . getRDNAttributes ( dn ) ; for ( int i = 0 ; i < iRDNAttrs . length ; i ++ ) { String [ ] attrs = iRDNAttrs [ i ] ; for ( int j = 0 ; j ...
Gets the LDAP object class attribute that contains all object classes needed to create the member on LDAP server .
176
23
161,542
public SimpleEntry next ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "next" , this ) ; SibTr . exit ( tc , "next" , this . next ) ; } return this . next ; }
Return the next entry in the list
68
7
161,543
public void remove ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "remove" , this ) ; if ( previous != null ) previous . next = next ; else list . first = next ; if ( next != null ) next . previous = previous ; else list . last = previous ; previous = null ; next =...
Remove this entry from the list
130
6
161,544
void rank ( MetatypeOcd ocd , List < String > rankedSuffixes ) { List < String > childAliasSuffixes = new LinkedList < String > ( ) ; for ( String suffix : rankedSuffixes ) if ( ! childAliasSuffixes . contains ( suffix ) ) { MetatypeOcd collision = unavailableSuffixes . put ( suffix , ocd ) ; if ( collision == null ) c...
Specifies rankings for child alias suffixes .
173
9
161,545
void reserve ( String suffix , MetatypeOcd ocd ) { MetatypeOcd previous = unavailableSuffixes . put ( suffix , ocd ) ; if ( previous != null ) throw new IllegalArgumentException ( "aliasSuffix: " + suffix ) ; }
Reserve a child alias suffix so that no one else can claim it . This method should only be used when an aliasSuffix override is specified in wlp - ra . xml .
61
38
161,546
private CapabilityMatchingResult matchCapability ( Collection < ? extends ProvisioningFeatureDefinition > features ) { String capabilityString = esaResource . getProvisionCapability ( ) ; if ( capabilityString == null ) { CapabilityMatchingResult result = new CapabilityMatchingResult ( ) ; result . capabilitySatisfied ...
Attempt to match the ProvisionCapability requirements against the given list of features
244
14
161,547
public String getAssetURL ( String id ) { String url = getRepositoryUrl ( ) + "/assets/" + id + "?" ; if ( getUserId ( ) != null ) { url += "userId=" + getUserId ( ) ; } if ( getUserId ( ) != null && getPassword ( ) != null ) { url += "&password=" + getPassword ( ) ; } if ( getApiKey ( ) != null ) { url += "&apiKey=" +...
Returns a URL which represent the URL that can be used to view the asset in Massive . This is more for testing purposes the assets can be access programatically via various methods on this class .
117
38
161,548
public String getTaskUsage ( ExeAction task ) { StringBuilder taskUsage = new StringBuilder ( NL ) ; // print a empty line taskUsage . append ( getHelpPart ( "global.usage" ) ) ; taskUsage . append ( NL ) ; taskUsage . append ( ' ' ) ; taskUsage . append ( COMMAND ) ; taskUsage . append ( ' ' ) ; taskUsage . append ( t...
Constructs a string to represent the usage for a particular task .
446
13
161,549
private int getQueueIndex ( Object [ ] queue , java . util . concurrent . atomic . AtomicInteger counter , boolean increment ) { // fast path for single element array if ( queue . length == 1 ) { return 0 ; } else if ( increment ) { // get the next long value from counter int i = counter . incrementAndGet ( ) ; // roll...
has waited .
171
3
161,550
public void put ( Object x ) throws InterruptedException { if ( x == null ) { throw new IllegalArgumentException ( ) ; } // D186845 if (Thread.interrupted()) // D186845 throw new InterruptedException(); // D312598 - begin boolean ret = false ; while ( true ) { synchronized ( lock ) { if ( numberOfUsedSlots . get ( ) < ...
Puts an object into the buffer . If the buffer is full the call will block indefinitely until space is freed up .
218
24
161,551
@ Override public void setTarget ( String target ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( this , TRACE , "setTarget" , target ) ; } _target = target ; }
Set the target property .
61
5
161,552
@ Override public void setTargetType ( String targetType ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( this , TRACE , "setTargetType" , targetType ) ; } _targetType = targetType ; }
Set the target type property .
67
6
161,553
@ Override public void setMaxSequentialMessageFailure ( final String maxSequentialMessageFailure ) { _maxSequentialMessageFailure = ( maxSequentialMessageFailure == null ? null : Integer . valueOf ( maxSequentialMessageFailure ) ) ; }
Set the MaxSequentialMessageFailure property
53
8
161,554
@ Override public void setAutoStopSequentialMessageFailure ( final String autoStopSequentialMessageFailure ) { _autoStopSequentialMessageFailure = ( autoStopSequentialMessageFailure == null ? null : Integer . valueOf ( autoStopSequentialMessageFailure ) ) ; }
Set the AutoStopSequentialMessageFailure property
58
9
161,555
public static UOWScopeCallback createUserTransactionCallback ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createUserTransactionCallback" ) ; if ( userTranCallback == null ) { userTranCallback = new LTCUOWCallback ( UOW_TYPE_TRANSACTION ) ; } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "createUserTransact...
may be different in derived classes
106
6
161,556
public static X509Name getInstance ( ASN1TaggedObject obj , boolean explicit ) { return getInstance ( ASN1Sequence . getInstance ( obj , explicit ) ) ; }
Return a X509Name based on the passed in tagged object .
40
13
161,557
public Vector getOIDs ( ) { Vector v = new Vector ( ) ; for ( int i = 0 ; i != ordering . size ( ) ; i ++ ) { v . addElement ( ordering . elementAt ( i ) ) ; } return v ; }
return a vector of the oids in the name in the order they were found .
54
17
161,558
public Vector getValues ( ) { Vector v = new Vector ( ) ; for ( int i = 0 ; i != values . size ( ) ; i ++ ) { v . addElement ( values . elementAt ( i ) ) ; } return v ; }
return a vector of the values found in the name in the order they were found .
53
17
161,559
public static ConfigID fromProperty ( String property ) { //TODO Perhaps there is a clever regex that could handle this String [ ] parents = property . split ( "//" ) ; ConfigID id = null ; for ( String parentString : parents ) { id = constructId ( id , parentString ) ; } return id ; }
Translate config . id back into an ConfigID object
70
11
161,560
@ Override public Conversation connect ( InetSocketAddress remoteHost , ConversationReceiveListener arl , String chainName ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "connect" , new Object [ ] { remoteHost , arl , chainName } ) ;...
Implementation of the connect method provided by our abstract parent . Attempts to establish a conversation to the specified remote host using the appropriate chain . This may involve creating a new connection or reusing an existing one . The harder part is doing this in such a way as to avoid blocking all calls while ...
251
68
161,561
public static void initialise ( ) throws SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initialise" ) ; initialisationFailed = true ; Framework framework = Framework . getInstance ( ) ; if ( framework != null ) { tracker = new OutboundConnectionTracke...
Initialises the Client Connection Manager .
165
7
161,562
private void destroy ( ) { final boolean bTrace = TraceComponent . isAnyTracingEnabled ( ) ; if ( bTrace && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Session being destroyed; " + this ) ; } // List<HttpSessionListener> list = this.myConfig.getSessionListeners(); // if (null != list) { // HttpSessionEvent event = n...
Once a session has been invalidated this will perform final cleanup and notifying any listeners .
287
18
161,563
private void cleanup ( ) { final String methodName = "cleanup(): " ; try { final Bundle b = bundle . getAndSet ( null ) ; if ( b != null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + "Uninstalling bundle location: " + b . getLocation ( ) + ", bundle id: " + b . getBundleId ( ) ) ; } SecurityManage...
Cleans up the TCCL instance . Once called this TCCL is effectively disabled . It s associated gateway bundle will have been removed .
194
29
161,564
int decrementRefCount ( ) { final String methodName = "decrementRefCount(): " ; final int count = refCount . decrementAndGet ( ) ; if ( count < 0 ) { // more destroys than creates if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " refCount < 0 - too many calls ...
The ClassLoadingService implementation should call this method when it s destroyThreadContextClassLoader method is called . Each call to destroyTCCL should decrement this ref counter . When there are no more references to this TCCL it will be cleaned up which effectively invalidates it .
125
57
161,565
private static PersistenceContext newPersistenceContext ( final String fJndiName , final String fUnitName , final int fCtxType , final List < Property > fCtxProperties ) { return new PersistenceContext ( ) { @ Override public Class < ? extends Annotation > annotationType ( ) { return PersistenceContext . class ; } @ Ov...
This transient PersistenceContext annotation class has no default value . i . e . null is a valid value for some fields .
369
25
161,566
private void processConnectionInfo ( CommsByteBuffer buffer , Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "processConnectionInfo" , new Object [ ] { buffer , conversation } ) ; ClientConversationState convState = ( ClientConversati...
This method will process the connection information received from our peer . At the moment this consists of the connection object ID required at the server the name of the messaging engine and the ME Uuid .
677
38
161,567
private void processSchema ( CommsByteBuffer buffer , Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processSchema" , new Object [ ] { buffer , conversation } ) ; ClientConversationState convState = ( ClientConversationState ) conversation ...
This method will process a schema received from our peer s MFP compoennt . At the moment this consists of contacting MFP here on the client and giving it the schema . Schemas are received when the ME is about to send us a message and realises that we don t have the necessary schema to decode it . A High priority messag...
370
92
161,568
private void processSyncMessageChunk ( CommsByteBuffer buffer , Conversation conversation , boolean connectionMessage ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "processSyncMessageChunk" , new Object [ ] { buffer , conversation , connectionMessage } ) ; //...
Processes a chunk received from a synchronous message .
429
11
161,569
public BeanO getBean ( ContainerTx tx , BeanId id ) { return id . getActivationStrategy ( ) . atGet ( tx , id ) ; }
Return bean from cache for given transaction bean id . Return null if no entry in cache .
36
18
161,570
public void commitBean ( ContainerTx tx , BeanO bean ) { bean . getActivationStrategy ( ) . atCommit ( tx , bean ) ; }
Perform commit - time processing for the specified transaction and bean . This method should be called for each bean which was participating in a transaction which was successfully committed .
35
32
161,571
public void unitOfWorkEnd ( ContainerAS as , BeanO bean ) { bean . getActivationStrategy ( ) . atUnitOfWorkEnd ( as , bean ) ; }
LIDB441 . 5 - added
38
8
161,572
public void rollbackBean ( ContainerTx tx , BeanO bean ) { bean . getActivationStrategy ( ) . atRollback ( tx , bean ) ; }
Perform rollback - time processing for the specified transaction and bean . This method should be called for each bean which was participating in a transaction which was rolled back .
36
33
161,573
public final void enlistBean ( ContainerTx tx , BeanO bean ) { bean . getActivationStrategy ( ) . atEnlist ( tx , bean ) ; }
Perform actions required when a bean is enlisted in a transaction at some point in time other than at activation . Used only for beans using TX_BEAN_MANAGED .
36
36
161,574
public void terminate ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "terminate" ) ; statefulBeanReaper . cancel ( ) ; //d601399 // Force a reaper sweep statefulBeanReaper . finalSweep ( passivator ) ; beanCache . terminate ( ) ; if ( TraceComponent . isAnyTracingEnab...
Enable cleanup of passivated beans kind of a hack required because all the bean s homes have already been cleaned up at this point
117
25
161,575
synchronized long calculateNextExpiration ( ) { boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "calculateNextExpiration: " + this ) ; ivLastExpiration = ivExpiration ; // 598265 if ( ivParsedScheduleExpression != null ) { // F7437591.codRev -...
Calculate the next time that the timer should fire .
233
12
161,576
public static void removeTimersByJ2EEName ( J2EEName j2eeName ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "removeTimersByJ2EEName: " + j2eeName ) ; Collection < TimerNpImpl > timersToRemove = null ; // Although this seems ineffic...
Removes all timers associated with the specified application or module .
471
12
161,577
public void statisticCreated ( SPIStatistic s ) { if ( com . ibm . websphere . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "statisticCreated" , "Servlet statistic created with id=" + s . getId ( ) ) ; if ( s . getId ( ) == LOADED_S...
use ID defined in template to identify a statistic
157
9
161,578
public EJBModuleMetaDataImpl createEJBModuleMetaDataImpl ( EJBApplicationMetaData ejbAMD , // F743-4950 ModuleInitData mid , SfFailoverCache statefulFailoverCache , EJSContainer container ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc...
Create the EJB Container s internal module metadata object and fill in the data from the metadata framework s generic ModuleDataObject . This occurs at application start time .
745
32
161,579
public void processDeferredBMD ( BeanMetaData bmd ) throws EJBConfigurationException , ContainerException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processDeferredBMD: " + bmd . j2eeName ) ; // F743-506 - Process automatic timer...
Perform metadata processing for a bean that is being deferred .
207
12
161,580
@ SuppressWarnings ( "deprecation" ) protected Throwable getNestedException ( Throwable t ) { Throwable root = t ; for ( ; ; ) { if ( root instanceof RemoteException ) { RemoteException re = ( RemoteException ) root ; if ( re . detail == null ) break ; root = re . detail ; } else if ( root instanceof NamingException ) ...
d494984 eliminate assignment to parameter t .
219
10
161,581
private void initializeManagedObjectFactoryOrConstructor ( BeanMetaData bmd ) throws EJBConfigurationException { if ( bmd . isManagedBean ( ) ) { bmd . ivEnterpriseBeanFactory = getManagedBeanManagedObjectFactory ( bmd , bmd . enterpriseBeanClass ) ; // If the managed object factroy and the managed object instances wil...
Create the appropriate ManagedObjectFactory for the bean type or obtain the constructor if a ManagedObjectFactory will not be used .
550
26
161,582
private void initializeEntityConstructor ( BeanMetaData bmd ) throws EJBConfigurationException { try { bmd . ivEnterpriseBeanClassConstructor = bmd . enterpriseBeanClass . getConstructor ( ( Class < ? > [ ] ) null ) ; } catch ( NoSuchMethodException e ) { Tr . error ( tc , "JIT_NO_DEFAULT_CTOR_CNTR5007E" , new Object [...
Obtain the constructor for the entity bean concrete class .
180
11
161,583
protected < T > ManagedObjectFactory < T > getManagedBeanManagedObjectFactory ( BeanMetaData bmd , Class < T > klass ) throws EJBConfigurationException { ManagedObjectFactory < T > factory = null ; ManagedObjectService managedObjectService = getManagedObjectService ( ) ; if ( managedObjectService != null ) { try { fact...
Gets a managed object factory for the specified ManagedBean class or null if instances of the class do not need to be managed .
180
28
161,584
protected < T > ManagedObjectFactory < T > getInterceptorManagedObjectFactory ( BeanMetaData bmd , Class < T > klass ) throws EJBConfigurationException { ManagedObjectFactory < T > factory = null ; ManagedObjectService managedObjectService = getManagedObjectService ( ) ; if ( managedObjectService != null ) { try { fact...
Gets a managed object factory for the specified interceptor class or null if instances of the class do not need to be managed .
178
26
161,585
protected < T > ManagedObjectFactory < T > getEJBManagedObjectFactory ( BeanMetaData bmd , Class < T > klass ) throws EJBConfigurationException { ManagedObjectFactory < T > factory = null ; ManagedObjectService managedObjectService = getManagedObjectService ( ) ; if ( managedObjectService != null ) { try { factory = ma...
Gets a managed object factory for the specified EJB class or null if instances of the class do not need to be managed .
191
26
161,586
private ClassLoader getWrapperProxyClassLoader ( BeanMetaData bmd , Class < ? > intf ) // F58064 throws EJBConfigurationException { // Wrapper proxies are intended to support application restart scenarios. // In order to allow GC of the target EJB class loader when the // application stops, the wrapper proxy class must...
Returns a class loader that can be used to define a proxy for the specified interface .
432
17
161,587
private Constructor < ? > getWrapperProxyConstructor ( BeanMetaData bmd , String proxyClassName , Class < ? > interfaceClass , Method [ ] methods ) // F58064 throws EJBConfigurationException , ClassNotFoundException { ClassLoader proxyClassLoader = getWrapperProxyClassLoader ( bmd , interfaceClass ) ; Class < ? > [ ] i...
Defines a wrapper proxy class and obtains its constructor that accepts a WrapperProxyStte .
187
20
161,588
private static boolean hasEmptyThrowsClause ( Method method ) { for ( Class < ? > klass : method . getExceptionTypes ( ) ) { // Per CTS, callback methods can declare unchecked exceptions on the // throws clause. if ( ! RuntimeException . class . isAssignableFrom ( klass ) && ! Error . class . isAssignableFrom ( klass )...
Returns true if the specified method has an empty throws clause .
92
12
161,589
private void dealWithUnsatisifedXMLTimers ( Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers1ParmByMethodName , Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers0ParmByMethodName , BeanMetaData bmd ) throws EJBConfigurationException { String oneMethodInError = null ;...
Verifies that every timer defined in xml was successfully associated with a Method .
350
15
161,590
private boolean hasTimeoutCallbackParameters ( MethodMap . MethodInfo methodInfo ) { int numParams = methodInfo . getNumParameters ( ) ; return numParams == 0 || ( numParams == 1 && methodInfo . getParameterType ( 0 ) == Timer . class ) ; }
Returns true if the specified method has the proper parameter types for a timeout callback method .
61
17
161,591
private void addTimerToCorrectMap ( Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers1ParmByMethodName , Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers0ParmByMethodName , Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timersUnspecifiedParmByMe...
Sticks a timer defined in xml into the correct list based on the number of parameters specified in xml for the timer .
388
24
161,592
private EJBMethodInfoImpl findMethodInEJBMethodInfoArray ( EJBMethodInfoImpl [ ] methodInfos , final Method targetMethod ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "findMethodInEJBMethodInfoArray for method \"" + targetMethod ...
d494984 . 1 - added entire method
253
10
161,593
private void removeTemporaryMethodData ( BeanMetaData bmd ) { bmd . methodsExposedOnLocalHomeInterface = null ; bmd . methodsExposedOnLocalInterface = null ; bmd . methodsExposedOnRemoteHomeInterface = null ; bmd . methodsExposedOnRemoteInterface = null ; bmd . allPublicMethodsOnBean = null ; bmd . methodsToMethodInfos...
Removes temporary lists of data from BMD when they are no longer needed .
89
16
161,594
public SIBusMessage next ( ) throws SISessionUnavailableException , SISessionDroppedException , SIResourceException , SIConnectionLostException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPIBrowserSession . tc . isEntryEnabled ( ) ) SibTr . entry ( CoreSPIBrowserSession . tc , "next" , th...
Gets the next item from the BrowseCursor .
659
11
161,595
public void close ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPIBrowserSession . tc . isEntryEnabled ( ) ) SibTr . entry ( CoreSPIBrowserSession . tc , "close" , this ) ; synchronized ( this ) { if ( ! _closed ) //if we're closed already, don't bother doing anything. { //dereference from the parent conn...
Close this BrowserSession ... Dereference from the parent connection and set the closed flag to true .
155
20
161,596
void checkNotClosed ( ) throws SISessionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkNotClosed" ) ; synchronized ( this ) { if ( _closed ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "che...
Check if the session is closed . If the closed flag is set to true throw an exception .
214
19
161,597
public DestinationHandler getNamedDestination ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getNamedDestination" ) ; SibTr . exit ( tc , "getNamedDestination" , _dest ) ; } return _dest ; }
Returns the destination that the session was created against
76
9
161,598
public String getUserAgent ( FacesContext facesContext ) { if ( userAgent == null ) { synchronized ( this ) { if ( userAgent == null ) { Map < String , String [ ] > requestHeaders = facesContext . getExternalContext ( ) . getRequestHeaderValuesMap ( ) ; if ( requestHeaders != null && requestHeaders . containsKey ( "Use...
This information will get stored as it cannot change during the session anyway .
134
14
161,599
public static BigInteger decode ( String s ) { byte [ ] bytes = Base64 . decodeBase64 ( s ) ; BigInteger bi = new BigInteger ( 1 , bytes ) ; return bi ; }
This is in use by FAT only at the writing time
42
11