idx
int64
0
41.2k
question
stringlengths
73
5.81k
target
stringlengths
5
918
24,500
public IJobXMLSource loadJSL ( String id ) { IJobXMLSource jobXML = loadJobFromDirectory ( JOB_XML_PATH , id ) ; return jobXML ; }
Assuming we get around to supporting this we want to improve the servicability with better exception handling .
24,501
@ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateDataSourceLookup ( boolean immediateOnly ) { try { return elHelper . processString ( "dataSourceLookup" , idStoreDefinition . dataSourceLookup ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabl...
Evaluate and return the dataSourceLookup .
24,502
@ FFDCIgnore ( IllegalArgumentException . class ) private List < String > evaluateHashAlgorithmParameters ( ) { List < String > parameters = new ArrayList < String > ( ) ; String [ ] rawArray = idStoreDefinition . hashAlgorithmParameters ( ) ; if ( rawArray == null || rawArray . length == 0 ) { return parameters ; } if...
Evaluate and return the hashAlgorithmParameters .
24,503
public boolean isMember ( Principal member ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isMember" , "is: " + member + ", a member of: " + this ) ; boolean result = false ; if ( member instanceof MPPrincipal ) { List theGroups = ( ( MPPrincipal ) member ) . getGrou...
Returns true if the passed principal is a member of the group . This method does a recursive search so if a principal belongs to a group which is a member of this group true is returned .
24,504
public NotificationArea createNotificationArea ( RESTRequest request , String basePath , NotificationSettings notificationSettings ) { cleanUp ( request ) ; int clientID = getNewClientID ( ) ; ClientNotificationArea newInbox = new ClientNotificationArea ( notificationSettings . deliveryInterval , notificationSettings ....
Creates a new clientID inbox and NotificationArea
24,505
public String addClientNotification ( RESTRequest request , int clientID , NotificationRegistration notificationRegistration , JSONConverter converter ) { ClientNotificationArea clientArea = getInboxIfAvailable ( clientID , converter ) ; clientArea . addClientNotificationListener ( request , notificationRegistration , ...
Add a new client notification for the given client
24,506
public void removeClientNotification ( RESTRequest request , ObjectName objectName , int clientID ) { ClientNotificationArea clientArea = getInboxIfAvailable ( clientID , null ) ; clientArea . removeClientNotificationListener ( request , objectName ) ; }
Removes a corresponding client notification for the given ObjectName
24,507
public NotificationRecord [ ] getClientInbox ( int clientID ) { ClientNotificationArea inbox = getInboxIfAvailable ( clientID , null ) ; return inbox . fetchNotifications ( ) ; }
Retrieve the list of client notifications
24,508
public void handleServerNotificationRegistration ( RESTRequest request , int clientID , ServerNotificationRegistration serverNotificationRegistration , JSONConverter converter ) { ClientNotificationArea clientArea = getInboxIfAvailable ( clientID , converter ) ; if ( serverNotificationRegistration . operation == Operat...
Handle a server notification registration . This method is only invoked by our java client .
24,509
public String addServerNotificationHTTP ( RESTRequest request , int clientID , ServerNotificationRegistration serverNotificationRegistration , JSONConverter converter ) { ClientNotificationArea clientArea = getInboxIfAvailable ( clientID , converter ) ; serverNotificationRegistration . filterID = clientArea . getParamI...
Add a new server notification registration . This method is only invoked by clients other than our java client .
24,510
public void deleteRegisteredListeners ( RESTRequest request , int clientID , ObjectName source_objName , JSONConverter converter ) { ClientNotificationArea clientArea = getInboxIfAvailable ( clientID , null ) ; clientArea . removeAllListeners ( request , source_objName , converter ) ; }
Delete all registered server - side notifications for the given object name . This can only be called from HTTP - direct clients
24,511
public void cleanUp ( RESTRequest request , int clientID ) { ClientNotificationArea inbox = inboxes . get ( clientID ) ; if ( inbox != null ) { inbox . cleanUp ( request ) ; inboxes . remove ( clientID ) ; } }
Cleanup specified clientID
24,512
public void cleanUp ( RESTRequest request ) { final Iterator < Entry < Integer , ClientNotificationArea > > clients = inboxes . entrySet ( ) . iterator ( ) ; while ( clients . hasNext ( ) ) { Entry < Integer , ClientNotificationArea > client = clients . next ( ) ; ClientNotificationArea inbox = client . getValue ( ) ; ...
Clean up timed out clients .
24,513
private ClientNotificationArea getInboxIfAvailable ( int clientID , JSONConverter converter ) { final ClientNotificationArea inbox = inboxes . get ( clientID ) ; if ( inbox == null ) { throw ErrorHelper . createRESTHandlerJsonException ( new RuntimeException ( "The requested clientID is no longer available because it t...
This method returns the client inbox or throws an error if the client ID has timed out
24,514
private synchronized int getNewClientID ( ) { if ( ( clientIDGenerator + 1 ) >= Integer . MAX_VALUE ) { final int limit = Integer . MIN_VALUE + 100 ; for ( int i = Integer . MIN_VALUE ; i < limit ; i ++ ) { if ( inboxes . get ( i ) == null ) { return i ; } } Tr . warning ( tc , "jmx.connector.server.rest.notification.l...
This synchronized method will assign an unique ID to a new notification client
24,515
void addAutomaticTimer ( AutomaticTimer timer ) { timer . ivMethod = this ; ivAutomaticTimers . add ( timer ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "added automatic timer: " + timer ) ; }
Adds an automatic timer to this metadata .
24,516
private File generateJsonFromIndividualESAs ( Path jsonDirectory , Map < String , String > shortNameMap ) throws IOException , RepositoryException , InstallException { String dir = jsonDirectory . toString ( ) ; List < File > esas = ( List < File > ) data . get ( INDIVIDUAL_ESAS ) ; File singleJson = new File ( dir + "...
generate a JSON from provided individual ESA files
24,517
public static StatsInstanceImpl createInstance ( String name , String configXmlPath , ObjectName userProvidedMBeanObjectName , boolean bCreateDefaultMBean , StatisticActions actionLsnr ) throws StatsFactoryException { PmiModuleConfig cfg = PerfModules . getConfigFromXMLFile ( configXmlPath , actionLsnr . getCurrentBund...
Create singleton instance
24,518
public static StatsInstanceImpl createGroupInstance ( String name , StatsGroup igroup , String configXmlPath , ObjectName userProvidedMBeanObjectName , boolean bCreateDefaultMBean , StatisticActions actionLsnr ) throws StatsFactoryException { PmiModuleConfig cfg = PerfModules . getConfigFromXMLFile ( configXmlPath , ac...
Create instance under group
24,519
public SPIStatistic getStatistic ( int id ) { for ( int i = 0 ; i < _stats . length ; i ++ ) { if ( _stats [ i ] != null && _stats [ i ] . getId ( ) == id ) { return _stats [ i ] ; } } return null ; }
looping overhead in this method
24,520
protected void addUserToRole ( String user , String role ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "addUserToRole" , new Object [ ] { user , role } ) ; } Set < String > usersForTheRole = roleToUserMap . get ( role ) ; if ( usersForTheRole != null ...
Add a User to the particular role
24,521
protected void addGroupToRole ( String group , String role ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "addGroupToRole" , new Object [ ] { group , role } ) ; } Set < String > groupsForTheRole = roleToGroupMap . get ( role ) ; if ( groupsForTheRole !...
Add a Group to the particular role
24,522
protected void addAllUsersToRole ( Set < String > users , String role ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "addAllUsersToRole" , new Object [ ] { users , role } ) ; } Set < String > usersForTheRole = roleToUserMap . get ( role ) ; if ( usersF...
Add all the users to a particular role
24,523
protected void addAllGroupsToRole ( Set < String > groups , String role ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "addAllGroupsToRole" , new Object [ ] { groups , role } ) ; } Set < String > groupsForTheRole = roleToGroupMap . get ( role ) ; if ( ...
Add all the groups to a particular role
24,524
private Map < String , Object > extractOptions ( Map < String , Object > props ) { List < Map < String , Object > > optionsList = Nester . nest ( "options" , props ) ; if ( ! optionsList . isEmpty ( ) ) { Map < String , Object > options = new HashMap < String , Object > ( optionsList . get ( 0 ) . size ( ) ) ; for ( Ma...
Process the option child element store config attributes in the options map
24,525
private void setCL ( final ClassLoader cl ) { PrivilegedAction < Object > action = new PrivilegedAction < Object > ( ) { @ FFDCIgnore ( SecurityException . class ) public Object run ( ) { final Thread t = Thread . currentThread ( ) ; try { t . setContextClassLoader ( cl ) ; } catch ( SecurityException e ) { if ( t inst...
Sets the provided classloader on the current thread .
24,526
private void readObject ( java . io . ObjectInputStream in ) throws IOException , ClassNotFoundException { GetField fields = in . readFields ( ) ; classLoaderIdentifier = ( String ) fields . get ( CLASS_LOADER_IDENTIFIER , null ) ; }
Reads and deserializes the input object .
24,527
protected void dumpJFapClientStatus ( IncidentStream is ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dumpJFapClientStatus" ) ; ClientConnectionManager ccm = ClientConnectionManager . getRef ( ) ; List obc = ccm . getActiveOutboundConversationsForFfdc ( ) ; ...
This method dumps the status of any client conversations that are currently active . It does this by asking the JFap outbound connection tracker for its list of active conversations and then has a look at the conversation states . All this information is captured in the FFDC incident stream
24,528
protected void dumpJFapServerStatus ( IncidentStream is ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dumpJFapServerStatus" , is ) ; is . writeLine ( "No Server Conversation Dump" , "" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ...
This method does nothing for the client diagnostic module .
24,529
private void dumpClientConversation ( IncidentStream is , Conversation conv ) throws SIException { ClientConversationState convState = ( ClientConversationState ) conv . getAttachment ( ) ; SICoreConnection siConn = convState . getSICoreConnection ( ) ; if ( siConn == null ) { is . writeLine ( " ** No SICoreConnection...
This method dumps the particulars of a particular client conversation .
24,530
protected Map < Object , LinkedList < Conversation > > convertToMap ( final IncidentStream is , final List obc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "convertToMap" , new Object [ ] { is , obc } ) ; final Map < Object , LinkedList < Conversation > > co...
Generates a set of mappings between a Connection and the Conversations which are making use of it .
24,531
protected void activate ( Map < String , Object > properties ) throws Exception { this . host = ( String ) properties . get ( "host" ) ; Integer iiopPort = ( Integer ) properties . get ( "iiopPort" ) ; this . iiopPort = iiopPort == null ? - 1 : iiopPort ; iiopsOptions = Nester . nest ( "iiopsOptions" , properties ) ; }
Start the ORB associated with this bean instance .
24,532
public void initializeInstanceData ( String methodSign , String methodNameOnly , BeanMetaData beanMetaData , MethodInterface methodInterface , TransactionAttribute tranAttr , boolean asyncMethod ) { this . methodSignature = methodSign ; this . methodName = methodNameOnly ; this . bmd = beanMetaData ; this . ivInterface...
d140003 . 35
24,533
public List < String > getRolesAllowed ( ) { return ivRolesAllowed == null ? Collections . < String > emptyList ( ) : Arrays . asList ( ivRolesAllowed ) ; }
Return a list containing all security roles that are allowed to execute this method .
24,534
public final void forget ( ) throws XAException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "forget" , new Object [ ] { _resource , _xid } ) ; if ( tcSummary . isDebugEnabled ( ) ) Tr . debug ( tcSummary , "xa_forget" , this ) ; int rc = - 1 ; try { if ( ! _completed && _resource != null ) { if ( _state == FAILE...
The resource manager can forget all knowledge of the transaction .
24,535
public void log ( RecoverableUnitSection rus ) throws SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "log" , new Object [ ] { this , rus } ) ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "about to log stoken " + Util . toHexString ( ( ( XidImpl ) _xid ) . getStoken ( ) ) ) ; Tr . debug ( tc ,...
Write information about the resource to the transaction log
24,536
public final void destroy ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "destroy" , new Object [ ] { _resource , _xid } ) ; if ( ! _completed ) { if ( _recoveredRM != null ) { _recoveredRM . closeConnection ( ) ; _recoveredRM = null ; if ( _recovery ) { if ( _recoveryData != null ) _recoveryData . decrementCou...
Destroy the JTAXAResourceImpl object from XAResourceManager .
24,537
private List < ELResolver > _getFacesConfigElResolvers ( ) { if ( _facesConfigResolvers == null ) { ExternalContext externalContext = FacesContext . getCurrentInstance ( ) . getExternalContext ( ) ; RuntimeConfig runtimeConfig = RuntimeConfig . getCurrentInstance ( externalContext ) ; _facesConfigResolvers = runtimeCon...
Returns a List of all ELResolvers from the faces - config .
24,538
public static DistributedObjectCache getMap ( String name , Properties properties ) { final String methodName = "getMap()" ; if ( tc . isEntryEnabled ( ) ) { Tr . entry ( tc , methodName + " name: (" + name + ") properties:" + properties ) ; } if ( name == null || name . trim ( ) . length ( ) == 0 ) { throw new Illegal...
Returns the DistributedMap or DistributedNioMap instance specified by the given id using the the parameters specified in properties . If the given instance has not yet been created then a new instance is created using the parameters specified in the properties object . Use the various KEY_xxx and VALUE_xxx constants to...
24,539
private static List < URL > getBundleEmbeddedLibs ( final URL jarFileUrl ) throws IOException , PrivilegedActionException { return AccessController . doPrivileged ( new PrivilegedExceptionAction < List < URL > > ( ) { public List < URL > run ( ) throws Exception { JarFile jarFile = new JarFile ( URLDecoder . decode ( j...
Support for embedded libs in a bundle .
24,540
public String lookupVariable ( String variableName ) { String varReference = XMLConfigConstants . VAR_OPEN + variableName + XMLConfigConstants . VAR_CLOSE ; String resolvedVar = registry . resolveRawString ( varReference ) ; return varReference . equalsIgnoreCase ( resolvedVar ) ? null : resolvedVar ; }
Resolve the given variable .
24,541
public String lookupVariableDefaultValue ( String variableName ) { ConfigVariable cv = configVariables . get ( variableName ) ; return cv == null ? null : cv . getDefaultValue ( ) ; }
Returns the defaultValue from the variable definition or null if it doesn t exist .
24,542
public JwtClaims getJwtClaims ( String jwt ) throws JoseException { String methodName = "getJwtClaims" ; if ( tc . isDebugEnabled ( ) ) { Tr . entry ( tc , methodName , jwt ) ; } JwtClaims jwtclaims = new JwtClaims ( ) ; String payload = getJwtPayload ( jwt ) ; if ( payload != null ) { jwtclaims = getClaimsFromJwtPaylo...
Parses the provided JWT and returns the claims found within its payload .
24,543
private void convertJoseTypes ( JwtClaims claimsSet ) { if ( claimsSet . hasClaim ( "address" ) ) { replaceMapWithJsonObject ( "address" , claimsSet ) ; } if ( claimsSet . hasClaim ( "jwk" ) ) { replaceMapWithJsonObject ( "jwk" , claimsSet ) ; } if ( claimsSet . hasClaim ( "sub_jwk" ) ) { replaceMapWithJsonObject ( "su...
Convert the types jose4j uses for address sub_jwk and jwk
24,544
@ FFDCIgnore ( { MalformedClaimException . class } ) private void convertToList ( String claimName , JwtClaims claimsSet ) { List < String > list = null ; try { list = claimsSet . getStringListClaimValue ( claimName ) ; } catch ( MalformedClaimException e ) { try { String value = claimsSet . getStringClaimValue ( claim...
Converts the value for the specified claim into a String list .
24,545
private void configureResolverForJSP ( JspApplicationContext appCtx , RuntimeConfig runtimeConfig ) { FacesCompositeELResolver facesCompositeELResolver = new FacesCompositeELResolver ( Scope . JSP ) ; appCtx . addELResolver ( facesCompositeELResolver ) ; PhaseListener resolverForJSPInitializer = new ResolverForJSPIniti...
Register a phase listener to every lifecycle . This listener will lazy fill the el resolver for jsp as soon as the first lifecycle is executed . This is necessarry to allow a faces application further setup after MyFaces has been initialized . When the first request is processed no further configuation of the el resolv...
24,546
private Cookie logInAndObtainCookie ( String testName , WebClient webClient , String protectedUrl , String username , String password , String cookieName , Expectations expectations ) throws Exception { Page response = invokeProtectedUrlAndValidateResponse ( testName , webClient , protectedUrl , expectations ) ; doForm...
Accesses the protected resource and logs in successfully ensuring that the expected cookie is included in the result .
24,547
public long toLong ( ) { long result = 0 ; byte [ ] uuidBytes = super . toByteArray ( ) ; for ( int i = 0 ; i < 8 ; i ++ ) { result = result << 8 ; result += ( int ) uuidBytes [ i ] ; } return result ; }
Return a long representing the SIBUuid8 .
24,548
public static void transform ( InputStream XMLStream , OutputStream JSONStream , boolean verbose ) throws SAXException , IOException { if ( logger . isLoggable ( Level . FINER ) ) { logger . entering ( className , "transform(InputStream, OutputStream)" ) ; } if ( XMLStream == null ) { throw new NullPointerException ( "...
Method to do the transform from an XML input stream to a JSON stream . Neither input nor output streams are closed . Closure is left up to the caller .
24,549
public static String transform ( File xmlFile , boolean verbose ) throws SAXException , IOException { if ( logger . isLoggable ( Level . FINER ) ) { logger . exiting ( className , "transform(InputStream, boolean)" ) ; } FileInputStream fis = new FileInputStream ( xmlFile ) ; String result = null ; result = transform ( ...
Method to take an XML file and return a String of the JSON format .
24,550
@ Reference ( cardinality = ReferenceCardinality . MULTIPLE , policyOption = ReferencePolicyOption . GREEDY ) protected synchronized void setCustomUserRegistry ( com . ibm . websphere . security . UserRegistry externalUserRegistry , Map < String , Object > props ) { String id = getId ( props ) ; customUserRegistries . ...
Method will be called for each com . ibm . websphere . security . UserRegistry that is registered in the OSGi service registry . We maintain an internal set of these for easy access .
24,551
protected synchronized void unsetCustomUserRegistry ( Map < String , Object > props ) { String id = getId ( props ) ; customUserRegistries . remove ( id ) ; ServiceRegistration < UserRegistry > registration = registrynRegistrationsToUnregister . remove ( id ) ; if ( registration != null ) { registration . unregister ( ...
Method will be called for each com . ibm . websphere . security . UserRegistry that is unregistered in the OSGi service registry . We must remove this instance from our internal set of listeners .
24,552
@ ProbeSite ( clazz = "com.ibm.ejs.j2c.FreePool" , method = "queueRequest" ) public void waitTimeEntry ( ) { if ( tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "waitTimeEntry" ) ; } tlocalforwtTime . set ( System . currentTimeMillis ( ) ) ; if ( tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "waitTimeEntry" ) ; } }
Code which sets the entry time for queueRequest for wait time . We set it in ThreadLocal variable
24,553
private AuthenticationResult handleFormLogin ( HttpServletRequest req , HttpServletResponse res , WebRequest webRequest ) { AuthenticationResult authResult = null ; authResult = ssoAuthenticator . authenticate ( webRequest ) ; if ( authResult != null ) { authResult . setAuditCredType ( AuditEvent . CRED_TYPE_FORM ) ; }...
This method handle formlogin ; If the SSO cookie exist then it will use the cookie to authenticate . If the cookie does not exist then it will re - redirect to the login page .
24,554
private AuthenticationResult handleRedirect ( HttpServletRequest req , HttpServletResponse res , WebRequest webRequest ) { AuthenticationResult authResult ; String loginURL = getFormLoginURL ( req , webRequest , webAppSecurityConfig ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . d...
This method save post parameters in the cookie or session and redirect to a login page .
24,555
private void filterDirectory ( List < String > dirContent , DirPattern dirPattern , String parentPath ) throws IOException { File workingDirectory = new File ( source , parentPath ) ; if ( workingDirectory . exists ( ) ) { File [ ] dirListing = workingDirectory . listFiles ( ) ; if ( dirListing != null ) { for ( int i ...
filter the directory according to the dir pattern
24,556
public final void start ( long loaderInterval , JsMessagingEngine jsme ) throws MessageStoreRuntimeException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "start" , Long . valueOf ( loaderInterval ) ) ; messagingEngine = jsme ; if ( loaderInterval >= 0 ) { inte...
Start the CacheLoader daemon .
24,557
public final void stop ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "stop" ) ; synchronized ( alarmLock ) { if ( enabled ) { loaderStopTime = timeNow ( ) ; enabled = false ; shutdown = true ; } if ( loaderAlarm != null ) { loaderAlarm . cancel ( ) ; loader...
Stop the CacheLoader daemon .
24,558
private int saveStartTime ( long time ) { int indexUsed = diagIndex ; cycleTime [ diagIndex ++ ] = time ; if ( diagIndex >= MAX_DIAG_LOG ) { diagIndex = 0 ; } return indexUsed ; }
Keep last n cycle start times for diagnostic dump .
24,559
private Alarm scheduleAlarm ( long timeOut ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "scheduleAlarm timeOut=" + timeOut ) ; Alarm alarm = AlarmManager . createNonDeferrable ( timeOut , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntry...
Schedule the next alarm .
24,560
public SICoreConnection getSICoreConnection ( ) throws SIConnectionLostException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getSICoreConnection" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Buil...
Returns the SICoreConnection associated with this connection . The actual proxy object will have been created and saved in the conversation state when the server returned us the information about the connection . So here we just retrieve it and return it .
24,561
public void sendMFPSchema ( byte [ ] schemaData ) throws SIConnectionLostException , SIConnectionDroppedException , SIConnectionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "sendMFPSchema" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) ...
Attempts to send an MFP message schema to the peer at the highest possible priority . At Message encode time MFP can discover that the destination entity cannot decode the message about to be sent . This method is then called to send a top priority transmission containing the message schema ahead of the message relying...
24,562
public void close ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "close" ) ; try { Conversation conv = getConversation ( ) ; if ( conv != null ) conv . close ( ) ; } catch ( SIConnectionLostException e ) { FFDCFilter . processException ( e , CLASS_NAME + ".c...
Performs a controlled close of this connection . It is not valid to invoke this method whilst within connect processing . If possible a close request is proporgated to the remote peer associated with this ClientConnection .
24,563
public void connectionClosed ( Object linkLevelAttachement ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "connectionClosed" , linkLevelAttachement ) ; try { CompHandshake ch = ( CompHandshake ) CompHandshakeFactory . getInstance ( ) ; ch . compClose ( this ) ...
Called when the JFap channel has closed the underlying connection . At this point we can inform MFP so that they can delete the schema information that refered to this connection .
24,564
public byte [ ] requestMFPSchemata ( byte [ ] schemaData ) throws SIConnectionLostException , SIConnectionDroppedException , SIConnectionUnavailableException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "requestMFPSchemata" ) ; if ( TraceCom...
Used to synchronously request an MFP schema from the server . This code will block until the server replies with the requested data .
24,565
public void setSchemaSet ( ConnectionSchemaSet schemaSet ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setSchemaSet" , schemaSet ) ; getConversation ( ) . setSchemaSet ( schemaSet ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) )...
setSchemaSet Sets the schemaSet in the underlying Connection .
24,566
public ConnectionSchemaSet getSchemaSet ( ) throws SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getSchemaSet" ) ; ConnectionSchemaSet result = getConversation ( ) . getSchemaSet ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) ...
getSchemaSet Returns the MFP SchemaSet which pertains to the underlying Connection .
24,567
private static String toDigest ( String input ) { md . reset ( ) ; try { md . update ( input . getBytes ( "UTF-8" ) ) ; } catch ( UnsupportedEncodingException e ) { } String result = com . ibm . ws . common . internal . encoder . Base64Coder . base64EncodeToString ( md . digest ( ) ) ; return result ; }
store as digests to save space
24,568
protected ObjectManagerByteArrayOutputStream [ ] getBuffers ( ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "getBuffers" ) ; ObjectManagerByteArrayOutputStream [ ] buffers = new ObjectManagerByteArrayOutputStream [ 1 ] ; buffers ...
Gives back the serialized LogRecord as an arrays of bytes .
24,569
private Exception mapCSIException ( EJSDeployedSupport s , CSIException e ) throws CSIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "mapCSIException: " + e ) ; } Exception mappedException = null ; String message = " " ; RemoteException rex ; if ( e instanceof...
150727 - rewrote most of this method and changed signature .
24,570
private Exception mapEJBException ( EJSDeployedSupport s , EJBException e ) throws CSIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "mapEJBException: " + e ) ; } Exception mappedException = null ; String message = " " ; RemoteException rex ; if ( e instanceof...
150727 - added entire method .
24,571
public Token getFirst ( Transaction transaction ) throws ObjectManagerException { Iterator iterator = iterator ( ) ; return ( Token ) iterator . next ( transaction ) ; }
Retrieves but does not delete the first entry in the list visible to a transaction .
24,572
public static String addParameters ( ExternalContext externalContext , String url , boolean addRequestParameter , boolean addPageParameter , boolean encodeValues ) { StringBuilder finalUrl = new StringBuilder ( url ) ; boolean existingParameters = url . contains ( "?" ) ; boolean urlContainsWindowId = url . contains ( ...
Adds the current request - parameters to the given url
24,573
public Object next ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "next" ) ; } Object result ; if ( hasNext ( ) ) { AnycastInputHandler aih = ( AnycastInputHandler ) anycastIHIterator . next ( ) ; result = aih . getControlAdapter ( ) ; } else { result = null ; } if ( tc . isEntryEnabled ( ) ) { SibTr . exi...
This method returns the attached remote subscriber control or null if there isn t one .
24,574
public int discriminate ( VirtualConnection vc , Object discrimData , ConnectionLink prevChannelLink ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "discriminate: " + vc ) ; } ConnectionLink nextChannelLink = nextChannel . getConnectionLink ( vc ) ; prevChannelLink . ...
Use a VirtualConnection rather than a InboundVirtualConnection for discrimination
24,575
protected MetaRuleset createMetaRuleset ( Class type ) { ParameterCheck . notNull ( "type" , type ) ; return new MetaRulesetImpl ( this . tag , type ) ; }
Extend this method in order to add your own rules .
24,576
public void setThrown ( Throwable thrown ) { if ( thrown != null ) { super . setThrown ( thrown ) ; this . ivStackTrace = DataFormatHelper . throwableToString ( thrown ) ; } }
Set a throwable associated with the log event .
24,577
public static WsLogRecord createWsLogRecord ( TraceComponent tc , Level level , String msg , Object [ ] msgParms ) { WsLogRecord retMe = new WsLogRecord ( level , msg ) ; retMe . setLoggerName ( tc . getName ( ) ) ; retMe . setParameters ( msgParms ) ; retMe . setTraceClass ( tc . getTraceClass ( ) ) ; retMe . setResou...
Static method constructs a WsLogRecord object using the given parameters . This bridges Tr - based trace and Logger based trace
24,578
public boolean isCancelled ( ) { if ( svLogger . isLoggable ( Level . FINER ) ) svLogger . logp ( Level . FINER , CLASS_NAME , "isCancelled" , toString ( ) ) ; return ( ivCancellationException != null ) ; }
This method allows clients to check the Future object to see if the asynchronous method was canceled before it got a chance to execute .
24,579
private Object waitForResult ( long timeoutMillis ) throws ExecutionException , InterruptedException , TimeoutException , RemoteException { final boolean isTraceOn = svLogger . isLoggable ( Level . FINER ) ; if ( isTraceOn ) svLogger . entering ( CLASS_NAME , "waitForResult" , Long . valueOf ( timeoutMillis ) ) ; long ...
Waits for a result using RemoteAsyncResultExtended .
24,580
public void prepare ( ) throws SIDiscriminatorSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "prepare" ) ; patternIsWildcarded = mpm . isWildCarded ( destinationNamePatternString ) ; if ( patternIsWildcarded ) { wildcardStem = mpm . retrieveNonWildcardS...
If a pattern is wildcarded we csn parse it up front .
24,581
public boolean match ( String destinationName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "match" , destinationName ) ; boolean matches = false ; if ( ! patternIsWildcarded ) { matches = destinationName . equals ( destinationNamePatternString ) ; } else { if ( des...
Match a string against the pattern represented by this object .
24,582
protected final SQLRecoverableException createClosedException ( String ifc ) { String message = AdapterUtil . getNLSMessage ( "OBJECT_CLOSED" , ifc ) ; return new SQLRecoverableException ( message , "08003" , 0 ) ; }
Create an SQLRecoverableException if exception mapping is enabled or SQLRecoverableException if exception mapping is disabled .
24,583
Object invokeOperation ( Object implObject , Method method , Object [ ] args ) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException , SQLException { TraceComponent tc = getTracer ( ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "invoking " + AdapterUtil . toString ( implObje...
Invokes a method on the specified object . The data source must override this method to account for dynamic configuration changes .
24,584
public boolean isWrapperFor ( Class < ? > interfaceClass ) throws SQLException { TraceComponent tc = getTracer ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "isWrapperFor" , interfaceClass ) ; boolean isWrapper ; try { activate ( ) ; isWrapper = interfaceClass . isInterface ( ) && ( interfaceClass . isI...
Finds out if unwrap can be successfully invoked for the specified interface .
24,585
@ SuppressWarnings ( "unchecked" ) public < T > T unwrap ( final Class < T > interfaceClass ) throws SQLException { TraceComponent tc = getTracer ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "unwrap" , interfaceClass ) ; activate ( ) ; Object result ; if ( interfaceClass . isInstance ( this ) ) result ...
Return a class that implements the requested interface if possible .
24,586
private String getRealmName ( ) { String realm = "defaultRealm" ; try { UserRegistry ur = RegistryHelper . getUserRegistry ( null ) ; if ( ur != null ) { String r = ur . getRealm ( ) ; if ( r != null ) { realm = r ; } } } catch ( Exception ex ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ...
Obtains the realm name of the configured UserRegistry if one is available .
24,587
static String getContextName ( String name ) { int index = name . lastIndexOf ( '/' ) ; return index == - 1 ? "" : name . substring ( 0 , index ) ; }
Return the context
24,588
public void bind ( String name , T binding ) { put ( name , binding ) ; Map < String , Map < String , NameClassPair > > bindingsByContext = this . contextBindings ; if ( bindingsByContext != null ) { addContextBinding ( bindingsByContext , name , binding ) ; } Set < String > contexts = this . contexts ; if ( contexts !...
Adds a binding .
24,589
public T lookup ( String name ) throws NamingException { T binding = super . get ( name ) ; if ( binding != null ) { return binding ; } String contextName = name ; while ( ! ( contextName = getContextName ( contextName ) ) . isEmpty ( ) ) { if ( containsKey ( contextName ) ) { throw new NotContextException ( namespace ...
Looks up a binding .
24,590
public void setEnterpriseBean ( Object bean ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setEnterpriseBean : " + Util . identity ( bean ) ) ; ivEjbInstance = bean ; }
Set the actual bean instance . The instance variable should only be set by this method allowing subclasses to override and perform additional setup when the instance is set .
24,591
private void createInterceptors ( InterceptorMetaData imd ) { ivInterceptors = new Object [ imd . ivInterceptorClasses . length ] ; try { imd . createInterceptorInstances ( getInjectionEngine ( ) , ivInterceptors , ivEjbManagedObjectContext , this ) ; } catch ( Throwable t ) { FFDCFilter . processException ( t , CLASS_...
Creates and the interceptor instances for the bean .
24,592
protected void injectInstance ( ManagedObject < ? > managedObject , Object instance , InjectionTargetContext injectionContext ) throws EJBException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "injectInstance : " + Util . identity (...
Performs resource injection for the managed object instance .
24,593
protected void createInterceptorsAndInstance ( CallbackContextHelper contextHelper ) throws InvocationTargetException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createInterceptorsAndInstance : " + contextHelper ) ; BeanMetaData b...
Method for creating interceptors prior to the creation of the bean instance in case
24,594
private void createInstance ( ) throws InvocationTargetException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createInstance" ) ; ManagedObjectFactory < ? > ejbManagedObjectFactory = home . beanMetaData . ivEnterpriseBeanFactory ; ...
Creates the bean instance using either the ManagedObjectFactory or constructor .
24,595
@ SuppressWarnings ( "unchecked" ) private void createInstanceUsingMOF ( ManagedObjectFactory < ? > ejbManagedObjectFactory ) throws InvocationTargetException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createInstanceUsingMOF" ) ;...
Creates the bean instance using either the ManagedObjectFactory .
24,596
private void createInstanceUsingConstructor ( ) throws InvocationTargetException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createInstanceUsingConstructor" ) ; try { if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "...
Creates the bean instance using the constructor .
24,597
private void optimize ( final Subject subject ) { if ( System . getSecurityManager ( ) == null ) subject . setReadOnly ( ) ; else AccessController . doPrivileged ( new PrivilegedAction < Void > ( ) { public Void run ( ) { subject . setReadOnly ( ) ; return null ; } } ) ; }
To optimize the subject the subject must be marked as read only and be placed in the cache .
24,598
private synchronized void start ( ) { if ( scheduledFuture == null && monitorState . get ( ) == MonitorState . ACTIVE . ordinal ( ) && ! updateMonitors . isEmpty ( ) && monitorInterval != 0 && FrameworkState . isValid ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this...
Start monitoring the file collection
24,599
private boolean doDestroy ( ) { if ( scanLock . tryLock ( ) ) { try { if ( monitorState . compareAndSet ( MonitorState . DESTROY . ordinal ( ) , MonitorState . DESTROYED . ordinal ( ) ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "Destroy file monitor" ) ; }...
Will actually destroy the monitors if and only if the monitor state has already been set to DESTROY .