idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
164,300
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 .
446
12
164,301
protected void addHome ( BeanMetaData bmd ) throws ContainerException { try { EJSContainer . homeOfHomes . addHome ( bmd ) ; //d200714 d429866.2 F743-26072 } catch ( Throwable ex ) { ContainerException ex2 = new ContainerException ( ex ) ; Tr . error ( tc , "CAUGHT_EXCEPTION_THROWING_NEW_EXCEPTION_CNTR0035E" , new Obje...
Adds a home to make it externally accessible .
124
9
164,302
protected EJSHome initializeDeferredEJBImpl ( HomeRecord hr ) throws ContainerException , EJBConfigurationException { BeanMetaData bmd = hr . getBeanMetaData ( ) ; Object originalLoader = ThreadContextAccessor . UNCHANGED ; try { if ( ! bmd . fullyInitialized ) // d664917.1 { // The server class loader must be used dur...
Actually initializes the deferred EJB . Assumes that a runtime thread context has already been established .
437
20
164,303
protected ReferenceContext createReferenceContext ( BeanMetaData bmd ) // F743-29417 { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createReferenceContext: " + bmd . j2eeName ) ; if ( bmd . ivReferenceContext == null ) { bmd . ivRefe...
Creates the reference context for this EJB .
181
10
164,304
private void finishBMDInit ( BeanMetaData bmd ) throws ContainerException , EJBConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "finishBMDInit: " + bmd . j2eeName ) ; // d640935.1 // First, create the reference context for the bean if we haven't alrea...
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 .
211
50
164,305
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 .
71
36
164,306
private EJSHome fireMetaDataCreatedAndStartBean ( BeanMetaData bmd ) // d648522 throws ContainerException { if ( ! bmd . isManagedBean ( ) ) // F743-34301.1 { try { // Fire the ComponentMetaData event to the listeners // (ie. we have loaded a new bean folks... ) if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isD...
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...
233
65
164,307
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
284
10
164,308
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 .
200
12
164,309
private synchronized final boolean _declareDiscardable ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "_declareDiscardable" ) ; boolean linkHasBecomeReleasable = false ; // Only discardable if storage managed (items and item references only). // Putting this...
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 .
347
44
164,310
private synchronized final boolean _declareNotDiscardable ( AbstractItem item ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "_declareNotDiscardable" ) ; boolean notifyRequired = false ; // we are going to need the item in memory, so we make sure that // we pi...
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 .
221
47
164,311
private final AbstractItem _getAndAssertItem ( ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "_getAndAssertItem" ) ; AbstractItem item = null ; synchronized ( this ) { item = _strongReferenceToItem ; } // Defect 601995 if ( item ==...
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 .
194
39
164,312
@ Override public final void persistRedeliveredCount ( int redeliveredCount ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "persistRedeliveredCount" ) ; PersistentTransaction msTran = ( PersistentTransaction ) getMessageStore...
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 .
346
54
164,313
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
410
5
164,314
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
447
6
164,315
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
103
29
164,316
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 we did n...
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 ...
752
80
164,317
private final void setInMemoryItemSize ( AbstractItem item ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setInMemoryItemSize" , item ) ; // If we have an Item, we can ask it for its estimated size. if ( item != null ) { _inMemoryItemSize = item . getInMemory...
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 .
214
42
164,318
final boolean isExpired ( ) throws SevereMessageStoreException { // 182086 if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isExpired" ) ; if ( isAvailable ( ) && internalCanExpire ( ) ) { // we can only expire if we are available long expiryTime = _tuple . getExpi...
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 .
371
39
164,319
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 .
258
19
164,320
@ Override 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 ) { P...
Use this to lock persistently . Invoke indirectly by the API .
176
14
164,321
@ Override public final List < DataSlice > readDataFromPersistence ( ) throws SevereMessageStoreException { List < DataSlice > dataSlices ; // lazy restoration only needed if the item was stored. There is // no point trying to restore if there is no data. PersistentMessageStore pm = getMessageStoreImpl ( ) . getPersist...
Feature SIB0112le . ms . 1
194
10
164,322
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
239
20
164,323
@ Override public final void releaseIfDiscardable ( ) throws SevereMessageStoreException { boolean unlink = false ; // flag so we can unlink outside sync block if ( isStoreNever ( ) ) { synchronized ( this ) { if ( ItemLinkState . STATE_AVAILABLE == _itemLinkState ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc...
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 .
204
43
164,324
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
143
9
164,325
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
114
12
164,326
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 .
71
15
164,327
private void setLocation ( String _location ) { String res = null ; File resFile = null ; boolean relativePath = true ; boolean defaultPath = false ; // try as "absolute" resource (contains symbol, or absolute path) try { res = cfgSvc . resolveString ( _location ) ; resFile = new File ( res ) ; relativePath = ! resFile...
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 .
466
50
164,328
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 .
46
18
164,329
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 .
46
16
164,330
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 .
57
13
164,331
public String getLocation ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "getLocation -> " + location ) ; } return this . location ; }
Query the location of this keystore .
51
8
164,332
public long getPollingRate ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getPollingRate returning " + pollingRate ) ; return this . pollingRate ; }
Query the monitor interval
55
4
164,333
public String getTrigger ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getTrigger returning " + trigger ) ; return this . trigger ; }
Query the file monitoring trigger
49
5
164,334
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 .
61
9
164,335
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 .
668
10
164,336
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 .
271
7
164,337
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 .
356
28
164,338
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 .
374
18
164,339
public static InputStream openKeyStore ( String fileName ) throws MalformedURLException , IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "openKeyStore: " + fileName ) ; URL urlFile = null ; // Check if the filename exists as a File. File kfile = new File ( fil...
The purpose of this method is to open the passed in file which represents the key store .
247
18
164,340
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 .
823
14
164,341
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 .
156
12
164,342
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
129
11
164,343
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
453
9
164,344
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 ; } // i - pointer in eyeCatcher, p - in the buffer....
assumption that the EYE_CATCHER does not have repeatable bytes .
307
17
164,345
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
145
4
164,346
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
132
7
164,347
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
112
53
164,348
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 .
385
30
164,349
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 .
126
11
164,350
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 .
153
18
164,351
public Stream getStream ( int priority , Reliability reliability ) throws SIResourceException { return getSubset ( reliability ) . getStream ( priority ) ; }
Get a specific stream based on priority and reliability
34
9
164,352
public SIBUuid12 getDestUuid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getDestUuid" ) ; SibTr . exit ( tc , "getDestUuid" , destID ) ; } return destID ; }
Get the destination Uuid
78
5
164,353
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
102
5
164,354
public SIBUuid8 getBusUuid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getBusUuid" ) ; SibTr . exit ( tc , "getBusUuid" , busID ) ; } return busID ; }
Get the bus Uuid
78
5
164,355
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
75
7
164,356
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 .
75
9
164,357
protected void setPersistentData ( int priority , Reliability reliability , long completedPrefix ) throws SIResourceException { getSubset ( reliability ) . setPersistentData ( priority , completedPrefix ) ; }
Set the persistent data for a specific stream
46
8
164,358
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
137
8
164,359
private boolean isOverFileLimit ( int addition ) { if ( LogFile . UNLIMITED == getMaximumSize ( ) ) { return false ; } // Note: to do this properly, we need to know if the admin updates the // file externally, i.e. 'cat /dev/null > file' to clear it out. Windows // JDK filechannel.size() was a buffered value (AIX was n...
Query whether the input amount will push the log file over the maximum allowed size .
163
16
164,360
private void renameFile ( File source , File target ) { if ( ! source . exists ( ) ) { // don't do anything if the source file doesn't exist return ; } if ( target . exists ( ) ) { target . delete ( ) ; } boolean rc = source . renameTo ( target ) ; if ( ! rc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isD...
Rename the source file into the target file deleting the target if necessary .
123
15
164,361
private void addBackup ( ) { // move the current log file to the newly formatted backup name String newname = this . fileinfo + this . myFormat . format ( new Date ( HttpDispatcher . getApproxTime ( ) ) ) + this . extensioninfo ; File newFile = new File ( newname ) ; renameFile ( this . myFile , newFile ) ; // now see ...
Move the current logfile to a backup name taking care of any existing backup files according to the configured limit .
265
22
164,362
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 .
381
31
164,363
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 } ) ; /* Constant for binary to ...
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 .
288
28
164,364
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 .
49
15
164,365
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 ) ; // no of characters to be p...
Converts a hex string into a byte array holding the binary value . This code is reused from MA88 .
637
22
164,366
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
19
164,367
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 .
613
12
164,368
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 .
162
20
164,369
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
33
14
164,370
private void processReferencedTypes ( RegistryEntry pidEntry ) { //parent first, AD has a reference pid for ( ExtendedAttributeDefinition ad : pidEntry . getAttributeMap ( ) . values ( ) ) { if ( ad . getType ( ) == MetaTypeFactory . PID_TYPE ) { if ( ad . getReferencePid ( ) != null ) { RegistryEntry other = getRegist...
Keeps track of which OCDs are referenced by a PID type attribute in another OCD
506
17
164,371
protected final void unLock ( ObjectManagerState objectManagerState ) { synchronized ( objectManagerState . transactionUnlockSequenceLock ) { unlockSequence = objectManagerState . getNewGlobalTransactionUnlockSequence ( ) ; lockingTransaction = null ; } // synchronized. }
Releases the lock on the transaction .
57
8
164,372
protected void validateCertificate ( X509Certificate [ ] chain ) throws com . ibm . wsspi . security . wim . exception . CertificateMapFailedException { // validate the certificate array if ( chain == null || chain . length == 0 ) { throw new com . ibm . wsspi . security . wim . exception . CertificateMapFailedExceptio...
Validate an X509 certificate array .
129
8
164,373
protected IDAndRealm separateIDAndRealm ( String inputString ) throws WIMException { // initialize the method name String methodName = "seperateIDAndRealm" ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " " + "inputString = \"" + inputString + "\"" ) ; } String defaultRealm = getDefaultRealmName ( ) ...
Separate the ID and realm from an input String .
421
11
164,374
public boolean isIdentifierTypeProperty ( String inputProperty ) { // initialize the return value boolean returnValue = false ; // test the property if ( ( inputProperty != null ) && ( ( inputProperty . equals ( Service . PROP_UNIQUE_ID ) ) || ( inputProperty . equals ( Service . PROP_UNIQUE_NAME ) ) || ( inputProperty...
Test to see if a property is an IdentifierType property .
127
13
164,375
protected void createRealmDataObject ( Root inputRootObject , String inputRealm ) { // use the root DataGraph to create a Context DataGraph List < Context > contexts = inputRootObject . getContexts ( ) ; if ( contexts != null ) { Context ctx = new Context ( ) ; // set "WIM.Realm" in the Context DataGraph to the realm c...
Create a DataObject for the realm context .
122
9
164,376
protected void createPropertyControlDataObject ( Root inputRootDataObject , String inputProperty ) { // use the root DataGraph to create a PropertyControl DataGraph List < Control > propertyControls = inputRootDataObject . getControls ( ) ; PropertyControl propCtrl = null ; if ( propertyControls != null ) { propCtrl = ...
Create a DataObject for the property request .
123
9
164,377
protected String getRealInputAttrName ( String inputAttrName , String id , boolean isUser ) { boolean isInputAttrValueDN = UniqueNameHelper . isDN ( id ) != null ; boolean isInputAttrIdentifier = isIdentifierTypeProperty ( inputAttrName ) ; if ( ! isInputAttrIdentifier && isInputAttrValueDN ) { // To suppress the below...
get input securityName .
490
5
164,378
public String getDefaultRealmName ( ) { String returnRealm = getCoreConfiguration ( ) . getDefaultRealmName ( ) ; if ( returnRealm == null ) { returnRealm = urRealmName ; } return returnRealm ; }
Method to return the default realm
54
6
164,379
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 .
127
8
164,380
final WsResource getLTPAKeyFileResource ( WsLocationAdmin locService , String ltpaKeyFile ) { WsResource ltpaFile = locService . resolveResource ( ltpaKeyFile ) ; if ( ltpaFile != null && ltpaFile . exists ( ) ) { return ltpaFile ; } else { // The file does not exist so return null return null ; } }
Given the path to the LTPA key file return the WsResource for the file if the file exists .
89
22
164,381
void cleanupBoxedCache ( int boxedAccessor ) { for ( int i = 0 ; i < boxedCache . length ; i ++ ) if ( boxed [ i ] [ 0 ] == boxedAccessor ) boxedCache [ i ] = null ; }
Remove entries from the boxedCache after removing the entry from the main cache that they depend upon .
52
19
164,382
private JSON getJSON ( ) throws JSONMarshallException { if ( json == null ) { JSONSettings settings = new JSONSettings ( Include . NON_NULL ) ; json = JSONFactory . newInstance ( settings ) ; } return json ; }
Utility that returns a JSON object from a factory
50
10
164,383
public void setSubscriptionIDFilter ( String subscriptionId ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setSubscriptionIDFilter" , subscriptionId ) ; this . _subscriptionId = subscriptionId ; this . _destination = null ; this . _consumerDispatcherState = null ; if ( tc . isEntryEnabled ( ) ) SibTr . exit (...
setter to create a filter based on subscriptionId
100
10
164,384
public void setDestinationFilter ( SIBUuid12 destination ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setDestinationFilter" , destination ) ; this . _destination = destination ; this . _subscriptionId = null ; this . _consumerDispatcherState = null ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setDe...
setter to create a filter based on destination name
98
10
164,385
public void setConsumerDispatcherStateFilter ( ConsumerDispatcherState consumerDispatcherState ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setConsumerDispatcherStateFilter" , consumerDispatcherState ) ; this . _consumerDispatcherState = consumerDispatcherState ; this . _subscriptionId = null ; this . _dest...
setter to create a filter based on a specific consumer dispatcher state object
119
14
164,386
public boolean filterMatches ( AbstractItem item ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "filterMatches" , item ) ; /* Cast the incoming item to a subscriptionState object. if it is not, an * exception will be thrown and the match will fail */ ConsumerDispatcherState subState = null ; if ( item instance...
Callback method from messagestore
607
7
164,387
public boolean matchesToMicros ( LibertyVersion other ) { if ( other == null ) { return true ; } return this . major == other . major && this . minor == other . minor && this . micro == other . micro ; }
Matches the major minor and micro parts of this version to the other version
49
15
164,388
public void putCustomizedProperty ( String key , Object obj ) { if ( key == null || obj == null ) return ; customizedProperties . put ( key , obj ) ; }
put anything here such as J2EEName
38
10
164,389
PartialMatch newPartialMatch ( char [ ] key , PartialMatch pm ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "newPartialMatch" , "key: " + new String ( key ) + ", pm:" + pm ) ; PartialMatch ans = new PartialMatch ( key , pm , owner ) ; if ( tc . isEntryEnabled ( ) ) tc . exit ( this , cclass , "newPart...
An overrideable wrapper for the internal constructor
110
8
164,390
void put ( PatternWrapper pattern , Conjunction selector , MatchTarget object , InternTable subExpr ) throws MatchingException { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "put" , new Object [ ] { pattern , selector , object , subExpr } ) ; switch ( pattern . getState ( ) ) { case PatternWrapper . FINA...
Put a new Pattern or part thereof into this PartialMatch or its down - chain peers
552
17
164,391
void remove ( PatternWrapper pattern , Conjunction selector , MatchTarget object , InternTable subExpr , OrdinalPosition parentId ) throws MatchingException { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "remove" , new Object [ ] { pattern , selector , object , subExpr } ) ; switch ( pattern . getState (...
Remove a Pattern or part thereof from this PartialMatch or its down - chain peers
608
16
164,392
void get ( char [ ] chars , int start , int length , boolean invert , MatchSpaceKey msg , EvalCache cache , Object contextValue , SearchResults result ) throws MatchingException , BadMessageFormatMatchingException { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "get" , new Object [ ] { chars , new Integer...
Perform get operation on this PartialMatch and its descendents
407
12
164,393
void doPartialGet ( char [ ] chars , int start , int length , boolean invert , MatchSpaceKey msg , EvalCache cache , Object contextValue , SearchResults result ) throws MatchingException , BadMessageFormatMatchingException { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "doPartialGet" , new Object [ ] { c...
Take action when a portion of a String matches this PartialMatch but is not exhausted by it
258
18
164,394
private MatchManyWrapper findMatchManyWrapper ( PatternWrapper pattern ) { MatchManyWrapper wrapper = null ; if ( matchManyChildren != null ) { // Iterate over the matchManyChildren Iterator iter = matchManyChildren . iterator ( ) ; while ( iter . hasNext ( ) ) { MatchManyWrapper nextElement = ( MatchManyWrapper ) iter...
Locates a wrapped pattern + matcher pair where we ve been give a pattern .
139
17
164,395
@ Override public Principal getCallerPrincipal ( ) { synchronized ( this ) { if ( ( state == PRE_CREATE ) || ( state == CREATING ) || ( ! allowRollbackOnly ) ) throw new IllegalStateException ( ) ; } return super . getCallerPrincipal ( ) ; }
getCallerPrincipal is invalid if called within the setSessionContext method
65
15
164,396
public MQLinkHandler getMQLinkHandler ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getMQLinkHandler" ) ; SibTr . exit ( tc , "getMQLinkHandler" , _mqLinkHandler ) ; } return _mqLinkHandler ; }
Returns the MQLinkHandler .
73
7
164,397
public void markAsToBeDeleted ( Transaction transaction ) throws SIResourceException { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "markAsToBeDeleted" , transaction ) ; toBeDeleted = Boolean . TRUE ; try { requestUpdate ( transaction ) ; } catch ( MessageStoreException e ) { // MessageStoreException shouldn't o...
Mark this itemstream as awaiting deletion and harden the indicator
230
12
164,398
public NavigationCase getNavigationCase ( FacesContext facesContext , String fromAction , String outcome ) { NavigationContext navigationContext = new NavigationContext ( ) ; try { return getNavigationCommand ( facesContext , navigationContext , fromAction , outcome , null ) ; } finally { navigationContext . finish ( f...
Returns the navigation case that applies for the given action and outcome
68
12
164,399
private NavigationCase createNavigationCase ( String fromViewId , String outcome , String toViewId ) { return new NavigationCase ( fromViewId , null , outcome , null , toViewId , null , false , false ) ; }
Derive a NavigationCase from a flow node .
49
10