idx int64 0 41.2k | question stringlengths 83 4.15k | target stringlengths 5 715 |
|---|---|---|
41,000 | private SIBusMessage [ ] _readAndDeleteSet ( SIMessageHandle [ ] msgHandles , SITransaction tran ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SILimitExceededException , SIIncorrect... | Actually performs the read and delete . |
41,001 | public static Object [ ] generateMsgParms ( Object parm1 , Object parm2 , Object parm3 , Object parm4 , Object parm5 , Object parm6 , Object parm7 ) { Object parms [ ] = new Object [ 7 ] ; parms [ 0 ] = parm1 ; parms [ 1 ] = parm2 ; parms [ 2 ] = parm3 ; parms [ 3 ] = parm4 ; parms [ 4 ] = parm5 ; parms [ 5 ] = parm6 ;... | Create an object array to be used as parameters to be passed to a message . |
41,002 | private void scan ( ) { if ( ivScanned ) { return ; } ivScanned = true ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; for ( Class < ? > klass = ivClass ; klass != null && klass != Object . class ; klass = klass . getSuperclass ( ) ) { if ( isTraceOn && ( tc . isDebugEnabled ( ) || tcMetaData . i... | Scan the bytecode of all classes in the hierarchy unless already done . |
41,003 | public Method getBridgeMethodTarget ( Method method ) { scan ( ) ; if ( ivBridgeMethodMetaData == null ) { return null ; } BridgeMethodMetaData md = ivBridgeMethodMetaData . get ( getNonPrivateMethodKey ( method ) ) ; return md == null ? null : md . ivTarget ; } | Get the target method of a bridge method or null if not found |
41,004 | public boolean isInElementSet ( Set < String > skipList , Class < ? > excClass ) throws ClassNotFoundException { boolean retVal = false ; ClassLoader tccl = Thread . currentThread ( ) . getContextClassLoader ( ) ; for ( String value : skipList ) { Class < ? > clazz = tccl . loadClass ( value ) ; if ( clazz . isAssignab... | Determines if the given exception is a subclass of an element |
41,005 | public void updated ( Dictionary < ? , ? > props ) { String value = ( String ) props . get ( PROP_IDNAME ) ; if ( null != value ) { this . idName = value . trim ( ) ; } value = ( String ) props . get ( PROP_USE_URLS ) ; if ( null != value && Boolean . parseBoolean ( value . trim ( ) ) ) { this . urlRewritingMarker = ";... | Session configuration has been updated with the provided properties . |
41,006 | public synchronized void run ( ) { clientSupport = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "run : cached ClientSupport reference cleared" ) ; } } | Scheduled Runnable implementation to reset the ClientSupport so that it will be obtained again later in case the server is restarted . |
41,007 | public boolean isProtected ( ) { List < String > requiredRoles = null ; return ! webRequest . isUnprotectedURI ( ) && webRequest . getMatchResponse ( ) != null && ( requiredRoles = webRequest . getRequiredRoles ( ) ) != null && ! requiredRoles . isEmpty ( ) ; } | The request is protected if there are required roles or it s not mapped everyones role |
41,008 | protected Object performInvocation ( Exchange exchange , Object serviceObject , Method m , Object [ ] paramArray ) throws Exception { paramArray = insertExchange ( m , paramArray , exchange ) ; return this . libertyJaxRsServerFactoryBean . performInvocation ( exchange , serviceObject , m , paramArray ) ; } | using LibertyJaxRsServerFactoryBean . performInvocation to support POJO EJB CDI resource |
41,009 | @ FFDCIgnore ( value = { SecurityException . class , IllegalAccessException . class , IllegalArgumentException . class , InvocationTargetException . class } ) private void callValidationMethod ( String methodName , Object [ ] paramValues , Object theProvider ) { if ( theProvider == null ) { return ; } Method m = cxfBea... | call validation method ignore the exception to pass the FAT |
41,010 | public static < T > T findFirstNextByType ( FaceletHandler nextHandler , Class < T > type ) { if ( type . isAssignableFrom ( nextHandler . getClass ( ) ) ) { return ( T ) nextHandler ; } else if ( nextHandler instanceof javax . faces . view . facelets . CompositeFaceletHandler ) { for ( FaceletHandler handler : ( ( jav... | Find the first occurence of a tag handler that is instanceof T |
41,011 | public static boolean tryToClose ( Closeable closeable ) { Object token = ThreadIdentityManager . runAsServer ( ) ; try { if ( closeable != null ) { try { closeable . close ( ) ; return true ; } catch ( IOException e ) { } } } finally { ThreadIdentityManager . reset ( token ) ; } return false ; } | Close the closeable object |
41,012 | private static void setDefaultDiscoveryProperties ( ) { defaultDiscoveryProperties . put ( KEY_OIDC_RESPONSE_TYPES_SUPP , new String [ ] { "code" , "token" , "id_token token" } ) ; defaultDiscoveryProperties . put ( KEY_OIDC_SUB_TYPES_SUPP , new String [ ] { "public" } ) ; defaultDiscoveryProperties . put ( KEY_OIDC_ID... | Should model what is set as default in the oidc . server metatype . xml |
41,013 | public void populateCustomRequestParameterMap ( ConfigurationAdmin configAdmin , HashMap < String , String > paramMapToPopulate , String [ ] configuredCustomRequestParams , String configAttrName , String configAttrValue ) { if ( configuredCustomRequestParams == null ) { return ; } for ( String configuredParameter : con... | Populates a map of custom request parameter names and values to add to a certain OpenID Connect request type . |
41,014 | public void stopModule ( EJBModuleMetaDataImpl mmd ) { try { uninstall ( mmd , false ) ; } catch ( Throwable t ) { FFDCFilter . processException ( t , CLASS_NAME + ".stop" , "3059" , this ) ; throw new ContainerEJBException ( "Failed to stop - caught Throwable" , t ) ; } } | Stops an EJB module . |
41,015 | protected void bindInterfaces ( NameSpaceBinder < ? > binder , BeanMetaData bmd ) throws Exception { HomeWrapperSet homeSet = null ; EJSHome home = bmd . homeRecord . getHome ( ) ; if ( home != null ) { homeSet = home . getWrapperSet ( ) ; } int numRemoteInterfaces = countInterfaces ( bmd , false ) ; int numLocalInterf... | Bind all local and remote interfaces for a bean to all binding locations . |
41,016 | private int countInterfaces ( BeanMetaData bmd , boolean local ) { String homeInterfaceClassName = local ? bmd . localHomeInterfaceClassName : bmd . homeInterfaceClassName ; boolean hasLocalBean = local && bmd . ivLocalBean ; String [ ] businessInterfaceNames = local ? bmd . ivBusinessLocalInterfaceClassNames : bmd . i... | Determine the number of remote or local interfaces exposed by a bean . |
41,017 | private void bindInterfaces ( NameSpaceBinder < ? > binder , BeanMetaData bmd , HomeWrapperSet homeSet , boolean local , int numInterfaces , boolean singleGlobalInterface ) throws NamingException , RemoteException , CreateException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn &&... | Bind all interfaces for a bean to all binding locations . |
41,018 | private < T > void bindInterface ( NameSpaceBinder < T > binder , HomeRecord hr , HomeWrapperSet homeSet , int numInterfaces , boolean singleGlobalInterface , String interfaceName , int interfaceIndex , boolean local ) throws NamingException , RemoteException , CreateException { final boolean isTraceOn = TraceComponent... | Bind a single interface to all binding locations . |
41,019 | protected void bindAllRemoteInterfacesToContextRoot ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "bindAllRemoteInterfacesToContextRoot" ) ; Map < EJBModuleMetaDataImpl , NameSpaceBinder < ? > > binders = new HashMap < EJBModuleM... | Bind the remote interfaces for all beans known to the container . |
41,020 | protected void addHome ( BeanMetaData bmd ) throws ContainerException { try { EJSContainer . homeOfHomes . addHome ( bmd ) ; } catch ( Throwable ex ) { ContainerException ex2 = new ContainerException ( ex ) ; Tr . error ( tc , "CAUGHT_EXCEPTION_THROWING_NEW_EXCEPTION_CNTR0035E" , new Object [ ] { ex , ex2 . toString ( ... | Adds a home to make it externally accessible . |
41,021 | protected EJSHome initializeDeferredEJBImpl ( HomeRecord hr ) throws ContainerException , EJBConfigurationException { BeanMetaData bmd = hr . getBeanMetaData ( ) ; Object originalLoader = ThreadContextAccessor . UNCHANGED ; try { if ( ! bmd . fullyInitialized ) { originalLoader = svThreadContextAccessor . pushContextCl... | Actually initializes the deferred EJB . Assumes that a runtime thread context has already been established . |
41,022 | protected ReferenceContext createReferenceContext ( BeanMetaData bmd ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createReferenceContext: " + bmd . j2eeName ) ; if ( bmd . ivReferenceContext == null ) { bmd . ivReferenceContext =... | Creates the reference context for this EJB . |
41,023 | private void finishBMDInit ( BeanMetaData bmd ) throws ContainerException , EJBConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "finishBMDInit: " + bmd . j2eeName ) ; createReferenceContext ( bmd ) ; ivEJBMDOrchestrator . finishBMDInitWithReferenceCon... | Fully initialize the BeanMetaData . When this method completes successfully bmd . fullyInitialized will be true ; this method must not be called if this field is already true . The context class loader must be the runtime class loader when calling this method . |
41,024 | public ComponentNameSpaceConfiguration finishBMDInitForReferenceContext ( BeanMetaData bmd ) throws EJBConfigurationException , ContainerException { return ivEJBMDOrchestrator . finishBMDInitForReferenceContext ( bmd , ivDefaultDataSourceJNDIName , ivWebServicesHandlerResolver ) ; } | Finish filling out enough of the bean metadata to be able to create the component namespace configuration for the bean . The context class loader must be the runtime class loader when calling this method . |
41,025 | private EJSHome fireMetaDataCreatedAndStartBean ( BeanMetaData bmd ) throws ContainerException { if ( ! bmd . isManagedBean ( ) ) { try { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "startBean: Fire Component Metadata created event to listeners for: " + bmd . j2eeName ) ... | Starts the bean by creating a home instance via the container . When this method completes successfully bmd . homeRecord . homeInternal will be set to indicate that this home is started ; this method must not be called if this field is already set . The context class loader must be the bean class loader when calling th... |
41,026 | protected int createNonPersistentAutomaticTimers ( String appName , String moduleName , List < AutomaticTimerBean > timerBeans ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createNonPersistentAutomaticTimers: " + moduleName ) ; in... | F743 - 506 RTC109678 |
41,027 | protected Timer createNonPersistentCalendarTimer ( BeanO beanO , ParsedScheduleExpression parsedExpr , Serializable info ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . entry ( tc , "createNonPersistentCalendarTimer : "... | Creates a non - persistent calendar based EJB timer . |
41,028 | private synchronized final boolean _declareDiscardable ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "_declareDiscardable" ) ; boolean linkHasBecomeReleasable = false ; if ( _isStorageManaged ) { if ( ! _itemIsDiscardableIfPersistentRepresentationStable ) {... | The state has changed so that the item could be discarded if it has a stable persistent representation . Change the flags that control the discard and return true if this call has resulted in a change to the releasable state . |
41,029 | private synchronized final boolean _declareNotDiscardable ( AbstractItem item ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "_declareNotDiscardable" ) ; boolean notifyRequired = false ; _strongReferenceToItem = item ; if ( _itemIsDiscardableIfPersistentRepres... | The state has changed so that the item must not be discarded regardless of whether it has a stable persistent representation . Change the flags that control the discard and return true if this call has resulted in a change to the releasable state . |
41,030 | private final AbstractItem _getAndAssertItem ( ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "_getAndAssertItem" ) ; AbstractItem item = null ; synchronized ( this ) { item = _strongReferenceToItem ; } if ( item == NULL_STRONG_REF ... | Gets a reference to the item which is asserted to be obtained from the strong reference . We use this when we know that the state of the item tells us that there is a strong reference . |
41,031 | public final void persistRedeliveredCount ( int redeliveredCount ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "persistRedeliveredCount" ) ; PersistentTransaction msTran = ( PersistentTransaction ) getMessageStore ( ) . getT... | Use this to persist redelivered count . Invoke indirectly by the API . This method uses auto - commit transaction to perform the task of persisting the redelivered count . This does not involve any external participants . Therefore this operation does not require maintaining transaction states . |
41,032 | final void cmdAdd ( final LinkOwner stream , long lockID , final PersistentTransaction transaction ) throws StreamIsFull , ProtocolException , TransactionException , SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "cmdAdd" , new Object... | Set the state to adding |
41,033 | final void cmdRemoveExpiring ( final long lockId , final PersistentTransaction transaction ) throws ProtocolException , TransactionException , SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "cmdRemoveExpiring" , new Object [ ] { "Item... | Remove while locked for expiry |
41,034 | private synchronized final boolean isStateLocked ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "isStateLocked" ) ; SibTr . exit ( this , tc , "isStateLocked" , _itemLinkState ) ; } if ( _itemLinkState == ItemLinkState . STATE_LOCKED ) { return true ; } el... | Simple function to check if the item link state is in ItemLinkState . STATE_LOCKED . Seperate function is created to acquire the lock |
41,035 | public final AbstractItem getItem ( ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getItem" ) ; AbstractItem item = _getItemNoRestore ( ) ; synchronized ( this ) { if ( isExpired ( ) ) { item = null ; } else { if ( null == i... | When the item is required the hard and soft references are examined to detect an existing item in memory . If there is one then this item is used . If the item does not have a hard or soft reference but does have a persistent representation then we attempt to restore the item from its persistent representation . If we ... |
41,036 | private final void setInMemoryItemSize ( AbstractItem item ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setInMemoryItemSize" , item ) ; if ( item != null ) { _inMemoryItemSize = item . getInMemoryDataSize ( ) ; } else { _inMemoryItemSize = _tuple . getPersi... | setInMemoryItemSize Set the _inMemoryItemSize from the Item itself if we have one or from what we can find out from the Tuple . Also set the corresponding value in the Tuple . |
41,037 | final boolean isExpired ( ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isExpired" ) ; if ( isAvailable ( ) && internalCanExpire ( ) ) { long expiryTime = _tuple . getExpiryTime ( ) ; if ( expiryTime != 0 && expiryTime <= E... | Establish whether the item has reached its expiry time and if so query it to see if it is willing to expire . If so set the state accordingly and lock the item for expiry . |
41,038 | public final AbstractItem matches ( final Filter filter , boolean allowUnavailable ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "matches" , new Object [ ] { filter , Boolean . valueOf ( allowUnavailable ) } ) ; AbstractItem... | Version used by browse cursor as it can be set to allow matching unavailable items to be seen . |
41,039 | public final void persistLock ( final Transaction transaction ) throws ProtocolException , TransactionException , SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "persistLock" , transaction ) ; if ( null != transaction ) { PersistentTr... | Use this to lock persistently . Invoke indirectly by the API . |
41,040 | public final List < DataSlice > readDataFromPersistence ( ) throws SevereMessageStoreException { List < DataSlice > dataSlices ; PersistentMessageStore pm = getMessageStoreImpl ( ) . getPersistentMessageStore ( ) ; try { dataSlices = pm . readDataOnly ( getTuple ( ) ) ; } catch ( PersistenceException pe ) { com . ibm .... | Feature SIB0112le . ms . 1 |
41,041 | public final void releaseItem ( ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "releaseItem" ) ; synchronized ( this ) { _strongReferenceToItem = NULL_STRONG_REF ; } if ( _softReferenceToItem != null ) { _softReferenceToItem . clear... | Releases all references to the item as a result of the final removal of the item from the MS |
41,042 | public final void releaseIfDiscardable ( ) throws SevereMessageStoreException { boolean unlink = false ; if ( isStoreNever ( ) ) { synchronized ( this ) { if ( ItemLinkState . STATE_AVAILABLE == _itemLinkState ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "re... | This is the callback from the item cache to indicate that the discardable item should be freed . It s only used to remove STORE_NEVER items from the MS when the cache of these items is full . |
41,043 | public final AbstractItem removeIfMatches ( final Filter filter , PersistentTransaction transaction ) throws ProtocolException , TransactionException , SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "removeIfMatches" , new Object [ ] ... | remove the item if it matches and is available |
41,044 | private Lifecycle _getLifecycle ( FacesContext facesContext ) { LifecycleFactory factory = ( LifecycleFactory ) FactoryFinder . getFactory ( FactoryFinder . LIFECYCLE_FACTORY ) ; String id = facesContext . getExternalContext ( ) . getInitParameter ( FacesServlet . LIFECYCLE_ID_ATTR ) ; if ( id == null ) { id = Lifecycl... | Gets the current Lifecycle instance from the LifecycleFactory |
41,045 | private boolean locationInOutputDir ( String location ) { String expandedOutputLocation = cfgSvc . resolveString ( LibertyConstants . DEFAULT_OUTPUT_LOCATION ) ; return location . startsWith ( LibertyConstants . DEFAULT_OUTPUT_LOCATION ) || location . startsWith ( expandedOutputLocation ) ; } | Determines if the location is rooted in the server s output location . |
41,046 | private void setLocation ( String _location ) { String res = null ; File resFile = null ; boolean relativePath = true ; boolean defaultPath = false ; try { res = cfgSvc . resolveString ( _location ) ; resFile = new File ( res ) ; relativePath = ! resFile . isAbsolute ( ) ; } catch ( IllegalStateException e ) { } if ( r... | Set the physical location of this store to the input value . This method will resolve all symbolic names in the location . If location is just a file name then we assume its location is the LibertyConstants . DEFAULT_CONFIG_LOCATION . |
41,047 | private void setFileBased ( Boolean flag ) { this . fileBased = flag ; setProperty ( Constants . SSLPROP_KEY_STORE_FILE_BASED , flag . toString ( ) ) ; } | Set the flag on whether this keystore is filebased or not to the input value . |
41,048 | private void setReadOnly ( Boolean flag ) { this . readOnly = flag ; setProperty ( Constants . SSLPROP_KEY_STORE_READ_ONLY , flag . toString ( ) ) ; } | Set the flag on whether this keystore is read only to the input flag . |
41,049 | private void setInitializeAtStartup ( Boolean flag ) { this . initializeAtStartup = flag ; setProperty ( Constants . SSLPROP_KEY_STORE_INITIALIZE_AT_STARTUP , flag . toString ( ) ) ; } | Set the flag on whether this keystore should initialize at startup . |
41,050 | public String getLocation ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "getLocation -> " + location ) ; } return this . location ; } | Query the location of this keystore . |
41,051 | public long getPollingRate ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getPollingRate returning " + pollingRate ) ; return this . pollingRate ; } | Query the monitor interval |
41,052 | public String getTrigger ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getTrigger returning " + trigger ) ; return this . trigger ; } | Query the file monitoring trigger |
41,053 | public KeyStore getKeyStore ( boolean reinitialize , boolean createIfNotPresent ) throws Exception { if ( myKeyStore == null || reinitialize ) { myKeyStore = do_getKeyStore ( reinitialize , createIfNotPresent ) ; } return myKeyStore ; } | Get the key store wrapped by this object . |
41,054 | public void store ( ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "store" ) ; try { String name = getProperty ( Constants . SSLPROP_KEY_STORE_NAME ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Storing... | Store the current information into the wrapped keystore . |
41,055 | public void initializeKeyStore ( boolean reinitialize ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "initializeKeyStore" ) ; try { String initAtStartup = getProperty ( Constants . SSLPROP_KEY_STORE_INITIALIZE_AT_STARTUP ) ; boolean createIfMissing = Li... | Initialize the wrapped keystore . |
41,056 | public void provideExpirationWarnings ( int daysBeforeExpireWarning , String keyStoreName ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "provideExpirationWarnings" , Integer . valueOf ( daysBeforeExpireWarning ) ) ; KeyStore keystore = getKeyStore ( fa... | Cycle through the keystore looking for expired certificates . Print a warning for any certificates that are expired or will expire during the input interval . |
41,057 | public void printWarning ( int daysBeforeExpireWarning , String keyStoreName , String alias , X509Certificate cert ) { try { long millisDelta = ( ( ( ( daysBeforeExpireWarning * 24L ) * 60L ) * 60L ) * 1000L ) ; long millisBeforeExpiration = cert . getNotAfter ( ) . getTime ( ) - System . currentTimeMillis ( ) ; long d... | Print a warning about a certificate being expired or soon to be expired in the keystore . |
41,058 | public static InputStream openKeyStore ( String fileName ) throws MalformedURLException , IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "openKeyStore: " + fileName ) ; URL urlFile = null ; File kfile = new File ( fileName ) ; if ( kfile . exists ( ) && kfile ... | The purpose of this method is to open the passed in file which represents the key store . |
41,059 | public void setCertificateEntry ( String alias , Certificate cert ) throws KeyStoreException , KeyException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "setCertificateEntry" , new Object [ ] { alias , cert } ) ; } if ( Boolean . parseBoolean ( getProperty ( Co... | Set a new certificate into the keystore and save the updated store . |
41,060 | private SerializableProtectedString getKeyPassword ( String alias ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getKeyPassword " + alias ) ; SerializableProtectedString keyPass = certAliasInfo . get ( alias ) ; if ( keyPass != null ) { if ( TraceComponent . isAnyTraci... | Query the password of a key entry in this keystore . |
41,061 | private void validateServerVariables ( ValidationHelper helper , Context context , Set < String > variables , Server t ) { ServerVariables serverVariables = t . getVariables ( ) ; for ( String variable : variables ) { if ( serverVariables == null || ! serverVariables . containsKey ( variable ) ) { final String message ... | Ensures that all the serverVariables are defined |
41,062 | private Set < String > validateURL ( ValidationHelper helper , Context context , String url ) { String pathToCheck = url ; Set < String > serverVariables = new HashSet < String > ( ) ; while ( pathToCheck . contains ( "{" ) ) { if ( ! pathToCheck . contains ( "}" ) ) { final String message = Tr . formatMessage ( tc , "... | Validate the url and extract server variables parameters |
41,063 | public int findFirstEyeCatcher ( byte [ ] buffer , int off , int len ) { if ( off < 0 || off >= buffer . length ) { throw new IllegalArgumentException ( "Offset should be in the buffer boundaries" ) ; } if ( off + len > buffer . length ) { len = buffer . length - off ; } int p = off + EYE_CATCHER . length - 1 ; for ( i... | assumption that the EYE_CATCHER does not have repeatable bytes . |
41,064 | private void initialize ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "initialize" ) ; subsets = new ReliabilitySubset [ maxReliabilityIndex + 1 ] ; subsetIDs = new long [ maxReliabilityIndex + 1 ] ; for ( int i = 0 ; i < subsetIDs . length ; i ++ ) { subse... | Initialize some arrays |
41,065 | protected void setStream ( int priority , Reliability reliability , Stream stream ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setStream" , new Object [ ] { new Integer ( priority ) , reliability , stream } ) ; ReliabilitySubset subset =... | Set an element in the stream array |
41,066 | public void updateCellule ( SIBUuid8 newRemoteMEUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "updateCellule" , newRemoteMEUuid ) ; this . remoteMEUuid = newRemoteMEUuid ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr .... | This method should only be called when the streamSet was created with an unknown targetCellule and WLM has now told us correct targetCellule . This can only happen when the SourceStreamManager is owned by a PtoPOuptuHandler within a LinkHandler |
41,067 | private ReliabilitySubset createPersistentSubset ( Reliability reliability , TransactionCommon tran ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "createPersistentSubset" , new Object [ ] { reliability } ) ; ReliabilitySubset subset... | Create a new ReliabilitySubset for the given reliability . If it is not express store it in the message store and record the message store ID . |
41,068 | private void createNonPersistentSubsets ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "createNonPersistentSubsets" ) ; for ( int i = 0 ; i < subsets . length ; i ++ ) { createNonPersistentSubset ( getReliability ( i ) ) ; } if ( TraceComponent . isAnyTracin... | Create all the ReliabilitySubsets non persistently . |
41,069 | private ReliabilitySubset createNonPersistentSubset ( Reliability reliability ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNonPersistentSubset" , new Object [ ] { reliability } ) ; ReliabilitySubset subset = new ReliabilitySubset ( reliability , initialData ... | Create a new ReliabilitySubset for the given Reliability but do not persist it . |
41,070 | public Stream getStream ( int priority , Reliability reliability ) throws SIResourceException { return getSubset ( reliability ) . getStream ( priority ) ; } | Get a specific stream based on priority and reliability |
41,071 | public SIBUuid12 getDestUuid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getDestUuid" ) ; SibTr . exit ( tc , "getDestUuid" , destID ) ; } return destID ; } | Get the destination Uuid |
41,072 | protected void setDestUuid ( SIBUuid12 destID ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setDestUuid" , destID ) ; this . destID = destID ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setDestUuid" ) ; } | Set the destination Uuid |
41,073 | public SIBUuid8 getBusUuid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getBusUuid" ) ; SibTr . exit ( tc , "getBusUuid" , busID ) ; } return busID ; } | Get the bus Uuid |
41,074 | public boolean isPersistent ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "isPersistent" ) ; SibTr . exit ( tc , "isPersistent" , Boolean . valueOf ( persistent ) ) ; } return persistent ; } | Get the persistence of this StreamSet |
41,075 | public SIBUuid12 getStreamID ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getStreamID" ) ; SibTr . exit ( tc , "getStreamID" , streamID ) ; } return streamID ; } | Get the stream ID for this protocol item . |
41,076 | protected void setPersistentData ( int priority , Reliability reliability , long completedPrefix ) throws SIResourceException { getSubset ( reliability ) . setPersistentData ( priority , completedPrefix ) ; } | Set the persistent data for a specific stream |
41,077 | protected long getPersistentData ( int priority , Reliability reliability ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getPersistentData" , new Object [ ] { new Integer ( priority ) , reliability } ) ; long prefix = getSubset ( reliabili... | Get the persistent data for a specific stream |
41,078 | private boolean isOverFileLimit ( int addition ) { if ( LogFile . UNLIMITED == getMaximumSize ( ) ) { return false ; } long newlen = this . myFile . length ( ) + addition ; return ( newlen > getMaximumSize ( ) || 0 > newlen ) ; } | Query whether the input amount will push the log file over the maximum allowed size . |
41,079 | private void renameFile ( File source , File target ) { if ( ! source . exists ( ) ) { return ; } if ( target . exists ( ) ) { target . delete ( ) ; } boolean rc = source . renameTo ( target ) ; if ( ! rc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , getFileName ( ) ... | Rename the source file into the target file deleting the target if necessary . |
41,080 | private void addBackup ( ) { String newname = this . fileinfo + this . myFormat . format ( new Date ( HttpDispatcher . getApproxTime ( ) ) ) + this . extensioninfo ; File newFile = new File ( newname ) ; renameFile ( this . myFile , newFile ) ; if ( this . backups . size ( ) == getMaximumBackupFiles ( ) ) { File oldest... | Move the current logfile to a backup name taking care of any existing backup files according to the configured limit . |
41,081 | private void rotate ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , getFileName ( ) + ": Rotating output log" ) ; } try { this . myChannel . close ( ) ; } catch ( IOException ioe ) { FFDCFilter . processException ( ioe , getClass ( ) . getName ( ) + ".rotate" , "424"... | When the output file has reached it s maximum size this code will rotate the current log to a backup and get ready to start logging with a new file . |
41,082 | public static void binToHex ( byte [ ] bin , int start , int length , StringBuffer hex ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "binToHex" , new Object [ ] { bin , Integer . valueOf ( start ) , Integer . valueOf ( length ) , hex } ) ; final char BIN2HEX [ ] = {... | Converts a binary value held in a byte array into a hex string in the given StringBuffer using exactly two characters per byte of input . |
41,083 | public static String binToHex ( byte [ ] bin ) { StringBuffer hex = new StringBuffer ( ) ; binToHex ( bin , 0 , bin . length , hex ) ; return hex . toString ( ) ; } | Converts a binary value held in a byte array into a hex string . |
41,084 | public static byte [ ] hexToBin ( String hex , int start ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "hexToBin" , new Object [ ] { hex , Integer . valueOf ( start ) } ) ; int digit1 , digit2 ; int length = ( hex . length ( ) - start ) ; if ( length == 0 ) { if ( T... | Converts a hex string into a byte array holding the binary value . This code is reused from MA88 . |
41,085 | public FilterCell findNextCell ( int nextValue ) { if ( nextCell == null ) { return null ; } return ( FilterCell ) ( nextCell . get ( nextValue ) ) ; } | Find the next cell for a given number which may come after this cell in the address tree . |
41,086 | static void rcvCloseProducerSess ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvCloseProducerSess" , new Object [ ] { request , co... | Close the Synchronous Producer Session provided by the client . |
41,087 | static void rcvSendSessMsg ( CommsServerByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvSendSessMsg" ) ; final boolean optimizedTx = Comms... | Calls the internal send method that will send a message and inform the client as to the outcome . |
41,088 | RegistryEntry getRegistryEntry ( String pid ) { if ( pid == null ) { return null ; } return entryMap . get ( pid ) ; } | get the registry entry if any for the supplied pid which may be null |
41,089 | private void processReferencedTypes ( RegistryEntry pidEntry ) { for ( ExtendedAttributeDefinition ad : pidEntry . getAttributeMap ( ) . values ( ) ) { if ( ad . getType ( ) == MetaTypeFactory . PID_TYPE ) { if ( ad . getReferencePid ( ) != null ) { RegistryEntry other = getRegistryEntry ( ad . getReferencePid ( ) ) ; ... | Keeps track of which OCDs are referenced by a PID type attribute in another OCD |
41,090 | protected final void unLock ( ObjectManagerState objectManagerState ) { synchronized ( objectManagerState . transactionUnlockSequenceLock ) { unlockSequence = objectManagerState . getNewGlobalTransactionUnlockSequence ( ) ; lockingTransaction = null ; } } | Releases the lock on the transaction . |
41,091 | protected void validateCertificate ( X509Certificate [ ] chain ) throws com . ibm . wsspi . security . wim . exception . CertificateMapFailedException { if ( chain == null || chain . length == 0 ) { throw new com . ibm . wsspi . security . wim . exception . CertificateMapFailedException ( ) ; } for ( X509Certificate ce... | Validate an X509 certificate array . |
41,092 | protected IDAndRealm separateIDAndRealm ( String inputString ) throws WIMException { String methodName = "seperateIDAndRealm" ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " " + "inputString = \"" + inputString + "\"" ) ; } String defaultRealm = getDefaultRealmName ( ) ; if ( tc . isDebugEnabled ( )... | Separate the ID and realm from an input String . |
41,093 | public boolean isIdentifierTypeProperty ( String inputProperty ) { boolean returnValue = false ; if ( ( inputProperty != null ) && ( ( inputProperty . equals ( Service . PROP_UNIQUE_ID ) ) || ( inputProperty . equals ( Service . PROP_UNIQUE_NAME ) ) || ( inputProperty . equals ( Service . PROP_EXTERNAL_ID ) ) || ( inpu... | Test to see if a property is an IdentifierType property . |
41,094 | protected void createRealmDataObject ( Root inputRootObject , String inputRealm ) { List < Context > contexts = inputRootObject . getContexts ( ) ; if ( contexts != null ) { Context ctx = new Context ( ) ; ctx . setKey ( Service . VALUE_CONTEXT_REALM_KEY ) ; ctx . setValue ( inputRealm ) ; contexts . add ( ctx ) ; } } | Create a DataObject for the realm context . |
41,095 | protected void createPropertyControlDataObject ( Root inputRootDataObject , String inputProperty ) { List < Control > propertyControls = inputRootDataObject . getControls ( ) ; PropertyControl propCtrl = null ; if ( propertyControls != null ) { propCtrl = new PropertyControl ( ) ; propertyControls . add ( propCtrl ) ; ... | Create a DataObject for the property request . |
41,096 | protected String getRealInputAttrName ( String inputAttrName , String id , boolean isUser ) { boolean isInputAttrValueDN = UniqueNameHelper . isDN ( id ) != null ; boolean isInputAttrIdentifier = isIdentifierTypeProperty ( inputAttrName ) ; if ( ! isInputAttrIdentifier && isInputAttrValueDN ) { inputAttrName = "uniqueN... | get input securityName . |
41,097 | public String getDefaultRealmName ( ) { String returnRealm = getCoreConfiguration ( ) . getDefaultRealmName ( ) ; if ( returnRealm == null ) { returnRealm = urRealmName ; } return returnRealm ; } | Method to return the default realm |
41,098 | private final Properties loadPropertiesFile ( WsResource res ) throws IOException { Properties props = new Properties ( ) ; InputStream is = res . get ( ) ; try { props . load ( is ) ; } catch ( IOException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "Erro... | Load the contents of the properties file . |
41,099 | final WsResource getLTPAKeyFileResource ( WsLocationAdmin locService , String ltpaKeyFile ) { WsResource ltpaFile = locService . resolveResource ( ltpaKeyFile ) ; if ( ltpaFile != null && ltpaFile . exists ( ) ) { return ltpaFile ; } else { return null ; } } | Given the path to the LTPA key file return the WsResource for the file if the file exists . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.