idx
int64
0
41.2k
question
stringlengths
73
5.81k
target
stringlengths
5
918
25,700
public void setConfig ( LWMConfig meConfig ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setConfig" , new Object [ ] { meConfig } ) ; _highMessageThreshold = ( ( JsMessagingEngine ) meConfig ) . getMEThreshold ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && ...
setConfig is implemented from the interface JsEngineComponent and is used to set properties on the MP
25,701
public void setCustomProperty ( String propertyName , String propertyValue ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setCustomProperty" , new Object [ ] { propertyName , propertyValue } ) ; _customProperties . setProperty ( propertyName , propertyValue ) ; if (...
setCustomProperty is implemented from the interface JsEngineComponent and is used to set properties on the MP
25,702
public JsDestinationAddress getProxyHandlerDestAddr ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getProxyHandlerDestAddr" ) ; SibTr . exit ( tc , "getProxyHandlerDestAddr" , _proxyHandlerDestAddr ) ; } return _proxyHandlerDestAddr ; }
Method to return the name of the Subscription Proxy Queue used to receive the proxy updates
25,703
public SearchResultsObjectPool getSearchResultsObjectPool ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getSearchResultsObjectPool" ) ; SibTr . exit ( tc , "getSearchResultsObjectPool" , _connectionToMP ) ; } return _searchResultsPool ; }
Gets the SearchResultsObjectPool instance
25,704
public MPCoreConnection getSystemConnection ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getSystemConnection" ) ; SibTr . exit ( tc , "getSystemConnection" , _connectionToMP ) ; } return _connectionToMP ; }
Method to return the connection that the SYSTEM queue was created on . This connection is used wherever an internal producerSession or consumerSession is required .
25,705
public SIBUuid8 getMessagingEngineUuid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMessagingEngineUuid" ) ; SIBUuid8 uuid = _persistentStore . getMessagingEngineUuid ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exi...
Returns the messagingEngineUuid
25,706
public static ControlMessageFactory getControlMessageFactory ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getControlMessageFactory" ) ; if ( _controlMessageFactory == null ) _controlMessageFactory = ( ControlMessageFactory ) getSingletonInstance ( SIMPConstants ...
Creates the control message factory single instance
25,707
public static JsMessageHandleFactory getJsMessageHandleFactory ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getJsMessageHandleFactory" ) ; if ( _jsMessageHandleFactory == null ) _jsMessageHandleFactory = ( JsMessageHandleFactory ) getSingletonInstance ( SIMPCons...
Creates the message handle factory single instance
25,708
public void add ( Item item , TransactionCommon transaction ) throws MessageStoreException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "add" , new Object [ ] { item , transaction } ) ; Transaction msTran = resolveAndEnlistMsgStoreTransaction ( ...
Add an item to the Message Processor ItemStream .
25,709
public SIMPTransactionManager getTXManager ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getTXManager" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getTXManager" , _txManager ) ; return _txManager ; }
Get the Transaction Manager
25,710
public BatchHandler getTargetBatchHandler ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getTargetBatchHandler" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getTargetBatchHandler" , _targetBatchHandler ) ; ret...
Get the Target Batch Handler
25,711
public BatchHandler getSourceBatchHandler ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getSourceBatchHandler" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getSourceBatchHandler" , _sourceBatchHandler ) ; ret...
Get the Source Batch Handler
25,712
public BatchHandler getPublicationBatchHandler ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getPublicationBatchHandler" ) ; SibTr . exit ( tc , "getPublicationBatchHandler" , _sourceBatchHandler ) ; } return _publicationBatchHandler ; }
Get the Publication Batch Handler
25,713
public DestinationLocationManager getDestinationLocationManager ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getDestinationLocationManager" ) ; SibTr . exit ( tc , "getDestinationLocationManager" , _destinationLocationManager ) ; } return _destinationLocationM...
Returns the destinationLocationManager .
25,714
public LinkManager getLinkManager ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getLinkManager" ) ; SibTr . exit ( tc , "getLinkManager" ) ; } return _linkManager ; }
Returns the LinkManager .
25,715
MQLinkManager getMQLinkManager ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getMQLinkManager" ) ; SibTr . exit ( tc , "getMQLinkManager" ) ; } return _mqLinkManager ; }
Returns the MQLinkManager .
25,716
public Set getSIBDestinationLocalitySet ( String busName , String uuid , boolean newSet ) throws SIBExceptionDestinationNotFound , SIBExceptionBase { return _localistySet ; }
Hence just setting set to the current ME UUID
25,717
public void setDiscardMsgsAfterQueueDeletion ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "setDiscardMsgsAfterQueueDeletion" ) ; SibTr . exit ( tc , "setDiscardMsgsAfterQueueDeletion" ) ; } _discardMsgsAfterQueueDeletion = true ; }
Set _discardMsgsAfterQueueDeletion to true .
25,718
public SIBUuid8 mapMeNameToUuid ( String name ) { SIBUuid8 result = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "mapMeNameToUuid" , name ) ; if ( name != null ) { if ( name . equals ( getMessagingEngineName ( ) ) ) result = getMessagingEngineUuid ( ) ; else ; }...
Map the name of an ME to its Uuid .
25,719
final public boolean isSingleServer ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isSingleServer" ) ; if ( ! _singleServerSet ) { JsAdminService service = JsMainAdminComponentImpl . getJsAdminService ( ) ; if ( service . isInitialized ( ) ) _isSingleServer = serv...
Returns whether the ME is running as part of a stand alone server .
25,720
public void setRuntimeEventListener ( RuntimeEventListener listener ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setRuntimeEventListener" , listener ) ; _runtimeEventListener = listener ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) S...
Set MessageProcessor s RuntimeEventListener .
25,721
public RuntimeEventListener getRuntimeEventListener ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getRuntimeEventListener" ) ; SibTr . exit ( tc , "getRuntimeEventListener" , _runtimeEventListener ) ; } return _runtimeEventListener ; }
Get MessageProcessor s RuntimeEventListener .
25,722
private void fireNotAuthenticatedEvent ( String userName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "fireNotAuthenticatedEvent" , userName ) ; if ( _runtimeEventListener != null ) { String message = nls . getFormattedMessage ( "USER_NOT_AUTHORIZED_ERROR_CWSIP0301...
Fire an event notification of type TYPE_SIB_SECURITY_NOT_AUTHENTICATED with reason SECURITY_REASON_NOT_AUTHENTICATED .
25,723
public Alarm create ( long delta , int percentLate , AlarmListener listener , Object context ) throws SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "create" , new Object [ ] { this , Long . valueOf ( delta ) , Integer . valueOf ( percentLate ) , liste...
Create a new alarm .
25,724
public synchronized void cancelAll ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "cancelAll" , this ) ; _cancelAll = true ; LinkedList oldPendingList = null ; LinkedList oldFiredList = null ; synchronized ( _firedAlarmsLock ) { synchronized ( _pendingAlarmsLock ) ...
cancel all of the alarms which are currenly registered .
25,725
public void stopThread ( StoppableThreadCache threadCache ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stopThread" ) ; cancelAll ( ) ; _alarmThread . finishAlarmThread ( ) ; threadCache . deregisterThread ( this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) &&...
Tell the alarm manager to finish and stop it s alarm thread .
25,726
public void setExcludeClassLevelInterceptors ( boolean exclude ) throws EJBConfigurationException { if ( ivBindingStyle == BindingStyle . STYLE3 || ivBindingStyle == BindingStyle . STYLE4 ) { ivExcludeClassLevelInterceptors = ( exclude ) ? Boolean . TRUE : Boolean . FALSE ; } else { Tr . error ( tc , "INVALID_EXCLUDE_C...
Set whether to exclude class level interceptors from a method level EJBInterceptorBinding object .
25,727
public void setExcludeDefaultInterceptors ( boolean exclude ) throws EJBConfigurationException { if ( ivBindingStyle == BindingStyle . STYLE1 ) { Tr . error ( tc , "INVALID_EXCLUDE_DEFAULT_INTERCEPTORS_CNTR0225E" ) ; throw new EJBConfigurationException ( " CNTR0225E: Invalid use of the exclude-default-interceptors" + "...
Set whether to exclude default interceptors from either a class or method level EJBInterceptorBinding object .
25,728
public void dump ( ) { Object allData [ ] = new Object [ ] { this , "EJBName = " + ivEjbName , "method name = " + ivMethodName , "method parameters = " + ivMethodParms , "binding style = " + ivBindingStyle , "exclude default inteceptors = " + ivExcludeDefaultL...
Perform a Tr . dump of this EJBInterceptorBinding object .
25,729
public Object nextElemNoEx ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( ivElementIndex >= ivBucketSize ) { if ( ! findNextBucket ( ) ) { return null ; } } if ( isTraceOn && tc . isDebugEnabled ( ) ) ivElementsReturned ++ ; return ivBucket [ ivElementIndex ++ ] ; }
d532639 . 2
25,730
public void dispose ( ) { if ( _cacheFile != null && _dirty ) { PrintStream out = null ; try { File parent = _cacheFile . getParentFile ( ) ; if ( parent . isDirectory ( ) || parent . mkdirs ( ) ) { out = new PrintStream ( _cacheFile ) ; for ( List < Resource > bundleInfoList : _cacheBySymbolicName . values ( ) ) { for...
This method is called once provisioning is over . It flushes the cache and clears up memory . After this is called future calls to public methods will fail .
25,731
public File selectBundle ( String baseLocation , final String symbolicName , final VersionRange versionRange ) { readCache ( ) ; return selectResource ( baseLocation , symbolicName , versionRange ) ; }
This method selects bundles based on the input criteria . The first parameter is the baseLocation . This can be null the empty string a directory a comma separated list of directories or a file path relative to the install . If it is a file path then that exact bundle is returned irrespective of other selection paramet...
25,732
protected synchronized void includeBaseLocation ( String baseLocation ) { _locations . add ( baseLocation ) ; if ( _cacheRead ) { File [ ] files = new File ( _installDir , baseLocation ) . listFiles ( new FileFilter ( ) { public boolean accept ( File arg0 ) { return arg0 . getName ( ) . endsWith ( ".jar" ) && ! ! ! _bu...
This method scans the provided location under the install dir . It looks at all the jar files in that directory and provided the file isn t in the cache it ll read the manifest and add it into memory .
25,733
@ FFDCIgnore ( IOException . class ) private synchronized void readCache ( ) { if ( ! ! ! _cacheRead ) { BufferedReader reader = null ; try { if ( _cacheFile != null && _cacheFile . exists ( ) && _cacheFile . isFile ( ) ) { reader = new BufferedReader ( new FileReader ( _cacheFile ) ) ; String line ; while ( ( line = r...
This method reads the cache . Each line in the file represents a different bundle . The BundleInfo constructor reads the cache line and validates the data re - reading from the bundle manifest if required .
25,734
private void addToCache ( BundleInfo bInfo ) { List < Resource > info = _cacheBySymbolicName . get ( bInfo . symbolicName ) ; if ( info == null ) { info = new ArrayList < Resource > ( ) ; info . add ( bInfo ) ; } info = _cacheBySymbolicName . putIfAbsent ( bInfo . symbolicName , info ) ; if ( info != null ) { synchroni...
This method adds into the cache . Adding into the cache requires updating a map and a set .
25,735
public static int registerDiagnosticModule ( DiagnosticModule diagnosticModule , String packageName ) { if ( modules . containsKey ( packageName ) ) { return 1 ; } try { diagnosticModule . init ( ) ; } catch ( Throwable th ) { return 3 ; } modules . put ( packageName , diagnosticModule ) ; return 0 ; }
Register a diagnostic module
25,736
public static boolean deregisterDiagnosticModule ( String packageName ) { if ( modules . containsKey ( packageName ) ) { modules . remove ( packageName ) ; return true ; } else return false ; }
Deregister a diagnostic module for a package
25,737
public Subject replaceCallerSubject ( Subject callerSubject ) { SubjectThreadContext subjectThreadContext = getSubjectThreadContext ( ) ; Subject replacedCallerSubject = subjectThreadContext . getCallerSubject ( ) ; subjectThreadContext . setCallerSubject ( callerSubject ) ; return replacedCallerSubject ; }
Replaces the caller subject on the thread and returns the replaced subject .
25,738
public Subject replaceInvocationSubject ( Subject invocationSubject ) { SubjectThreadContext subjectThreadContext = getSubjectThreadContext ( ) ; Subject replacedInvocationSubject = subjectThreadContext . getInvocationSubject ( ) ; subjectThreadContext . setInvocationSubject ( invocationSubject ) ; return replacedInvoc...
Replaces the invocation subject on the thread and returns the replaced subject .
25,739
public static InstallKernel getInstance ( File installRoot ) { if ( installKernel == null ) { installKernel = new InstallKernelImpl ( installRoot ) ; } return installKernel ; }
Return the singleton instance of InstallKernel . The instance will be reset if the installRoot is changed .
25,740
public boolean hasNext ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "hasNext" , this ) ; boolean hasNext = false ; if ( ( ! _empty ) && ( ( _singleObject != null ) || ( ( _iterator1 != null ) && ( _iterator1 . hasNext ( ) ) ) || ( ( _iterator2 != null ) && ( _iterator2 . hasNext ( ) ) ) ) ) { hasNext = true ;...
Returns a boolean flag to indicate if this LogCursorImpl has further objects to return .
25,741
public static String getPid ( ) { if ( pid == null ) { String runtimeName = ManagementFactory . getRuntimeMXBean ( ) . getName ( ) ; if ( runtimeName == null ) { pid = "unknown" ; } else { int index = runtimeName . indexOf ( '@' ) ; if ( index < 0 ) { pid = runtimeName ; } else { pid = runtimeName . substring ( 0 , ind...
Retrieves process ID for the current process .
25,742
public URBridgeEntity createObject ( Entity entity , URBridge urBridge , Map < String , String > attrMap , String baseEntryName , Map < String , String > entityConfigMap ) throws WIMException { String entityType = entity . getTypeName ( ) ; URBridgeEntity obj = null ; if ( Service . DO_GROUP . equals ( entityType ) || ...
Create a URBridgeEntity from input parameters . With inheritance this allows Users and Groups to be treated identically .
25,743
private void takeCloseLock ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "takeCloseLock" ) ; while ( true ) { try { closeLock . readLock ( ) . lockInterruptibly ( ) ; break ; } catch ( InterruptedException e ) { } } if ( TraceComponent . isAnyTracingEnabled...
Take a reader lock on the close synchronization primative .
25,744
private void releaseCloseLock ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "releaseCloseLock" ) ; closeLock . readLock ( ) . unlock ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "releaseCloseLoc...
Release a reader lock on the close synchronization primative .
25,745
private static void initialize ( ) throws AsyncException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "initialize" ) ; } capabilities = aio_init ( MAX_IDENTIFIERS , AsyncException . class ) ; aioInitialized = AIO_INITIALIZED ; if ( TraceComponent . isAnyTracingEnabled...
Initialize the provider .
25,746
public static void shutdown ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "shutdown" ) ; } synchronized ( oneAtATime ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "have lock" ) ; } if ( aioInitialized == AIO_INIT...
Shutdown the AIO library .
25,747
public static IAsyncProvider getInstance ( ) { if ( instance != null ) { return instance ; } try { return createInstance ( ) ; } catch ( AsyncException x ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Error getting async provider instance, exception: " + x . getMessa...
Get the singleton instance of the async library .
25,748
public static synchronized IAsyncProvider createInstance ( ) throws AsyncException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "createInstance" ) ; } if ( instance == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( t...
Find or create the AIO provider .
25,749
public static IOException getIOException ( String desc , int code ) { return new IOException ( desc + ErrorMessageCache . get ( code ) ) ; }
Get an IOException instance for the input description and native AIO return coded .
25,750
public CompatibilityMap getCompatibility ( JSchema access ) throws JMFSchemaViolationException { CompatibilityMap ans = null ; if ( compMaps == null ) compMaps = new HashedArray ( COMP_MAP_BUCKETS , 2 ) ; else ans = ( CompatibilityMap ) compMaps . get ( access . getID ( ) ) ; if ( ans != null ) return ans ; ans = new C...
Find the CompatibilityMap from a given access JSchema to this JSchema
25,751
public int getAccessor ( String name ) { if ( name == null ) name = "" ; StringTokenizer path = new StringTokenizer ( name , "/" ) ; JMFType pos = getEffectiveType ( jsTypeTree ) ; while ( pos != null && path . hasMoreTokens ( ) ) pos = findChild ( getEffectiveType ( pos ) , path . nextToken ( ) ) ; if ( pos instanceof...
Resolve a symbolic name to an accessor
25,752
private JMFType findChild ( JMFType start , String segment ) { if ( start instanceof JSPrimitive || start instanceof JSDynamic || start instanceof JSEnum ) return null ; if ( segment . charAt ( 0 ) == '[' ) return findChildByIndex ( start , Integer . parseInt ( segment . substring ( 1 , segment . length ( ) - 1 ) ) ) ;...
called on it .
25,753
private JMFType findVariantChildByName ( JSVariant var , String name ) { for ( int i = 0 ; i < var . getCaseCount ( ) ; i ++ ) { JMFType theCase = getEffectiveType ( var . getCase ( i ) ) ; String caseName = theCase . getFeatureName ( ) ; if ( caseName != null && caseName . equals ( name ) ) return theCase ; } return n...
Find the child of a variant by name
25,754
private JMFType findTupleChildByName ( JSTuple tup , String name ) { for ( int i = 0 ; i < tup . getFieldCount ( ) ; i ++ ) { JMFType theField = getEffectiveType ( tup . getField ( i ) ) ; String fieldName = theField . getFeatureName ( ) ; if ( fieldName != null && fieldName . equals ( name ) ) return theField ; } retu...
Find the child of a tuple by name
25,755
public int getCaseIndex ( int accessor , String name ) { JMFFieldDef field = getFieldDef ( accessor ) ; if ( ! ( field instanceof JSVariant ) ) return - 1 ; JMFType target = findVariantChildByName ( ( JSVariant ) field , name ) ; if ( target != null ) return getEffectiveSiblingPosition ( target ) ; else return - 1 ; }
Resolve a case name to a case index
25,756
public String getPathName ( int accessor ) { JMFFieldDef field = getFieldDef ( accessor ) ; if ( field == null ) return null ; if ( field instanceof JSVariant && ( ( JSVariant ) field ) . getBoxed ( ) != null ) return null ; return getPathName ( field ) ; }
Return the most informative possible path name for an accessor
25,757
public String getPathName ( JMFType type ) { if ( type instanceof JSVariant ) { JMFType boxedBy = ( ( JSVariant ) type ) . getBoxedBy ( ) ; if ( boxedBy != null ) type = boxedBy ; } JMFType parent = type . getParent ( ) ; while ( parent instanceof JSRepeated ) parent = parent . getParent ( ) ; if ( parent == null ) ret...
Return the most informative possible path name for a JMFType
25,758
private void initialize ( Map context ) { context . put ( jsTypeTree , this ) ; List tmpFields = new ArrayList ( ) ; List tmpVariants = new ArrayList ( ) ; number ( jsTypeTree , context , false , 0 , tmpFields , tmpVariants ) ; fields = ( JSField [ ] ) tmpFields . toArray ( new JSField [ 0 ] ) ; variants = ( JSVariant ...
calculates the multiChoiceCounts for each node in the tree .
25,759
private void setAccessors ( int bias , JMFSchema schema ) { int nextBoxBias = bias + fields . length + variants . length ; for ( int i = 0 ; i < fields . length ; i ++ ) { JSField field = fields [ i ] ; if ( field instanceof JSVariant ) { JSchema boxed = ( JSchema ) ( ( JSVariant ) field ) . getBoxed ( ) ; boxed . setA...
permits retrieval of accessors relative to box schemas as well as the public schema .
25,760
protected String getBaseURL ( HttpServletRequest request ) { String reqPrefix = request . getRequestURL ( ) . toString ( ) ; String pathInfo = request . getPathInfo ( ) == null ? "" : request . getPathInfo ( ) ; if ( ! "/" . equals ( pathInfo ) || reqPrefix . endsWith ( "/" ) ) { StringBuilder sb = new StringBuilder ( ...
Calculate the base URL based on the HttpServletRequest instance
25,761
public synchronized void postInvoke ( int id , EJSDeployedSupport s ) throws RemoteException { super . postInvoke ( id , s ) ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "postInvoke" ) ; } if ( ivSfFailoverClient != null ) { if ( ...
LIDB2018 - 1 - added method .
25,762
public static int copyWsByteBuffer ( WsByteBuffer src , WsByteBuffer dst , int amount ) { int amountCopied = amount ; int dstRemaining = dst . remaining ( ) ; int srcRemaining = src . remaining ( ) ; if ( amountCopied > dstRemaining ) amountCopied = dstRemaining ; if ( amountCopied > srcRemaining ) amountCopied = srcRe...
Copies up to amount bytes from src to dst . Returns the number of bytes actually copied .
25,763
public void processNack ( ControlNack nm ) throws SIResourceException { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processNack" , nm ) ; long startstamp = nm . getStartTick ( ) ; long endstamp = nm . getEndTick ( ) ; synchronized ( this ) { iststream . setCursor ( startstamp ) ; boolean changed = false ; Tick...
This method sends Nacks for any ticks within the range startstamp to endstamp which are in Unknown state Those in Requested should already be being satisfied
25,764
public void processAckExpected ( long stamp ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processAckExpected" , new Object [ ] { new Long ( stamp ) } ) ; synchronized ( this ) { sendAck ( ) ; if ( stamp > iack ) { try { upControl . sendNackMessage ( null , null , null , iack + 1 , stamp , priority , reliabil...
This method will send an Ack up to the current aggregated Ack prefix and send a Nack for any ticks after this
25,765
public HttpRequestMessageImpl getRequest ( ) { HttpRequestMessageImpl req = ( HttpRequestMessageImpl ) this . reqPool . get ( ) ; if ( null == req ) { req = new HttpRequestMessageImpl ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "getRequest(): " + req ) ; } retu...
Retrieve an uninitialized request message .
25,766
public HttpRequestMessageImpl getRequest ( HttpInboundServiceContext hsc ) { HttpRequestMessageImpl req = getRequest ( ) ; req . init ( hsc ) ; return req ; }
Retrieve an incoming request object from the factory .
25,767
public HttpRequestMessageImpl getRequest ( HttpOutboundServiceContext hsc ) { HttpRequestMessageImpl req = getRequest ( ) ; req . init ( hsc ) ; return req ; }
Retrieve an outgoing request object from the factory .
25,768
public void releaseRequest ( HttpRequestMessageImpl request ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "releaseRequest: " + request ) ; } this . reqPool . put ( request ) ; }
Return a request object to the factory for pooling .
25,769
public HttpResponseMessageImpl getResponse ( ) { HttpResponseMessageImpl resp = ( HttpResponseMessageImpl ) this . respPool . get ( ) ; if ( null == resp ) { resp = new HttpResponseMessageImpl ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "getResponse(): " + resp...
Retrieve an uninitialized response message .
25,770
public HttpResponseMessageImpl getResponse ( HttpInboundServiceContext hsc ) { HttpResponseMessageImpl resp = getResponse ( ) ; resp . init ( hsc ) ; return resp ; }
Retrieve an outgoing response object from the factory .
25,771
public HttpResponseMessageImpl getResponse ( HttpOutboundServiceContext hsc ) { HttpResponseMessageImpl resp = getResponse ( ) ; resp . init ( hsc ) ; return resp ; }
Retrieve an incoming response object from the factory .
25,772
public void releaseResponse ( HttpResponseMessageImpl response ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "releaseResponse: " + response ) ; } this . respPool . put ( response ) ; }
Return a response object to the factory for pooling .
25,773
public void releaseTrailers ( HttpTrailersImpl h ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "releaseTrailers: " + h ) ; } this . hdrPool . put ( h ) ; }
Return a trailers object to the pool .
25,774
public void setStartUpWeight ( Integer weight ) { this . previousWeight = this . startUpWeight ; if ( weight != null ) { if ( weight . intValue ( ) >= 0 ) this . startUpWeight = weight ; else this . startUpWeight = DEFAULT_STARTUP ; } else { this . startUpWeight = DEFAULT_STARTUP ; } if ( this . context != null ) this ...
Sets the startUpWeight . A null value is translated to the default weight .
25,775
public synchronized CommsServerByteBuffer allocate ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "allocate" ) ; CommsServerByteBuffer buff = ( CommsServerByteBuffer ) super . allocate ( ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "allocate" , buff ) ; return buff ; }
Gets a CommsString from the pool . Any CommsString returned will be initially null .
25,776
public static String getOption ( String key , boolean forceFormat , Object ... args ) { String option = options . getString ( key ) ; if ( forceFormat || args . length > 0 ) { return MessageFormat . format ( option , args ) ; } else { return option ; } }
get the string from options resource bundle . if forceFormat is set to true or args has value the code invokes MessageFormat . format method even args is not set . This is for processing double single quotes . Since NLS_MESSAGEFORMAT_ALL is set for options resource bundle every single quote character which needs to be ...
25,777
protected UIComponent createVerbatimComponentFromBodyContent ( ) { UIOutput verbatimComp = null ; if ( bodyContent != null ) { String strContent = bodyContent . getString ( ) ; if ( strContent != null ) { String trimmedContent = strContent . trim ( ) ; if ( trimmedContent . length ( ) > 0 && ! isComment ( strContent ) ...
Creates a UIComponent from the BodyContent
25,778
protected void encodeBegin ( ) throws IOException { if ( log . isLoggable ( Level . FINE ) ) { log . fine ( "Entered encodeBegin for client-Id: " + _componentInstance . getClientId ( getFacesContext ( ) ) ) ; } _componentInstance . encodeBegin ( getFacesContext ( ) ) ; if ( log . isLoggable ( Level . FINE ) ) { log . f...
Invoke encodeBegin on the associated UIComponent . Subclasses can override this method to perform custom processing before or after the UIComponent method invocation .
25,779
private void popTag ( ) { Stack < UIComponentClassicTagBase > stack = getStack ( pageContext ) ; int size = stack . size ( ) ; stack . remove ( size - 1 ) ; if ( size <= 1 ) { pageContext . removeAttribute ( COMPONENT_STACK_ATTR , PageContext . REQUEST_SCOPE ) ; } }
The pageContext s request scope map is used to hold a stack of JSP tag objects seen so far so that a new tag can find the parent tag that encloses it . Access to the parent tag is used to find the parent UIComponent for the component associated with this tag plus some other uses .
25,780
@ SuppressWarnings ( "unchecked" ) private void removeFormerFacets ( UIComponent component ) { List < String > formerFacetNames = ( List < String > ) component . getAttributes ( ) . get ( FORMER_FACET_NAMES_SET_ATTR ) ; if ( formerFacetNames != null ) { for ( String facetName : formerFacetNames ) { if ( _facetsAdded ==...
See removeFormerChildren .
25,781
private boolean checkFacetNameOnParentExists ( UIComponentClassicTagBase parentTag , String facetName ) { return parentTag . _facetsAdded != null && parentTag . _facetsAdded . contains ( facetName ) ; }
check if the facet is already added to the parent
25,782
private void addFacetNameToParentTag ( UIComponentClassicTagBase parentTag , String facetName ) { if ( parentTag . _facetsAdded == null ) { parentTag . _facetsAdded = new ArrayList < String > ( ) ; } parentTag . _facetsAdded . add ( facetName ) ; }
Notify the enclosing JSP tag of the id of this facet s id . The parent tag will later delete any existing view facets that were not seen during this rendering phase ; see doEndTag for details .
25,783
public static String listCustom ( ) throws UnsupportedConfigurationException { String output = null ; if ( cms != null && ! cms . isEmpty ( ) ) { if ( cms . size ( ) != 1 ) { String message = composeMultipleCustomErrorMessage ( cms ) ; throw new UnsupportedConfigurationException ( message ) ; } output = CustomUtils . t...
Returns the list of custom password encryption if exists . This method only works under the command line utility environment .
25,784
public static byte [ ] decipher ( byte [ ] encrypted_bytes , String crypto_algorithm ) throws InvalidPasswordCipherException , UnsupportedCryptoAlgorithmException { if ( crypto_algorithm == null ) { logger . logp ( Level . SEVERE , PasswordCipherUtil . class . getName ( ) , "decipher" , "PASSWORDUTIL_UNKNOWN_ALGORITHM"...
Decipher the input password using the provided algorithm .
25,785
public static byte [ ] encipher ( byte [ ] decrypted_bytes , String crypto_algorithm ) throws InvalidPasswordCipherException , UnsupportedCryptoAlgorithmException { EncryptedInfo info = encipher_internal ( decrypted_bytes , crypto_algorithm , ( String ) null ) ; return info . getEncryptedBytes ( ) ; }
Encipher the raw password using the provided algorithm .
25,786
public String getRequiredConfigAttributeWithDefaultValueAndConfigId ( Map < String , Object > props , String key , String defaultValue , String configId ) { String result = getAndTrimConfigAttribute ( props , key ) ; if ( key != null && result == null ) { if ( defaultValue != null ) { result = defaultValue ; } else { l...
Returns the value for the configuration attribute matching the key provided . If the value does not exist or is empty the provided default value will be returned . If the default value is also null an error message will be logged .
25,787
public static String toRelSec ( long baseNS , long actualNS , int pad ) { return toAbsSec ( actualNS - baseNS , pad ) ; }
Display the difference between two nano - seconds values as a decimal seconds value .
25,788
public static String toAbsSec ( long nano , int padLeft ) { if ( nano < 0 ) { return "-" + toAbsSec ( - 1 * nano , padLeft ) ; } else if ( nano == 0 ) { return PAD . substring ( 0 , padLeft ) + "." + PAD . substring ( PAD_RIGHT ) ; } String nanoText = Long . toString ( nano ) ; int nanoDigits = nanoText . length ( ) ; ...
Display a nano - seconds value as a decimal seconds value .
25,789
public void dispose ( ) { storeCache ( ) ; autoFeatures = null ; knownFeatures = null ; knownBadFeatures = null ; for ( SubsystemFeatureDefinitionImpl def : cachedFeatures . values ( ) ) { def . setProvisioningDetails ( null ) ; } }
Release all resources associated with the provisioning operation
25,790
public void storeCache ( ) { if ( cacheOk && cacheRes != null && isDirty ) { OutputStream out = null ; try { out = cacheRes . putStream ( ) ; PrintWriter writer = new PrintWriter ( new OutputStreamWriter ( out , "UTF-8" ) ) ; for ( SubsystemFeatureDefinitionImpl entry : cachedFeatures . values ( ) ) { ImmutableAttribut...
Write the feature cache file
25,791
private Set < String > readFeatureNameList ( String line ) { String [ ] parts = FeatureDefinitionUtils . installedFeatureSplitPattern . split ( line ) ; return parts . length > 0 ? Collections . unmodifiableSet ( new HashSet < String > ( Arrays . asList ( parts ) ) ) : Collections . < String > emptySet ( ) ; }
Read the list of feature names from the cache string
25,792
public void setInstalledFeatures ( Set < String > newInstalledFeatures , Set < String > newConfiguredFeatures , boolean configurationError ) { Set < String > current = installedFeatures ; if ( ! current . equals ( newInstalledFeatures ) ) { isDirty = true ; } if ( newInstalledFeatures . isEmpty ( ) ) installedFeatures ...
Change the active list of installed features
25,793
public static String lowerFeature ( String inFeature ) { if ( inFeature == null || inFeature . isEmpty ( ) ) return inFeature ; int colonIndex = inFeature . indexOf ( ":" ) ; if ( colonIndex > - 1 && inFeature . length ( ) > colonIndex ) { return inFeature . substring ( 0 , colonIndex ) . trim ( ) + ':' + inFeature . s...
Get feature name with product extension unchanged and the feature name converted to lower case .
25,794
public void removeInstalledFeature ( String feature ) { this . configurationError = true ; HashSet < String > newInstalledFeatures = new HashSet < > ( installedFeatures ) ; if ( newInstalledFeatures . remove ( feature ) ) { installedFeatures = newInstalledFeatures . isEmpty ( ) ? Collections . < String > emptySet ( ) :...
Remove an installed feature from the list . This is intended to be used to remove features that failed during bundle resolution because of java version restrictions .
25,795
public WebTarget target ( UriBuilder builder ) { checkClosed ( ) ; WebTargetImpl wt = ( WebTargetImpl ) super . target ( builder ) ; JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean ( ) ; URI uri = builder . build ( ) ; bean . setAddress ( uri . toString ( ) ) ; WebClient targetClient = bean . createWebClient (...
override this method then put our webclient into cxf client API
25,796
public void close ( ) { if ( closed . compareAndSet ( false , true ) ) { super . close ( ) ; synchronized ( baseClients ) { for ( WebClient wc : baseClients ) { wc . close ( ) ; } } String moduleName = getModuleName ( ) ; synchronized ( clientsPerModule ) { List < JAXRSClientImpl > clients = clientsPerModule . get ( mo...
make the cxf ClientImpl . close works and we should close all clients too
25,797
public SocketIOChannel createOutboundSocketIOChannel ( ) throws IOException { SocketChannel channel = SocketChannel . open ( ) ; Socket socket = channel . socket ( ) ; return NioSocketIOChannel . createIOChannel ( socket , this ) ; }
LIDB3618 - 2 add method
25,798
public static void displayChannels ( TraceComponent logger , ChannelFramework cfw , String message , String prefix ) { if ( logger . isDebugEnabled ( ) ) { chTrace . traceChannels ( logger , cfw , message , prefix ) ; } }
Print channel configuration - for debug .
25,799
protected void debugTrace ( Object logTool , String msg , Object ... parameters ) { Tr . debug ( ( TraceComponent ) logTool , msg , parameters ) ; }
Debug trace using either Tr or Logger