idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
161,600 | public void introspect ( PrintWriter writer ) { RuntimeMXBean runtime = ManagementFactory . getRuntimeMXBean ( ) ; introspectUptime ( runtime , writer ) ; introspectVendorVersion ( runtime , writer ) ; introspectInputArguments ( runtime , writer ) ; Map < String , String > props = introspectSystemProperties ( runtime ,... | Grab a snapshot of the current system properties . |
161,601 | public ArrayList getProperties ( ) { ArrayList properties = new ArrayList ( ) ; if ( configEntry . properties != null ) { Iterator it = configEntry . properties . values ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Property property = new Property ( ( com . ibm . ws . cache . config . Property ) it . next ( ) ) ; ... | This method returns a list of properties defined on a cache - entry |
161,602 | public CacheId [ ] getCacheIds ( ) { CacheId [ ] cacheIds = new CacheId [ configEntry . cacheIds . length ] ; for ( int i = 0 ; i < configEntry . cacheIds . length ; i ++ ) { cacheIds [ i ] = new CacheId ( configEntry . cacheIds [ i ] ) ; } return cacheIds ; } | This method returns an array of CacheId objects that contain cache ID generation rules used to produce a valid cache ID . |
161,603 | public DependencyId [ ] getDependencyIds ( ) { DependencyId [ ] depIds = new DependencyId [ configEntry . dependencyIds . length ] ; for ( int i = 0 ; i < configEntry . dependencyIds . length ; i ++ ) { depIds [ i ] = new DependencyId ( configEntry . dependencyIds [ i ] ) ; } return depIds ; } | This method returns an array of DependencyId objects that specified addditional cache indentifers that associated multiple cache entries to the same group identiifier . |
161,604 | public Invalidation [ ] getInvalidations ( ) { Invalidation [ ] invalidations = new Invalidation [ configEntry . invalidations . length ] ; for ( int i = 0 ; i < configEntry . invalidations . length ; i ++ ) { invalidations [ i ] = new Invalidation ( configEntry . invalidations [ i ] ) ; } return invalidations ; } | This method returns an array of Invalidation objects that written custom Java code or through rules that are defined in the cache policy of each entry . |
161,605 | private void closeSocketChannel ( SocketChannel sc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { try { Tr . event ( this , tc , "Closing connection, local: " + sc . socket ( ) . getLocalSocketAddress ( ) + " remote: " + sc . socket ( ) . getRemoteSocketAddress ( ) ) ; } catch ( Throwa... | Handle closing the socket channel with appropriate debug and error protection . |
161,606 | public static Class < ? > [ ] toTypeArray ( String [ ] s ) throws ClassNotFoundException { if ( s == null ) return null ; Class < ? > [ ] c = new Class [ s . length ] ; for ( int i = 0 ; i < s . length ; i ++ ) { c [ i ] = forName ( s [ i ] ) ; } return c ; } | Converts an array of Class names to Class types . |
161,607 | public static String [ ] toTypeNameArray ( Class < ? > [ ] c ) { if ( c == null ) return null ; String [ ] s = new String [ c . length ] ; for ( int i = 0 ; i < c . length ; i ++ ) { s [ i ] = c [ i ] . getName ( ) ; } return s ; } | Converts an array of Class types to Class names . |
161,608 | public boolean add ( Object o ) { synchronized ( pool ) { if ( index < pool . length ) { pool [ index ++ ] = o ; return true ; } } return false ; } | Returns true if the object was added back to the pool |
161,609 | protected synchronized Dispatchable getThreadContext ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getThreadContext" ) ; int currentPos = data . position ( ) ; int currentLimit = data . limit ( ) ; Dispatchable dis = null ; try { dis = listener . getThread... | This method will ask the receive listener for the thread context . |
161,610 | public void setLogDataDirectory ( String logDataDirectory ) { LogState state = ivLog . setDataDirectory ( logDataDirectory ) ; if ( state != null ) { updateLogConfiguration ( state ) ; state . copyTo ( ivLog ) ; } } | Setters for Log Data |
161,611 | private void updateTraceConfiguration ( TraceState state ) { if ( DIRECTORY_TYPE . equals ( state . ivStorageType ) ) { LogRepositoryComponent . setTraceDirectoryDestination ( state . ivDataDirectory , state . ivPurgeBySizeEnabled , state . ivPurgeByTimeEnabled , state . ivFileSwitchEnabled , state . ivBufferingEnabled... | update all info for Trace Repository |
161,612 | public void setTraceMemory ( String dataDirectory , long memoryBufferSize ) { TraceState state = ( TraceState ) ivTrace . clone ( ) ; state . ivStorageType = MEMORYBUFFER_TYPE ; state . ivDataDirectory = dataDirectory ; state . ivMemoryBufferSize = memoryBufferSize ; updateTraceConfiguration ( state ) ; state . copyTo ... | Modify the trace to use a memory buffer |
161,613 | private static HttpServletRequest getWrappedServletRequestObject ( HttpServletRequest sr ) { if ( sr instanceof HttpServletRequestWrapper ) { HttpServletRequestWrapper w = ( HttpServletRequestWrapper ) sr ; sr = ( HttpServletRequest ) w . getRequest ( ) ; while ( sr instanceof HttpServletRequestWrapper ) sr = ( HttpSer... | Drill down through any possible HttpServletRequestWrapper objects . |
161,614 | public static FileSharedServerLeaseLog getFileSharedServerLeaseLog ( String logDirStem , String localRecoveryIdentity , String recoveryGroup ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "FileSharedServerLeaseLog" , new Object [ ] { logDirStem , localRecoveryIdentity , recoveryGroup } ) ; if ( _serverInstallLeas... | Access the singleton instance of the FileSystem Lease log . |
161,615 | public static int parseRMICCompatible ( String options ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "parseRMICCompatible: " + options ) ; int flags ; if ( options == null ) { flags = RMIC_COMPATIBLE_DEFAULT ; } else if ( options .... | Parse an rmic compatibility options string . |
161,616 | public static void registerJIT_StubClassPlugin ( ClassLoader classloader ) { boolean isRegistered = JIT_StubPluginImpl . register ( classloader ) ; if ( ! isRegistered ) { throw new IllegalArgumentException ( "Specified ClassLoader does not support JIT_StubClassPlugin : " + classloader ) ; } } | F1339 - 8988 |
161,617 | synchronized void setStageTopics ( String stageName , String [ ] topics ) { for ( String t : topics ) { if ( t . equals ( "*" ) ) { wildcardStageTopics . put ( "" , stageName ) ; } else if ( t . endsWith ( "/*" ) ) { wildcardStageTopics . put ( t . substring ( 0 , t . length ( ) - 1 ) , stageName ) ; } else { discreteS... | Set the list of topics to be associated with the specified work stage . |
161,618 | TopicData getTopicData ( Topic topic , String topicName ) { TopicData topicData = null ; if ( topic != null ) { topicData = topic . getTopicData ( ) ; } if ( topicData == null ) { topicData = topicDataCache . get ( topicName ) ; if ( topic != null && topicData != null ) { topic . setTopicDataReference ( topicData . get... | Get the cached information about the specified topic . The cached data will allow us to avoid the expense of finding various and sundry data associated with a specific topic and topic hierarchies . |
161,619 | public boolean accessDenied ( InetAddress remoteAddr ) { String hostname = null ; if ( includeAccess . getActive ( ) || includeAccessNames . getActive ( ) ) { boolean closeSocket = true ; if ( includeAccess . getActive ( ) ) { if ( remoteAddr instanceof Inet6Address ) { if ( includeAccess . findInList6 ( remoteAddr . g... | Query whether a given client address is denied by this configuration . |
161,620 | final protected void eventPrecommitAdd ( MessageItem msg , final TransactionCommon transaction ) throws SIDiscriminatorSyntaxException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "eventPrecommitAdd" , new Object [ ] { msg , transaction } ) ; if... | Method eventPrecommitAdd . |
161,621 | public void sendAckMessage ( SIBUuid8 sourceMEUuid , SIBUuid12 destUuid , SIBUuid8 busUuid , long ackPrefix , int priority , Reliability reliability , SIBUuid12 stream , boolean consolidate ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "se... | sendAckMessage is called from preCommitCallback after the message has been delivered to the final destination |
161,622 | public void sendNackMessage ( SIBUuid8 sourceMEUuid , SIBUuid12 destUuid , SIBUuid8 busUuid , long startTick , long endTick , int priority , Reliability reliability , SIBUuid12 stream ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendNack... | Sends a Nack message back to the originating ME |
161,623 | private ControlNack createControlNackMessage ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createControlNackMessage" ) ; ControlNack nackMsg = null ; try { nackMsg = _cmf . createNewControlNack ( ) ; } catch ( MessageCreateFailedExcepti... | Creates an NACK message for sending |
161,624 | protected ControlRequestFlush createControlRequestFlush ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createControlRequestFlush" ) ; ControlRequestFlush rflushMsg = null ; try { rflushMsg = _cmf . createNewControlRequestFlush ( ) ; } ca... | Creates a REQUESTFLUSH message for sending |
161,625 | private int checkCanExceptionMessage ( DestinationHandler destinationHandler ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkCanExceptionMessage" , new Object [ ] { destinationHandler } ) ; ExceptionDestinationHandlerImpl exceptionDestinationHandler = null ; exc... | Check whether it will be possible to place a message on the exception destination belonging to a destination . |
161,626 | private int checkTargetAbleToAcceptOrExceptionMessage ( JsDestinationAddress targetDestinationAddr ) throws SITemporaryDestinationNotFoundException , SIResourceException , SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "chec... | See if a target destination or if necessary its exception destination can handle any more messages . |
161,627 | private int checkLinkAbleToExceptionMessage ( ) throws SIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkLinkAbleToExceptionMessage" ) ; int blockingReason = DestinationHandler . OUTPUT_HANDLER_NOT_FOUND ; blockingReason = checkCanExceptionMessage ( _des... | See if a link s exception destination can handle any more messages . |
161,628 | public int checkStillBlocked ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkStillBlocked" ) ; int blockingReason = DestinationHandler . OUTPUT_HANDLER_NOT_FOUND ; if ( ! _isLink ) { blockingReason = DestinationHandler . OUTPUT_HANDLER_FOUND ; } else { boolean... | See if the condition that led to the link being blocked has been resolved . The block could have been caused by a number of factors such as the routing destination being full or put - disabled or the link exception destination being full etc etc . |
161,629 | void balancedPush ( int state , GBSNode node ) { push ( state , node ) ; if ( node . balance ( ) != 0 ) _bpidx = _cidx ; } | Push a node and associated state onto the stack remembering a height imbalance if there is one . |
161,630 | void processSubFringe ( GBSNode p ) { int t0_depth = _tree . tZeroDepth ( ) ; int ntop = 0 ; int xChild = 0 ; if ( p . hasChild ( ) ) xChild = 1 ; if ( index ( ) > t0_depth ) ntop = index ( ) - ( t0_depth - xChild ) ; innerProcessSubTree ( p , NodeStack . VISIT_RIGHT , ntop ) ; } | Walk through a fringe of the tree . |
161,631 | private void innerProcessSubTree ( GBSNode p , int initialState , int topIndex ) { boolean done = false ; _topIndex = topIndex ; _endp = p ; _endIndex = _idx ; GBSNode q ; int s = initialState ; while ( ! done ) { switch ( s ) { case NodeStack . VISIT_LEFT : s = NodeStack . PROCESS_CURRENT ; q = p . leftChild ( ) ; whi... | Walk through an entire sub - tree invoking processNode on each node . |
161,632 | public String stateName ( int state ) { String name = "Unknown state = " + state ; switch ( state ) { case NodeStack . VISIT_LEFT : name = "VISIT_LEFT" ; break ; case NodeStack . PROCESS_CURRENT : name = "PROCESS_CURRENT" ; break ; case NodeStack . VISIT_RIGHT : name = "VISIT_RIGHT" ; break ; case NodeStack . DONE_VISI... | Return the name of a node state |
161,633 | public final static void logException ( TraceComponent compTc , Throwable t , EJBMethodMetaData m , BeanO bean ) { if ( hasBeenLogged ( t ) ) { return ; } BeanId beanId = null ; if ( bean != null ) { beanId = bean . getId ( ) ; } if ( m == null ) { if ( beanId == null ) { Tr . error ( compTc , "NON_APPLICATION_EXCEPTIO... | d408351 - added new signature with customizable TraceComponent |
161,634 | static public Throwable findRootCause ( Throwable throwable ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "findRootCause: " + throwable ) ; } Throwable root = throwable ; Throwable next = root ; while ( next != null ) { root = next ; if ( TraceComponent . isAnyTracin... | Finds the root cause of a Throwable that occured . This routine will continue to look through chained Throwables until it cannot find another chained Throwable and return the last one in the chain as the root cause . |
161,635 | public static Exception Exception ( Throwable cause ) { return ( cause instanceof Exception ) ? ( Exception ) cause : new Exception ( "See nested Throwable" , cause ) ; } | F71894 . 1 |
161,636 | protected ClientBehaviorAttachedObjectTargetImpl createAttachedObjectTarget ( FaceletContext ctx ) { ClientBehaviorAttachedObjectTargetImpl target = new ClientBehaviorAttachedObjectTargetImpl ( ) ; if ( _event != null ) { target . setEvent ( _event . getValueExpression ( ctx , String . class ) ) ; } if ( _name != null ... | Create a new AttachedObjectTarget instance to be added on the target list . |
161,637 | private void registerEndpointMBean ( String name , EndPointInfoImpl ep ) { endpointMBeans . put ( name , registerMBeanAsService ( name , ep ) ) ; } | Register an endpoint MBean and publish it . |
161,638 | private EndPointInfoImpl updateEndpointMBean ( String name , String host , int port ) { EndPointInfoImpl existingEP = endpoints . get ( name ) ; existingEP . updateHost ( host ) ; existingEP . updatePort ( port ) ; return existingEP ; } | Update an existing endpoint MBean which will emit change notifications . |
161,639 | private void destroyEndpointMBeans ( ) { for ( Map . Entry < String , ServiceRegistration < DynamicMBean > > mbean : endpointMBeans . entrySet ( ) ) { String mbeanName = mbean . getKey ( ) ; endpointMBeans . remove ( mbeanName ) ; mbean . getValue ( ) . unregister ( ) ; } } | For each registered MBean unpublish unregister and remove from the map . |
161,640 | public static void destroyEndpoints ( ) { EndPointMgrImpl _this = ( EndPointMgrImpl ) getRef ( ) ; synchronized ( _this . endpoints ) { _this . destroyEndpointMBeans ( ) ; _this . endpoints . clear ( ) ; } } | Destroy all of the defined endpoints . |
161,641 | private void unregisterMBeanInService ( String name ) { ServiceRegistration < DynamicMBean > existingMBean = endpointMBeans . remove ( name ) ; if ( existingMBean != null ) { existingMBean . unregister ( ) ; } } | Remove the MBean from the map of registered MBeans and unregister it . |
161,642 | public void removeEndPoint ( String name ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Deleting endpoint: " + name ) ; } synchronized ( this . endpoints ) { if ( this . endpoints . remove ( name ) != null ) { unregisterMBeanInService ( name ) ; } } } | Delete the endpoint that matches the provided name . |
161,643 | private static String [ ] getTokensArray ( String tokenComposite ) throws ParseException { if ( tokenComposite == null || "" . equals ( tokenComposite ) ) { return null ; } return parseNameTokens ( tokenComposite ) ; } | Takes a string that is a composite of tokens extracts tokens delimited by any whitespace character sequence combination and returns a String array of such tokens . |
161,644 | static public String [ ] parseNameTokens ( String stringValue ) { if ( stringValue == null ) { return null ; } ArrayList < String > list = new ArrayList < String > ( 5 ) ; int length = stringValue . length ( ) ; boolean inSpace = true ; int start = 0 ; for ( int i = 0 ; i < length ; i ++ ) { char ch = stringValue . cha... | Parses a whitespace separated series of name tokens . |
161,645 | public static FlowType getKey ( int ordinal ) { if ( ordinal >= 0 && ordinal < _values . length ) { return _values [ ordinal ] ; } return null ; } | Fetch the FlowType for a particular integer . |
161,646 | public boolean containsChannel ( String channelName ) { boolean found = false ; for ( int i = 0 ; i < channels . length ; i ++ ) { if ( channels [ i ] . getName ( ) . equals ( channelName ) ) { found = true ; break ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "con... | Check whether this chain contains the input channel name . |
161,647 | private static boolean needsEncoding ( String s , boolean relax , boolean [ ] unreserved ) { int len = s . length ( ) ; for ( int i = 0 ; i < len ; ++ i ) { char c = s . charAt ( i ) ; if ( c == '%' && relax ) { continue ; } if ( c > unreserved . length ) { return true ; } if ( unreserved [ c ] == false ) { return true... | Determines if the input string contains any invalid URI characters that require encoding |
161,648 | public Object getWLMEndPointData ( ) { if ( mode != PropertiesType . WLM_EP ) { throw new SIErrorException ( nls . getFormattedMessage ( "INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006" , null , "INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006" ) ) ; } return wlmEndPointData ; } | Returns the WLM endpoint data associated with this instance of connection properties . This is only valid if the instance was created to use the WLM endpoint mode of operation . An IllegalArgumentException will be thrown otherwise . |
161,649 | public static String getContextRootNotFoundMessage ( ) { HttpDispatcher f = instance . get ( ) . get ( ) ; if ( f != null ) return f . appOrContextRootNotFound ; return null ; } | Get the value for the appOrContextRootMissingMessage custom property . return null if it was not set . |
161,650 | public boolean isTrusted ( String hostAddr , String headerName ) { if ( ! wcTrusted ) { return false ; } if ( HttpHeaderKeys . isSensitivePrivateHeader ( headerName ) ) { return isTrustedForSensitiveHeaders ( hostAddr ) ; } if ( ! usePrivateHeaders ) { return isTrustedForSensitiveHeaders ( hostAddr ) ; } if ( restrictP... | Check to see if the source host address is one we allow for specification of private headers |
161,651 | public boolean isTrustedForSensitiveHeaders ( String hostAddr ) { if ( ! useSensitivePrivateHeaders ) { return false ; } if ( restrictSensitiveHeaderOrigin == null ) { return true ; } else { return restrictSensitiveHeaderOrigin . contains ( hostAddr . toLowerCase ( ) ) ; } } | Check to see if the source host address is one we allow for specification of sensitive private headers |
161,652 | public static ExecutorService getExecutorService ( ) { HttpDispatcher f = instance . get ( ) . get ( ) ; if ( f == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "HttpDispatcher instance not found" ) ; } return null ; } else { if ( TraceComponent . isAnyTracingEn... | Access the collaboration engine . |
161,653 | public static CHFWBundle getCHFWBundle ( ) { HttpDispatcher f = instance . get ( ) . get ( ) ; if ( f != null ) return f . chfw ; return null ; } | Access the channel framework bundle . |
161,654 | public static WsByteBufferPoolManager getBufferManager ( ) { final CHFWBundle chfw = getCHFWBundle ( ) ; if ( null == chfw ) { return ChannelFrameworkFactory . getBufferManager ( ) ; } return chfw . getBufferManager ( ) ; } | Access the current reference to the bytebuffer pool manager . |
161,655 | public static ChannelFramework getFramework ( ) { final CHFWBundle chfw = getCHFWBundle ( ) ; if ( null == chfw ) { return ChannelFrameworkFactory . getChannelFramework ( ) ; } return chfw . getFramework ( ) ; } | Access the current reference to the channel framework instance . |
161,656 | @ Reference ( name = "workClassifier" , policy = ReferencePolicy . DYNAMIC , cardinality = ReferenceCardinality . OPTIONAL ) protected void setWorkClassifier ( WorkClassifier service ) { workClassifier = service ; } | DS method for setting the Work Classification service reference . |
161,657 | public static WorkClassifier getWorkClassifier ( ) { HttpDispatcher f = instance . get ( ) . get ( ) ; if ( f != null ) return f . workClassifier ; return null ; } | Access to the WorkClassifier |
161,658 | private static ObjectName createObjectName ( String type , String name , Hashtable < String , String > props ) { props . put ( KEY_TYPE , type ) ; props . put ( KEY_NAME , name ) ; try { return new ObjectName ( DOMAIN_NAME , props ) ; } catch ( MalformedObjectNameException e ) { throw new IllegalArgumentException ( e )... | Common object name factory method . |
161,659 | public static ObjectName createApplicationObjectName ( String name , String serverName ) { Hashtable < String , String > props = new Hashtable < String , String > ( ) ; props . put ( TYPE_SERVER , serverName ) ; return createObjectName ( TYPE_APPLICATION , name , props ) ; } | Application and module factory methods ... |
161,660 | public static ObjectName createEJBModuleObjectName ( String uri , String appName , String serverName ) { return createModuleObjectName ( ModuleType . EJBModule , uri , appName , serverName ) ; } | EJB factory methods ... |
161,661 | public static ObjectName createWebModuleObjectName ( String moduleURI , String appName , String serverName ) { return createModuleObjectName ( ModuleType . WebModule , moduleURI , appName , serverName ) ; } | Servlet factory methods ... |
161,662 | public static ObjectName createJavaMailObjectName ( String serverName , String mailSessionID , int resourceCounter ) { Hashtable < String , String > props = new Hashtable < String , String > ( ) ; props . put ( TYPE_SERVER , serverName ) ; props . put ( MAIL_SESSION_ID , mailSessionID ) ; props . put ( RESOURCE_ID , TY... | Java mail factory methods ... |
161,663 | public static ObjectName createResourceObjectName ( String serverName , String resourceType , String keyName ) { ObjectName objectName ; Hashtable < String , String > props = new Hashtable < String , String > ( ) ; props . put ( TYPE_SERVER , serverName ) ; objectName = createObjectName ( resourceType , keyName , props... | Creates a Resource ObjectName for a Resource MBean |
161,664 | public boolean libraryExists ( String libraryName ) { FacesContext facesContext = FacesContext . getCurrentInstance ( ) ; String localePrefix = getLocalePrefixForLocateResource ( facesContext ) ; final List < String > contracts = facesContext . getResourceLibraryContracts ( ) ; String pathToLib = null ; Boolean library... | Check if a library exists or not . This is done delegating to each ResourceLoader used because each one has a different prefix and way to load resources . |
161,665 | public Object setValue ( Token object ) { Object result = value ; value = object ; return result ; } | Sets the value for this entry |
161,666 | protected MatchResponse getMatchResponse ( SecurityConstraint securityConstraint , String resourceName , String method ) { CollectionMatch collectionMatch = getCollectionMatch ( securityConstraint . getWebResourceCollections ( ) , resourceName , method ) ; if ( CollectionMatch . RESPONSE_NO_MATCH . equals ( collectionM... | Gets the response object that contains the roles the SSL required and access precluded indicators . Gets the response using the standard method algorithm . |
161,667 | public void purge ( ) { synchronized ( this ) { for ( DynamicVirtualHost host : hostMap . values ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Purge host : " + host . hashCode ( ) + ", this : " + this ) ; } host . getHostConfiguration ( ) . setConfiguration ( nu... | Called when the webcontainer is deactivated . This will clean up all maps within the host manager to facilitate garbage collection and clean up . |
161,668 | private void setSsoTokenCredential ( Subject subject , String principalAccessId ) throws CredentialException { try { TokenManager tokenManager = tokenManagerRef . getService ( ) ; SingleSignonToken ssoToken = null ; Set < Token > tokens = subject . getPrivateCredentials ( Token . class ) ; if ( tokens . isEmpty ( ) == ... | Create an SSO token for the specified accessId . |
161,669 | public ManagedObject get ( Token token ) { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) { trace . entry ( this , cclass , "get" , token ) ; trace . exit ( this , cclass , "get returns null" ) ; } return null ; } | Retrieve an object in the store . For MemoryObjectStores this should only be called for a ManagedObject that was lost over a restart so null is returned . |
161,670 | public synchronized void flush ( ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) { trace . entry ( this , cclass , "flush" ) ; trace . exit ( this , cclass , "flush" ) ; } } | For MemoryObjectstore there is nothing to do . |
161,671 | static void buildEjbWebServiceEndpointInfos ( EndpointInfoBuilder endpointInfoBuilder , EndpointInfoBuilderContext ctx , JaxWsServerMetaData jaxWsServerMetaData , List < EJBEndpoint > ejbEndpoints , JaxWsModuleInfo jaxWsModuleInfo ) throws UnableToAdaptException { Set < String > presentedServices = jaxWsModuleInfo . ge... | build Web Service endpoint infos |
161,672 | public static Jose4jRsaJWK getInstance ( int size , String alg , String use , String type ) { String kid = RandomUtils . getRandomAlphaNumeric ( KID_LENGTH ) ; KeyPairGenerator keyGenerator = null ; try { keyGenerator = KeyPairGenerator . getInstance ( "RSA" ) ; } catch ( NoSuchAlgorithmException e ) { if ( tc . isDebu... | generate a new JWK with the specified parameters |
161,673 | public static Jose4jRsaJWK getInstance ( String alg , String use , PublicKey publicKey , PrivateKey privateKey , String kid ) { RSAPublicKey pubKey = ( RSAPublicKey ) publicKey ; RSAPrivateKey priKey = ( RSAPrivateKey ) privateKey ; Jose4jRsaJWK jwk = new Jose4jRsaJWK ( pubKey ) ; jwk . setPrivateKey ( priKey ) ; jwk .... | alg use publicKey privateKey |
161,674 | private List < Object > reprocessFormParams ( Method method , List < Object > origParams , Message m ) { Form form = null ; boolean hasFormParamAnnotations = false ; Object [ ] newValues = new Object [ origParams . size ( ) ] ; java . lang . reflect . Parameter [ ] methodParams = method . getParameters ( ) ; for ( int ... | Liberty change start - CXF - 7860 |
161,675 | private Collection < LibertyVersion > filterVersions ( Collection < LibertyVersion > minimumVersions , String version ) { LibertyVersion versionToMatch = LibertyVersion . valueOf ( version ) ; if ( versionToMatch == null ) { return minimumVersions ; } Collection < LibertyVersion > filteredVersions = new HashSet < Liber... | This will filter the supplied versions to make sure they all have the same major minor and micro parts as the supplied version . This may return the original collection . |
161,676 | Map < Object , Object > createOrRestoreMap ( FacesContext context , String prefix , boolean create ) { ExternalContext external = context . getExternalContext ( ) ; Map < String , Object > sessionMap = external . getSessionMap ( ) ; Map < Object , Object > map = ( Map < Object , Object > ) sessionMap . get ( prefix ) ;... | Create a new subkey - wrapper of the session map with the given prefix . This wrapper is used to implement the maps for the flash scope . For more information see the SubKeyMap doc . |
161,677 | public static TSSConfig getTSSConfig ( Map < String , Object > props , Map < OptionsKey , List < TransportAddress > > addrMap , Bundle bundle ) throws Exception { TSSConfig tssConfig = new TSSConfig ( ) ; List < Map < String , Object > > tssConfigs = Nester . nest ( CSIV2_CONFIGURATION , props ) ; if ( ! tssConfigs . i... | Returns a TSSConfig object initialized with the input object as an XML string . |
161,678 | public ZipFileData addFirst ( ZipFileData newFirstData ) { String newFirstPath = newFirstData . path ; Cell dupCell = cells . get ( newFirstPath ) ; if ( dupCell != null ) { throw new IllegalArgumentException ( "Path [ " + newFirstPath + " ] is already stored" ) ; } Cell oldFirstCell = anchor . next ; Cell newFirstCell... | Add data as new first data . |
161,679 | public ZipFileData addLast ( ZipFileData newLastData ) { String newLastPath = newLastData . path ; Cell dupCell = cells . get ( newLastPath ) ; if ( dupCell != null ) { throw new IllegalArgumentException ( "Path [ " + newLastPath + " ] is already stored" ) ; } Cell oldLastCell = anchor . prev ; Cell newLastCell = new C... | Add data as new last data . |
161,680 | public ZipFileData addLast ( ZipFileData newLastData , int maximumSize ) { String newLastPath = newLastData . path ; Cell dupCell = cells . get ( newLastPath ) ; if ( dupCell != null ) { throw new IllegalArgumentException ( "Path [ " + newLastPath + " ] is already stored" ) ; } int size = size ( ) ; if ( ( maximumSize ... | Add data as the last data of the store . If the addition pushes a cell out of the list answer the data of the cell which was removed . |
161,681 | public void refresh ( ApplicationMonitorConfig config ) { _config . set ( config ) ; UpdateTrigger trigger = config . getUpdateTrigger ( ) ; if ( trigger != UpdateTrigger . DISABLED ) { for ( ApplicationListeners listeners : _appListeners . values ( ) ) { listeners . startListeners ( config . getPollingRate ( ) , confi... | Starts the service with properties |
161,682 | @ FFDCIgnore ( value = UnableToAdaptException . class ) public void addApplication ( ApplicationInstallInfo installInfo ) { final Collection < Notification > notificationsToMonitor ; final boolean listenForRootStructuralChanges ; ApplicationMonitoringInformation ami = installInfo . getApplicationMonitoringInformation (... | adds an application s information to the update monitor |
161,683 | public void removeApplication ( String pid ) { ApplicationListeners listeners = _appListeners . remove ( pid ) ; if ( listeners != null ) { listeners . stopListeners ( true ) ; } } | Removes an application from the update monitor |
161,684 | public static void traceEJBCallEntry ( String methodDesc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( BeanLifeCycle_EJBCallEntry_Type_Str ) . append ( DataDelimiter ) . append ( BeanLifeCycle_EJBCallEntry_Type ) . append ( Da... | This is called by the EJB container server code to write a ejb method callback entry record to the trace log if enabled . |
161,685 | public static void traceEJBCallExit ( String methodDesc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( BeanLifeCycle_EJBCallExit_Type_Str ) . append ( DataDelimiter ) . append ( BeanLifeCycle_EJBCallExit_Type ) . append ( DataD... | This is called by the EJB container server code to write a ejb method callback exit record to the trace log if enabled . |
161,686 | public static void traceBeanState ( int oldState , String oldString , int newState , String newString ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( BeanLifeCycle_State_Type_Str ) . append ( DataDelimiter ) . append ( BeanLifeC... | This is called by the EJB container server code to write a ejb bean state record to the trace log if enabled . |
161,687 | protected synchronized void add ( Object id , int bufferType , int cause , int source , boolean fromDepIdTemplateInvalidation , boolean fireEvent , boolean isAlias ) { final String methodName = "add(Object)" ; if ( id == null ) { return ; } if ( bufferType == EXPLICIT_BUFFER ) { byte info = 0 ; if ( cause != 0 && sourc... | Call this method to store a cache id in the one of invalidation buffers . The entry is going to remove from the disk using LPBT . |
161,688 | protected synchronized void add ( ValueSet idSet , int bufferType , int cause , int source , boolean fromDepIdTemplateInvalidation , boolean fireEvent , boolean checkFull ) { final String methodName = "add(ValueSet)" ; if ( idSet == null || idSet . isEmpty ( ) ) { return ; } int size = idSet . size ( ) ; if ( bufferTyp... | Call this method to store a collection of cache ids in the one of invalidation buffers . The entries are going to remove from the disk using LPBT . |
161,689 | protected synchronized Object get ( int bufferType ) { Object id = null ; if ( bufferType == this . EXPLICIT_BUFFER ) { if ( ! this . explicitBuffer . isEmpty ( ) ) { Set s = this . explicitBuffer . keySet ( ) ; Iterator it = s . iterator ( ) ; ExplicitIdData idData = new ExplicitIdData ( ) ; while ( it . hasNext ( ) )... | Call this method when a cache id is retrieved from one of invalidation buffers . The entry is being used to remove from the disk using LPBT . |
161,690 | protected synchronized void remove ( Object id , int bufferType , boolean returnToPool ) { if ( id == null ) { return ; } if ( bufferType == this . EXPLICIT_BUFFER ) { this . explicitBuffer . remove ( id ) ; } else if ( bufferType == this . SCAN_BUFFER ) { this . scanBuffer . remove ( id ) ; } else if ( bufferType == t... | returnToPool boolean is used by GC buffer only |
161,691 | protected synchronized void remove ( Object id ) { if ( id == null ) { return ; } this . explicitBuffer . remove ( id ) ; this . scanBuffer . remove ( id ) ; } | Call this method to remove a specified cache id from invalidation buffers excluding garbage collector buffers . |
161,692 | protected synchronized ValueSet getAndRemoveFromExplicitBuffer ( ) { final String methodName = "getAndRemoveFromExplicitBuffer()" ; ValueSet valueSet = null ; if ( this . explicitBuffer . size ( ) == 0 ) { valueSet = new ValueSet ( 1 ) ; } else { valueSet = new ValueSet ( this . explicitBuffer . size ( ) ) ; Iterator i... | Call this method to get and remove all the cache ids from explicit buffer . |
161,693 | protected synchronized boolean findAndRemoveFromGCBuffer ( long expirationTime , int hashcode , int size ) { EvictionTableEntry evt = null ; int i ; for ( i = 0 ; i < garbageCollectorBuffer . size ( ) ; i ++ ) { evt = ( EvictionTableEntry ) garbageCollectorBuffer . get ( i ) ; if ( evt . expirationTime == expirationTim... | Call this method to get and remove the EVT from GC buffer . |
161,694 | protected synchronized void clear ( int bufferType ) { final String methodName = "clear()" ; if ( bufferType == HTODInvalidationBuffer . EXPLICIT_BUFFER ) { this . explicitBuffer . clear ( ) ; } else if ( bufferType == HTODInvalidationBuffer . SCAN_BUFFER ) { this . scanBuffer . clear ( ) ; } else if ( bufferType == HT... | Call this method to clear the invalidation buffers . |
161,695 | protected synchronized void invokeBackgroundInvalidation ( boolean scan ) { final String methodName = "invokeBackgroundInvalidation()" ; if ( ! stopping ) { synchronized ( cod . diskCleanupThread . dcMonitor ) { if ( cod . diskCleanupThread . currentThread != null ) { this . cod . invokeDiskCleanup ( scan ) ; } else { ... | Call this method to invoke LPBT . |
161,696 | protected synchronized boolean contains ( Object id ) { boolean found = false ; if ( this . explicitBuffer . containsKey ( id ) || this . scanBuffer . contains ( id ) ) { found = true ; } return found ; } | Call this method to check whether a specified id exists in the invalidation explicit or scan buffer . |
161,697 | public synchronized boolean isFull ( ) { boolean isFull = false ; int size = this . explicitBuffer . size ( ) + this . scanBuffer . size ( ) + this . garbageCollectorBuffer . size ( ) ; if ( size > this . maxInvalidationBufferSize || ( System . currentTimeMillis ( ) - this . lastRemoveTime ) >= this . maxInvalidationBu... | Call this method to check whether a full condition is met to start LPBT . |
161,698 | protected synchronized void filter ( ValueSet filterValueSet ) { boolean explicitBufferEmpty = this . explicitBuffer . isEmpty ( ) ; boolean scanBufferEmpty = this . scanBuffer . isEmpty ( ) ; if ( filterValueSet != null && ! filterValueSet . isEmpty ( ) && ( ! explicitBufferEmpty || ! scanBufferEmpty ) ) { Iterator it... | Call this method to filter out the specified collection of cache ids based on invalidation buffers . |
161,699 | protected synchronized int size ( int bufferType ) { if ( bufferType == EXPLICIT_BUFFER ) { return this . explicitBuffer . size ( ) ; } else if ( bufferType == SCAN_BUFFER ) { return this . scanBuffer . size ( ) ; } else if ( bufferType == GC_BUFFER ) { return this . garbageCollectorBuffer . size ( ) ; } return 0 ; } | Call this method to get the size from one of invalidation buffers . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.