idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
161,600
public static synchronized void initialise ( ) { // Only initialise if it has not already been created if ( _instance == null ) { // Check what environment we are running in. If we are in server mode we must use the // server diagnostic module. //Liberty COMMS TODO: //For now not enabling server side diagnostics as can...
Initialises the diagnostic module .
502
6
161,601
public void ffdcDumpDefault ( Throwable t , IncidentStream is , Object callerThis , Object [ ] objs , String sourceId ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "ffdcDumpDefault" , new Object [ ] { t , is , callerThis , objs , sourceId } ) ; // Dump the SIB information super . ffdcDumpDefault ( t , ...
Called when an FFDC is generated and the stack matches one of our packages .
200
17
161,602
boolean setObserver ( Observer observer ) { // F16043 boolean success ; Observer oldObserver ; synchronized ( this ) { oldObserver = ivObserver ; success = oldObserver != null || ! isDone ( ) ; ivObserver = success ? observer : null ; } if ( oldObserver != null ) { oldObserver . update ( null , observer ) ; } return su...
Sets the current observer and updates the pending one . If the result is already available the existing observer if any will be updated and passed the new observer as data . Otherwise the observer will be updated when the result is available and will be passed null as data .
85
52
161,603
private void cleanup ( ) { // d623593 final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "cleanup" ) ; synchronized ( ivRemoteAsyncResultReaper ) { if ( ivAddedToReaper ) { // d690014 // d690014.3 - The call to remove will remove the result...
Clean up all resources associated with this object .
161
9
161,604
RemoteAsyncResult exportObject ( ) throws RemoteException { ivObjectID = ivRemoteRuntime . activateAsyncResult ( ( Servant ) createTie ( ) ) ; return ivRemoteRuntime . getAsyncResultReference ( ivObjectID ) ; }
Export this object so that it is remotely accessible .
50
10
161,605
protected void unexportObject ( ) { // d623593 final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "unexportObject: " + this ) ; if ( ivObjectID != null ) { // Either the allowed timeout occurred or a method was called and we // know that th...
Unexport this object so that it is not remotely accessible .
208
13
161,606
public BeanId find ( EJSHome home , Serializable pkey , boolean isHome ) { int hashValue = BeanId . computeHashValue ( home . j2eeName , pkey , isHome ) ; BeanId [ ] buckets = this . ivBuckets ; BeanId element = buckets [ ( hashValue & 0x7FFFFFFF ) % buckets . length ] ; if ( element == null || ! element . equals ( hom...
d156807 . 3 Begins
257
6
161,607
protected boolean needsToBeRefreshed ( DefaultFacelet facelet ) { // if set to 0, constantly reload-- nocache if ( _refreshPeriod == NO_CACHE_DELAY ) { return true ; } // if set to -1, never reload if ( _refreshPeriod == INFINITE_DELAY ) { return false ; } long target = facelet . getCreateTime ( ) + _refreshPeriod ; if...
Template method for determining if the Facelet needs to be refreshed .
276
13
161,608
int getState ( ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "getState" ) ; int state ; if ( ! prefixDone ) { // Somewhere in the prefix or at beginning and there is no prefix Pattern . Clause prefix = pattern . getPrefix ( ) ; if ( prefix == null || next >= prefix . items . length ) { // There is no ...
Get the state of this Pattern ( which item is next to process
285
13
161,609
void advance ( ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "advance" ) ; if ( ! prefixDone ) { Pattern . Clause prefix = pattern . getPrefix ( ) ; if ( prefix == null || next >= prefix . items . length ) { Pattern . Clause suffix = pattern . getSuffix ( ) ; if ( suffix != null && suffix != prefix ) ...
Advance the state of this pattern
190
7
161,610
char [ ] getChars ( ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "getChars" ) ; char [ ] ans ; if ( prefixDone ) ans = ( char [ ] ) pattern . getSuffix ( ) . items [ next -- ] ; else ans = ( char [ ] ) pattern . getPrefix ( ) . items [ next ++ ] ; if ( tc . isEntryEnabled ( ) ) tc . exit ( this , ccl...
Get the characters and advance ( assumes the pattern is in one of the CHARS states
125
17
161,611
public boolean matchMidClauses ( char [ ] chars , int start , int length ) { return pattern . matchMiddle ( chars , start , start + length ) ; }
Test whether the underlying pattern s mid clauses match a set of characters .
35
14
161,612
public String extractPropertyFromURI ( String propName , String uri ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "extractPropertyFromURI" , new Object [ ] { propName , uri } ) ; String result = null ; // only something to do if uri is non-null & non-empty u ...
Extract the value of the named property from URI . Find the named property in the name value pairs of the uri and return the value or null if the property is not present .
414
37
161,613
private String unescape ( String input , char c ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unescape" , new Object [ ] { input , c } ) ; String result = input ; // if there are no instances of c in the String we can just return the original if ( input . in...
Remove \ characters from input String when they precede specified character .
257
13
161,614
private String unescapeBackslash ( String input ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unescapeBackslash" , input ) ; String result = input ; // If there are no backslashes then don't bother creating the buffer etc. if ( input . in...
Convert escaped backslash to single backslash . This method de - escapes double backslashes whilst at the same time checking that there are no single backslahes in the input string .
332
40
161,615
private String [ ] validateNVP ( String namePart , String valuePart , String uri , JmsDestination dest ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "validateNVP" , new Object [ ] { namePart , valuePart , uri , dest } ) ; // de-escape any ...
This utility method performs the validation on the name and value parts of the NVP . It performs several checks to make sure that neither part contain any illegal characters unless they are escaped by a backslash .
531
41
161,616
public Destination createDestinationFromURI ( String uri , int qmProcessing ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "createDestinationFromURI" , new Object [ ] { uri , qmProcessing } ) ; Destination result = null ; if ( uri != null )...
Create a Destination object from a full URI format String .
153
11
161,617
private static boolean charIsEscaped ( String str , int index ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "charIsEscaped" , new Object [ ] { str , index } ) ; // precondition, null str or out of range index returns false. if ( str == null || index < 0 || index >= ...
Test if the specified character is escaped . Checks whether the character at the specified index is preceded by an escape character . The test is non - trivial because it has to check that the escape character is itself non - escaped .
211
44
161,618
public static PrivateKey readPrivateKey ( String pemResName ) throws Exception { InputStream contentIS = TokenUtils . class . getResourceAsStream ( pemResName ) ; byte [ ] tmp = new byte [ 4096 ] ; int length = contentIS . read ( tmp ) ; PrivateKey privateKey = decodePrivateKey ( new String ( tmp , 0 , length ) ) ; ret...
Read a PEM encoded private key from the classpath
86
11
161,619
public static PublicKey readPublicKey ( String pemResName ) throws Exception { InputStream contentIS = TokenUtils . class . getResourceAsStream ( pemResName ) ; byte [ ] tmp = new byte [ 4096 ] ; int length = contentIS . read ( tmp ) ; PublicKey publicKey = decodePublicKey ( new String ( tmp , 0 , length ) ) ; return p...
Read a PEM encoded public key from the classpath
86
11
161,620
public static KeyPair generateKeyPair ( int keySize ) throws NoSuchAlgorithmException { KeyPairGenerator keyPairGenerator = KeyPairGenerator . getInstance ( "RSA" ) ; keyPairGenerator . initialize ( keySize ) ; KeyPair keyPair = keyPairGenerator . genKeyPair ( ) ; return keyPair ; }
Generate a new RSA keypair .
85
8
161,621
public static PrivateKey decodePrivateKey ( String pemEncoded ) throws Exception { pemEncoded = removeBeginEnd ( pemEncoded ) ; byte [ ] pkcs8EncodedBytes = Base64 . getDecoder ( ) . decode ( pemEncoded ) ; // extract the private key PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec ( pkcs8EncodedBytes ) ; KeyFacto...
Decode a PEM encoded private key string to an RSA PrivateKey
130
14
161,622
public static PublicKey decodePublicKey ( String pemEncoded ) throws Exception { pemEncoded = removeBeginEnd ( pemEncoded ) ; byte [ ] encodedBytes = Base64 . getDecoder ( ) . decode ( pemEncoded ) ; X509EncodedKeySpec spec = new X509EncodedKeySpec ( encodedBytes ) ; KeyFactory kf = KeyFactory . getInstance ( "RSA" ) ;...
Decode a PEM encoded public key string to an RSA PublicKey
103
14
161,623
public void registerDeferredService ( BundleContext bundleContext , Class < ? > providedService , Dictionary dict ) { Object obj = serviceReg . get ( ) ; if ( obj instanceof ServiceRegistration < ? > ) { // already registered - nothing to do here return ; } if ( obj instanceof CountDownLatch ) { // another thread is in...
Register information available after class loader is created for use by RAR bundle
385
14
161,624
public void deregisterDeferredService ( ) { Object obj = serviceReg . get ( ) ; if ( obj == null ) { // already deregistered so there is nothing to be done return ; } if ( obj instanceof CountDownLatch ) { // If someone else has the latch, then let them do whatever they are doing and we pretend // we've already done th...
Unregister information provided after class loader was created
224
9
161,625
public SELF withConfigOption ( String key , String value ) { if ( key == null ) { throw new java . lang . NullPointerException ( "key marked @NonNull but is null" ) ; } if ( value == null ) { throw new java . lang . NullPointerException ( "value marked @NonNull but is null" ) ; } options . put ( key , value ) ; return ...
Add additional configuration options that should be used for this container .
91
12
161,626
public StateStream getStateStream ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getStateStream" ) ; SibTr . exit ( tc , "getStateStream" , oststream ) ; } return oststream ; }
Used for debug
72
3
161,627
public boolean writeSilence ( SIMPMessage m ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "writeSilence" , new Object [ ] { m } ) ; boolean sendMessage = true ; JsMessage jsMsg = m . getMessage ( ) ; // There may be Completed ticks ...
This method uses a Value message to write Silence into the stream because a message has been rolled back
502
19
161,628
public boolean writeSilenceForced ( SIMPMessage m ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "writeSilenceForced" , new Object [ ] { m } ) ; boolean msgRemoved = true ; JsMessage jsMsg = m . getMessage ( ) ; long start = jsMsg . ...
This method uses a Value message to write Silence into the stream because a message which was a Guess is being removed from the stream It forces the stream to be updated to Silence without checking the existing state
629
39
161,629
public void writeSilenceForced ( TickRange vtr ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "writeSilenceForced" , new Object [ ] { vtr } ) ; long start = vtr . startstamp ; long end = vtr . endstamp ; if ( TraceComponent . isAnyTr...
This method uses a Value TickRange to write Silence into the stream because a message has expired before it was sent and so needs to be removed from the stream It forces the stream to be updated to Silence without checking the existing state
354
45
161,630
public void writeSilenceForced ( long tick ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "writeSilenceForced" , Long . valueOf ( tick ) ) ; // Details of the new silence long startTick = - 1 ; long endTick = - 1 ; long completedPref...
This replaces the specified tick with Silence without checking the existing state
570
12
161,631
public void restoreUncommitted ( SIMPMessage m ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "restoreUncommitted" , new Object [ ] { m } ) ; TickRange tr = null ; JsMessage jsMsg = m . getMessage ( ) ; long stamp = jsMsg . getGuaranteedValueValueTick ( ) ; lo...
This method uses a Value message to write an Uncommitted tick into the stream . It is called at retore time .
311
25
161,632
public void restoreValue ( SIMPMessage m ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "restoreValue" , m ) ; TickRange tr = null ; long msgStoreId = AbstractItem . NO_ID ; try { if ( m . isInStore ( ) ) msgStoreId = m . getID ( ) ;...
This method uses a Value message to write a Value tick into the stream . It is called at retore time .
445
23
161,633
public synchronized void newGuessInStream ( long tick ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "newGuessInStream" , new Object [ ] { Long . valueOf ( tick ) , Boolean . valueOf ( containsGuesses ) , Long . valueOf ( sendWindow ...
Also called by writeUncomitted when a guess is written into the stream
248
15
161,634
public synchronized void guessesInStream ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "guessesInStream" , Boolean . valueOf ( containsGuesses ) ) ; containsGuesses = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . ...
any messages while some are being reallocated
112
9
161,635
public synchronized void noGuessesInStream ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "noGuessesInStream" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "oldContainesGuesses:...
ours to send
317
3
161,636
public synchronized void initialiseSendWindow ( long sendWindow , long definedSendWindow ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "initialiseSendWindow" , new Object [ ] { Long . valueOf ( sendWindow ) , Long . valueOf ( define...
this value straight away and also that we don t need to persist it
394
14
161,637
public synchronized void setDefinedSendWindow ( long newSendWindow ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setDefinedSendWindow" , Long . valueOf ( newSendWindow ) ) ; definedSendWindow = newSendWindow ; // PK41355 - Commenting out - should not be send...
This is used to set the sendWindow defined in Admin panels
148
12
161,638
public synchronized void updateAndPersistSendWindow ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "updateAndPersistSendWindow" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { SibTr . debug ( tc , "...
ONLY called from tests
401
5
161,639
private synchronized boolean msgCanBeSent ( long stamp , boolean nackMsg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "msgCanBeSent" , new Object [ ] { Long . valueOf ( stamp ) , Boolean . valueOf ( nackMsg ) , Long . valueOf ( firstMsgOutsideWindow ) , Bool...
Method that determines if the message can be sent .
281
10
161,640
private synchronized TickRange msgRemoved ( long tick , StateStream ststream , TransactionCommon tran ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "msgRemoved" , new Object [ ] { Long . valueOf ( tick ) , ststream , tran } ) ; Tick...
This method is called when the totalMessages on the stream falls and we have the possibility of sending a message because it is now inside the sendWindow
754
30
161,641
public synchronized List getAllMessagesOnStream ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getAllMessagesOnStream" ) ; List < Long > msgs = new LinkedList < Long > ( ) ; oststream . setCursor ( 0 ) ; // Get the first TickRange TickRange tr = oststream ....
Get an unmodifiable list of all of the messages in the VALUE state on this stream
249
19
161,642
public synchronized List < TickRange > getAllMessageItemsOnStream ( boolean includeUncommitted ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getAllMessageItemsOnStream" , Boolean . valueOf ( includeUncommitted ) ) ; List < TickRange > msgs = new LinkedList <...
Get an unmodifiable list of all of the message items in the VALUE state on this stream and optionally in the Uncommitted state
292
28
161,643
public synchronized TickRange getTickRange ( long tick ) { oststream . setCursor ( tick ) ; // Get the TickRange return ( TickRange ) oststream . getNext ( ) . clone ( ) ; }
Get a tick range given a tick value
46
8
161,644
public OpenAPI read ( Set < Class < ? > > classes ) { Set < Class < ? > > sortedClasses = new TreeSet <> ( new Comparator < Class < ? > > ( ) { @ Override public int compare ( Class < ? > class1 , Class < ? > class2 ) { if ( class1 . equals ( class2 ) ) { return 0 ; } else if ( class1 . isAssignableFrom ( class2 ) ) { ...
Scans a set of classes for both ReaderListeners and OpenAPI annotations . All found listeners will be instantiated before any of the classes are scanned for OpenAPI annotations - so they can be invoked accordingly .
198
42
161,645
public static MfpDiagnostics initialize ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initialize" ) ; // We should only do this once if ( singleton == null ) { singleton = new MfpDiagnostics ( ) ; singleton . register ( packageList ) ; } if ( TraceComponent . isA...
Initialise the diagnostic module by creating the singleton instance and registering it with the diagnostic engine in Websphere .
123
23
161,646
public void ffdcDumpDefault ( Throwable t , IncidentStream is , Object callerThis , Object [ ] objs , String sourceId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "ffdcDumpDefault" ) ; // First trace the Throwable, so that we can actually spot the exception in the ...
Default ffdc dump routine - always invoked
434
9
161,647
private void dumpUsefulStuff ( IncidentStream is , Object [ ] objs ) { // The first parameter is a marker telling us what sort of data we have in subsequent // parameters. if ( objs != null && objs . length > 0 ) { if ( objs [ 0 ] == MfpConstants . DM_BUFFER && objs . length >= 4 ) dumpJmfBuffer ( is , ( byte [ ] ) obj...
routine to dump it .
238
6
161,648
private void dumpJmfBuffer ( IncidentStream is , byte [ ] frame , int offset , int length ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "dumpJmfBuffer" ) ; if ( frame != null ) { // If the length passed in is 0 we probably have rubbish in both the length // and the ...
to contain the Jetstream headers etc .
357
8
161,649
private void dumpJmfSlices ( IncidentStream is , List < DataSlice > slices ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "dumpJmfSlices" ) ; if ( slices != null ) { try { is . writeLine ( "JMF data slices" , SibTr . formatSlices ( slices , getDiagnosticDataLimitInt ...
user data - so we only dump at most the first 4K bytes of each slice .
236
18
161,650
protected void initializeNonPersistent ( MessageProcessor messageProcessor ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initializeNonPersistent" , messageProcessor ) ; /* * Keep a local reference to the MessageProcessor object, as this allows us * to find the mess...
Initialize non - persistent fields . These fields are common to both MS reconstitution of DestinationManagers and initial creation .
296
25
161,651
public void moveAllInDoubtToUnreconciled ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "moveAllInDoubtToUnreconciled" ) ; DestinationTypeFilter filter = new DestinationTypeFilter ( ) ; filter . LOCAL = Boolean . TRUE ; filter . INDOUBT = Boolean . TRUE ; SIMPItera...
Before reconciliation we need to move any inDoubt handlers to the Unreconciled state . If the destination gets reconciled then we have recovered . If not we might get moved back to the inDoubt state arguing that the corrupt WCCM file is stil causing problems or finally WCCM might now tell us to remove the destination
197
70
161,652
private void startNewReconstituteThread ( Runnable runnable ) throws InterruptedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "startNewReconstituteThread" ) ; if ( _reconstituteThreadpool == null ) { createReconstituteThreadPool ( ) ; } _reconstituteThreadpo...
Starts a new thread for reconstitution
140
9
161,653
private void waitUntilReconstitutionIsCompleted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "waitUntilReconstitutionISCompleted" ) ; // gracefully shutdown the pool _reconstituteThreadpool . shutdown ( ) ; //awaitTermination() is a blocking call and caller threa...
Will wait until the reconstitution is completed This will be called for each of BaseDestinationHandler LinkHandler and MQLinkHandler The threadpool will be destroyed
212
33
161,654
public final LinkHandler getLink ( String linkName ) { LinkTypeFilter filter = new LinkTypeFilter ( ) ; return ( LinkHandler ) linkIndex . findByName ( linkName , filter ) ; }
Gets the link destination from the set of destinations
43
10
161,655
public DestinationHandler getDestination ( JsDestinationAddress destinationAddr , boolean includeInvisible ) throws SITemporaryDestinationNotFoundException , SIResourceException , SINotPossibleInCurrentConfigurationException { return getDestination ( destinationAddr . getDestinationName ( ) , destinationAddr . getBusNa...
This method provides lookup of a destination by its address . If the destination is not found it throws SIDestinationNotFoundException .
81
27
161,656
public final void removePseudoDestination ( SIBUuid12 destinationUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removePseudoDestination" , destinationUuid ) ; destinationIndex . removePseudoUuid ( destinationUuid ) ; if ( TraceComponent . isAnyTracingEnabled ( ...
Remove a link for a pseudo desintation ID .
118
11
161,657
public void resetDestination ( String destName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "resetDestination" , destName ) ; try { DestinationHandler dh = destinationIndex . findByName ( destName , messageProcessor . getMessagingEngineBus ( ) , null ) ; checkDesti...
Reset a destination .
448
5
161,658
public void resetLink ( String linkName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "resetLink" , linkName ) ; try { DestinationHandler link = linkIndex . findByName ( linkName , null ) ; checkDestinationHandlerExists ( link != null , linkName , messageProcessor ....
Reset a link .
424
5
161,659
public VirtualLinkDefinition getLinkDefinition ( String busName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getLinkDefinition" , busName ) ; ForeignBusDefinition foreignBus = messageProcessor . getForeignBus ( busName ) ; VirtualLinkDefinition link = null ; if ( ...
Returns the link definition of the link used to connect to the given busname
239
15
161,660
public String getTopicSpaceMapping ( String busName , SIBUuid12 topicSpace ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getTopicSpaceMapping" , new Object [ ] { busName , topicSpace } ) ; VirtualLinkDefinition linkDef = getLinkDefinition ( busName ) ; //this is on...
Returns the topicSpaceName of the foreign topicSpace
224
10
161,661
String createNewTemporaryDestinationName ( String destinationPrefix , SIBUuid8 meUuid , Distribution distribution ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTemporaryDestinationName" , new Object [ ] { destinationPrefix , meUu...
Creates a new name for a temporary destination . Uses the Message Store Tick count to generate the unique suffix for the temporary destination
393
25
161,662
protected void removeDestination ( DestinationHandler dh ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeDestination" , dh ) ; if ( dh . isLink ( ) ) { if ( linkIndex . containsKey ( dh ) ) { linkIndex . remove ( dh ) ; } } else { if ( destinationIndex . contai...
Remove the given destination from the DestinationManager .
142
9
161,663
protected void createTransmissionDestination ( SIBUuid8 remoteMEUuid ) throws SIResourceException , SIMPDestinationAlreadyExistsException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createTransmissionDestination" , remoteMEUuid ) ; String destinationName = remoteME...
Method createTransmissionDestination .
284
7
161,664
private void checkDestinationHandlerExists ( boolean condition , String destName , String engineName ) throws SINotPossibleInCurrentConfigurationException , SITemporaryDestinationNotFoundException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkDestinationHandlerE...
Asserts that a DestinationHandler exists . Throws out the appropriate exception if the condition has failed .
600
21
161,665
private void checkBusExists ( boolean condition , String foreignBusName , boolean linkError , Throwable cause ) throws SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkBusExists" , new Object [ ] { new Boolean ( conditio...
Asserts that a Bus exists . Throws out the appropriate exception if the condition has failed .
629
20
161,666
private void checkMQLinkExists ( boolean condition , String mqlinkName ) throws SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkMQLinkExists" , new Object [ ] { new Boolean ( condition ) , mqlinkName } ) ; if ( ! condit...
Asserts that an MQLink exists . Throws out the appropriate exception if the condition has failed .
346
22
161,667
private void checkQueuePointContainsLocalME ( Set < String > queuePointLocalizingMEs , SIBUuid8 messagingEngineUuid , DestinationDefinition destinationDefinition , LocalizationDefinition destinationLocalizationDefinition ) { if ( isQueue ( destinationDefinition . getDestinationType ( ) ) && ( destinationLocalizationDef...
Checks that the Local ME is in the queue point localizing set
192
14
161,668
private void checkQueuePointLocalizingSize ( Set < String > queuePointLocalizingMEs , DestinationDefinition destinationDefinition ) { //There must be at least one queue point if ( ( ( destinationDefinition . getDestinationType ( ) != DestinationType . SERVICE ) && ( queuePointLocalizingMEs . size ( ) == 0 ) ) || ( ( de...
Checks that the queuePointLocalising size is valid
180
11
161,669
private void setIsAsyncDeletionThreadStartable ( boolean isStartable ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setIsAsyncDeletionThreadStartable" , new Boolean ( isStartable ) ) ; synchronized ( deletionThreadLock ) { _isAsyncDeletionThreadStartable = isStartab...
Indicates whether the async deletion thread should be startable or not .
133
14
161,670
public JsDestinationAddress createSystemDestination ( String prefix , Reliability reliability ) throws SIResourceException , SIMPDestinationAlreadyExistsException , SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createSystemDestination" , new ...
Creates a System destination with the given prefix and reliability
714
11
161,671
public void addSubscriptionToDelete ( SubscriptionItemStream stream ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addSubscriptionToDelete" , stream ) ; synchronized ( deletableSubscriptions ) { deletableSubscriptions . add ( stream ) ; } if ( TraceComponent . isAny...
Add a subscription to the list of subscriptions to be deleted .
115
12
161,672
public DestinationHandler getDestination ( SIBUuid12 destinationUuid , boolean includeInvisible ) throws SITemporaryDestinationNotFoundException , SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getDestination" , destination...
Method getDestination .
187
5
161,673
public MQLinkHandler getMQLinkLocalization ( SIBUuid8 mqLinkUuid , boolean includeInvisible ) throws SIMPMQLinkCorruptException , SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMQLinkLocalization" , mqLinkUuid ) ; // Get...
Lookup a destination by its uuid .
424
9
161,674
void announceMPStarted ( int startMode ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "announceMPStarted" ) ; DestinationTypeFilter destFilter = new DestinationTypeFilter ( ) ; SIMPIterator itr = destinationIndex . iterator ( destFilter ) ; while ( itr . hasNext ( ) ...
Find the mediated destinations and tell them that the MP is now ready for mediations to start work . In addition alert the MQLink component that MP has started and set the flag to allow asynch deletion .
594
43
161,675
public BusHandler findBus ( String busName ) throws SIResourceException , SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "findBus" , new Object [ ] { busName } ) ; // Get the bus ForeignBusTypeFilter filter = new ForeignBusT...
Method findBus .
198
4
161,676
private boolean isLocalizationAvailable ( BaseDestinationHandler baseDestinationHandler , DestinationAvailability destinationAvailability ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isLocalizationAvailable" , new Object [ ] { baseDestinationHandler , destinationA...
This method determines whether a localization for a destination is available .
219
12
161,677
public List < JsDestinationAddress > getAllSystemDestinations ( SIBUuid8 meUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getAllSystemDestinations" , meUuid ) ; DestinationTypeFilter filter = new DestinationTypeFilter ( ) ; filter . LOCAL = Boolean . FALSE ; fi...
Finds all the JsDestinationAddresses that belong to system destinations for the ME that was passed in .
388
23
161,678
protected void activateDestination ( DestinationHandler dh ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "activateDestination" , dh ) ; if ( dh . isLink ( ) ) { linkIndex . create ( dh ) ; } else { destinationIndex . create ( dh ) ; } if ( TraceComponent . isAnyTrac...
Move the destination into ACTIVE state
116
7
161,679
protected void corruptDestination ( DestinationHandler dh ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "corruptDestination" , dh ) ; if ( ! dh . isLink ( ) && destinationIndex . containsDestination ( dh ) ) { destinationIndex . corrupt ( dh ) ; } if ( TraceComponen...
PK54812 Move the destination into CORRUPT state
118
12
161,680
@ Override public void stopThread ( StoppableThreadCache cache ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stopThread" ) ; this . hasToStop = true ; //Remove this thread from the thread cache cache . deregisterThread ( this ) ; if ( TraceComponent . isAnyTracingE...
This get called from MessageProcessor on ME getting stopped .
111
12
161,681
public final void setUncheckedLocalException ( Throwable ex ) throws EJBException { ExceptionMappingStrategy exceptionStrategy = getExceptionMappingStrategy ( ) ; Throwable mappedException = exceptionStrategy . setUncheckedException ( this , ex ) ; if ( mappedException != null ) { if ( mappedException instanceof EJBExc...
d395666 - rewrote entire method .
252
9
161,682
protected Boolean getApplicationExceptionRollback ( Throwable t ) { Boolean rollback ; if ( ivIgnoreApplicationExceptions ) { rollback = null ; } else { ComponentMetaData cmd = getComponentMetaData ( ) ; EJBModuleMetaDataImpl mmd = ( EJBModuleMetaDataImpl ) cmd . getModuleMetaData ( ) ; rollback = mmd . getApplicationE...
d395666 - added entire method .
94
8
161,683
public Map < String , Object > getContextData ( ) { if ( ivContextData == null ) { ivContextData = new HashMap < String , Object > ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getContextData: created empty" ) ; } return ivContextData ; }
Returns the context data associated with this method invocation .
81
10
161,684
public static void addSubStatsToParent ( SPIStats parentStats , SPIStats subStats ) { StatsImpl p = ( StatsImpl ) parentStats ; StatsImpl s = ( StatsImpl ) subStats ; p . add ( s ) ; }
This method adds one Stats object as a subStats of another Stats object
50
14
161,685
public static void addStatisticsToParent ( SPIStats parentStats , SPIStatistic statistic ) { StatsImpl p = ( StatsImpl ) parentStats ; StatisticImpl s = ( StatisticImpl ) statistic ; p . add ( s ) ; }
This method adds one Statistic object as the child of a Stats object
50
14
161,686
void addLastEntry ( Object entry ) { if ( multiple == null ) { if ( ! single . equals ( entry ) ) { multiple = new LinkedList < Object > ( ) ; multiple . addLast ( single ) ; multiple . addLast ( entry ) ; } } else { if ( ! multiple . contains ( entry ) ) { multiple . addLast ( entry ) ; } } single = entry ; }
This method is used to add an entry to the AutoBindNode Note that the node can contain multiple entries . This method is not thread safe and should be externally synchronized such that other modifications do not happen concurrently on another thread .
85
45
161,687
boolean removeEntry ( Object entry ) { if ( multiple == null ) { if ( entry . equals ( single ) ) { single = null ; return true ; } } else { multiple . remove ( entry ) ; if ( single . equals ( entry ) ) { single = multiple . peekLast ( ) ; } if ( multiple . size ( ) == 1 ) { multiple = null ; } } return false ; }
This method is used to remove an entry from the AutoBindNode . This method is not thread safe and should be externally synchronized such that other modifications do not happen concurrently on another thread .
85
37
161,688
public void alarm ( final Object context ) { long sleepInterval = 0 ; do { long startWakeUpTime = System . currentTimeMillis ( ) ; try { wakeUp ( startDaemonTime , startWakeUpTime ) ; } catch ( Exception ex ) { com . ibm . ws . ffdc . FFDCFilter . processException ( ex , "com.ibm.ws.cache.RealTimeDaemon.alarm" , "83" ,...
It runs in a loop that tries to wake every timeInterval . If it gets behind due to an overload the subclass implementation of the wakeUp method is responsible for resynching itself based on the startDaemonTime and startWakeUpTime .
242
51
161,689
public static String encode ( String decoded_string , String crypto_algorithm , String crypto_key ) throws InvalidPasswordEncodingException , UnsupportedCryptoAlgorithmException { HashMap < String , String > props = new HashMap < String , String > ( ) ; if ( crypto_key != null ) { props . put ( PROPERTY_CRYPTO_KEY , cr...
Encode the provided string with the specified algorithm and the crypto key If the decoded_string is already encoded the string will be decoded and then encoded by using the specified crypto algorithm . Use this method for encoding the string by using the AES encryption with the specific crypto key . Note that this meth...
103
70
161,690
public static String encode ( String decoded_string , String crypto_algorithm , Map < String , String > properties ) throws InvalidPasswordEncodingException , UnsupportedCryptoAlgorithmException { /* * check input: * * -- decoded_string: any string, any length, cannot be null, * cannot start with crypto algorithm tag *...
Encode the provided string with the specified algorithm and the properties If the decoded_string is already encoded the string will be decoded and then encoded by using the specified crypto algorithm . Note that this method is only avaiable for the Liberty profile .
387
51
161,691
public static boolean isHashed ( String encoded_string ) { String algorithm = getCryptoAlgorithm ( encoded_string ) ; return isValidAlgorithm ( algorithm , PasswordCipherUtil . getSupportedHashAlgorithms ( ) ) ; }
Determine if the provided string is hashed by examining the algorithm tag . Note that this method is only avaiable for the Liberty profile .
52
30
161,692
public static String passwordEncode ( String decoded_string , String crypto_algorithm ) { /* * check input: * * -- decoded_string: any string, any length, cannot be null, * may start with valid (supported) crypto algorithm tag * * -- crypto_algorithm: any string, any length, cannot be null, * must be valid (supported) ...
Encode the provided password with the algorithm . If another algorithm is already applied it will be removed and replaced with the new algorithm .
269
26
161,693
public static String removeCryptoAlgorithmTag ( String password ) { if ( null == password ) { return null ; } String rc = null ; String data = password . trim ( ) ; if ( data . length ( ) >= 2 ) { if ( ' ' == data . charAt ( 0 ) ) { int end = data . indexOf ( ' ' , 1 ) ; if ( end > 0 ) { end ++ ; // we want to jump pas...
Remove the algorithm tag from the input encoded password .
141
10
161,694
private static byte [ ] convert_viewable_to_bytes ( String string ) { if ( null == string ) { return null ; } if ( 0 == string . length ( ) ) { return EMPTY_BYTE_ARRAY ; } return Base64Coder . base64Decode ( convert_to_bytes ( string ) ) ; }
Convert the string to bytes using UTF - 8 encoding and then run it through the base64 decoding .
73
21
161,695
private static String convert_viewable_to_string ( byte [ ] bytes ) { String string = null ; if ( bytes != null ) { if ( bytes . length == 0 ) { string = EMPTY_STRING ; } else { string = convert_to_string ( Base64Coder . base64Encode ( bytes ) ) ; } } return string ; }
Use base64 encoding on the bytes and then convert them to a string using UTF - 8 encoding .
78
20
161,696
private static String decode_password ( String encoded_string , String crypto_algorithm ) { /* * decoding process: * * -- check for empty algorithm tag * -- convert input String to byte[] using base64 decoding * -- decipher byte[] * -- convert byte[] to String using UTF8 conversion code */ StringBuilder buffer = new St...
Decode the provided string with the specified algorithm .
578
10
161,697
public static String encode_password ( String decoded_string , String crypto_algorithm , Map < String , String > properties ) { /* * encoding process: * * -- check for empty algorithm tag * -- convert input String to byte[] UTF8 conversion code * -- encipher byte[] * -- convert byte[] to String using using base64 encod...
Encode the provided string by using the specified encoding algorithm and properties
645
13
161,698
protected Asset getAsset ( final String assetId , final boolean includeAttachments ) throws FileNotFoundException , IOException , BadVersionException { Asset ass = readJson ( assetId ) ; ass . set_id ( assetId ) ; // We always get a wlp info when read back from Massive so create one if there isnt already one WlpInforma...
Gets the specified asset
694
5
161,699
protected String getName ( final String relative ) { return relative . substring ( relative . lastIndexOf ( File . separator ) + 1 ) ; }
Gets the name from the relative path of the asset
32
11