idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
162,000
public void deregisterDeferredService ( ) { Object obj = serviceReg . get ( ) ; if ( obj == null ) { return ; } if ( obj instanceof CountDownLatch ) { return ; } else if ( obj instanceof ServiceRegistration < ? > ) { CountDownLatch latch = new CountDownLatch ( 1 ) ; if ( serviceReg . compareAndSet ( obj , latch ) ) { t...
Unregister information provided after class loader was created
162,001
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 .
162,002
public StateStream getStateStream ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getStateStream" ) ; SibTr . exit ( tc , "getStateStream" , oststream ) ; } return oststream ; }
Used for debug
162,003
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 ( ) ; long stamp = jsMsg . getGuarante...
This method uses a Value message to write Silence into the stream because a message has been rolled back
162,004
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
162,005
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
162,006
public void writeSilenceForced ( long tick ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "writeSilenceForced" , Long . valueOf ( tick ) ) ; long startTick = - 1 ; long endTick = - 1 ; long completedPrefix = - 1 ; List sendList = nul...
This replaces the specified tick with Silence without checking the existing state
162,007
public List writeAckPrefix ( long stamp ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "writeAckPrefix" , Long . valueOf ( stamp ) ) ; List < TickRange > indexList = new ArrayList < TickRange > ( ) ; synchronized ( this ) { if ( stamp >= lastAckExpTick ) { get...
This method is called when all the messages up to the ackPrefix have been acknowledged . For pointTopoint this is called when an Ack message is recieved from the target . For pubsub this is called when all the InternalOutputStreams associated with this SourceStream have received Ack messages .
162,008
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 .
162,009
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 .
162,010
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
162,011
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
162,012
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
162,013
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
162,014
public synchronized void setDefinedSendWindow ( long newSendWindow ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setDefinedSendWindow" , Long . valueOf ( newSendWindow ) ) ; definedSendWindow = newSendWindow ; if ( TraceComponent . isAnyTracingEnabled ( ) &&...
This is used to set the sendWindow defined in Admin panels
162,015
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
162,016
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 .
162,017
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
162,018
public synchronized List getAllMessagesOnStream ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getAllMessagesOnStream" ) ; List < Long > msgs = new LinkedList < Long > ( ) ; oststream . setCursor ( 0 ) ; TickRange tr = oststream . getNext ( ) ; while ( tr ....
Get an unmodifiable list of all of the messages in the VALUE state on this stream
162,019
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
162,020
public synchronized TickRange getTickRange ( long tick ) { oststream . setCursor ( tick ) ; return ( TickRange ) oststream . getNext ( ) . clone ( ) ; }
Get a tick range given a tick value
162,021
public OpenAPI read ( Set < Class < ? > > classes ) { Set < Class < ? > > sortedClasses = new TreeSet < > ( new Comparator < Class < ? > > ( ) { public int compare ( Class < ? > class1 , Class < ? > class2 ) { if ( class1 . equals ( class2 ) ) { return 0 ; } else if ( class1 . isAssignableFrom ( class2 ) ) { return - 1...
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 .
162,022
public static MfpDiagnostics initialize ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initialize" ) ; if ( singleton == null ) { singleton = new MfpDiagnostics ( ) ; singleton . register ( packageList ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . is...
Initialise the diagnostic module by creating the singleton instance and registering it with the diagnostic engine in Websphere .
162,023
public void ffdcDumpDefault ( Throwable t , IncidentStream is , Object callerThis , Object [ ] objs , String sourceId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "ffdcDumpDefault" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr...
Default ffdc dump routine - always invoked
162,024
private void dumpUsefulStuff ( IncidentStream is , Object [ ] objs ) { if ( objs != null && objs . length > 0 ) { if ( objs [ 0 ] == MfpConstants . DM_BUFFER && objs . length >= 4 ) dumpJmfBuffer ( is , ( byte [ ] ) objs [ 1 ] , ( ( Integer ) objs [ 2 ] ) . intValue ( ) , ( ( Integer ) objs [ 3 ] ) . intValue ( ) ) ; e...
routine to dump it .
162,025
private void dumpJmfBuffer ( IncidentStream is , byte [ ] frame , int offset , int length ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "dumpJmfBuffer" ) ; if ( frame != null ) { if ( length == 0 ) { is . writeLine ( "Request to dump offset=" + offset + " length=" +...
to contain the Jetstream headers etc .
162,026
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 .
162,027
protected void initializeNonPersistent ( MessageProcessor messageProcessor ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initializeNonPersistent" , messageProcessor ) ; this . messageProcessor = messageProcessor ; txManager = messageProcessor . getTXManager ( ) ; d...
Initialize non - persistent fields . These fields are common to both MS reconstitution of DestinationManagers and initial creation .
162,028
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
162,029
public void validateUnreconciled ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "validateUnreconciled" ) ; JsMessagingEngine engine = messageProcessor . getMessagingEngine ( ) ; DestinationTypeFilter filter = new DestinationTypeFilter ( ) ; filter . LOCAL = Boolean...
At the end of the reconciliation phase of MessageProcessor startup we need to check each unreconciled destination to see if it is safe to delete that destination whether the destination should be altered to a new locality set or whether the destination should be put into a InDoubt state .
162,030
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
162,031
private void waitUntilReconstitutionIsCompleted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "waitUntilReconstitutionISCompleted" ) ; _reconstituteThreadpool . shutdown ( ) ; try { _reconstituteThreadpool . awaitTermination ( Long . MAX_VALUE , TimeUnit . MILLISE...
Will wait until the reconstitution is completed This will be called for each of BaseDestinationHandler LinkHandler and MQLinkHandler The threadpool will be destroyed
162,032
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
162,033
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 .
162,034
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 .
162,035
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 .
162,036
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 .
162,037
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
162,038
public String getTopicSpaceMapping ( String busName , SIBUuid12 topicSpace ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getTopicSpaceMapping" , new Object [ ] { busName , topicSpace } ) ; VirtualLinkDefinition linkDef = getLinkDefinition ( busName ) ; String topic...
Returns the topicSpaceName of the foreign topicSpace
162,039
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
162,040
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 .
162,041
protected void createTransmissionDestination ( SIBUuid8 remoteMEUuid ) throws SIResourceException , SIMPDestinationAlreadyExistsException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createTransmissionDestination" , remoteMEUuid ) ; String destinationName = remoteME...
Method createTransmissionDestination .
162,042
public void reconcileRemote ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "reconcileRemote" ) ; DestinationTypeFilter filter = new DestinationTypeFilter ( ) ; filter . UNRECONCILED = Boolean . TRUE ; SIMPIterator itr = destinationIndex . iterator ( filter ) ; whil...
This method is used to perform remote Destination reconciliation tasks
162,043
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 .
162,044
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 .
162,045
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 .
162,046
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
162,047
private void checkQueuePointLocalizingSize ( Set < String > queuePointLocalizingMEs , DestinationDefinition destinationDefinition ) { if ( ( ( destinationDefinition . getDestinationType ( ) != DestinationType . SERVICE ) && ( queuePointLocalizingMEs . size ( ) == 0 ) ) || ( ( destinationDefinition . getDestinationType ...
Checks that the queuePointLocalising size is valid
162,048
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 .
162,049
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
162,050
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 .
162,051
public DestinationHandler getDestination ( SIBUuid12 destinationUuid , boolean includeInvisible ) throws SITemporaryDestinationNotFoundException , SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getDestination" , destination...
Method getDestination .
162,052
public MQLinkHandler getMQLinkLocalization ( SIBUuid8 mqLinkUuid , boolean includeInvisible ) throws SIMPMQLinkCorruptException , SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMQLinkLocalization" , mqLinkUuid ) ; LinkTy...
Lookup a destination by its uuid .
162,053
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 .
162,054
public BusHandler findBus ( String busName ) throws SIResourceException , SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "findBus" , new Object [ ] { busName } ) ; ForeignBusTypeFilter filter = new ForeignBusTypeFilter ( ) ;...
Method findBus .
162,055
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 .
162,056
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 .
162,057
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
162,058
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
162,059
public void stopThread ( StoppableThreadCache cache ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stopThread" ) ; this . hasToStop = true ; cache . deregisterThread ( this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit (...
This get called from MessageProcessor on ME getting stopped .
162,060
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 .
162,061
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 .
162,062
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 .
162,063
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
162,064
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
162,065
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 .
162,066
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 .
162,067
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 .
162,068
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...
162,069
public static String encode ( String decoded_string , String crypto_algorithm , Map < String , String > properties ) throws InvalidPasswordEncodingException , UnsupportedCryptoAlgorithmException { if ( ! isValidCryptoAlgorithm ( crypto_algorithm ) ) { throw new UnsupportedCryptoAlgorithmException ( ) ; } if ( decoded_s...
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 .
162,070
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 .
162,071
public static String passwordEncode ( String decoded_string , String crypto_algorithm ) { if ( decoded_string == null ) { return null ; } String current_crypto_algorithm = getCryptoAlgorithm ( decoded_string ) ; if ( current_crypto_algorithm != null && current_crypto_algorithm . equals ( crypto_algorithm ) ) { if ( isV...
Encode the provided password with the algorithm . If another algorithm is already applied it will be removed and replaced with the new algorithm .
162,072
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 ++ ; if ( end == data . len...
Remove the algorithm tag from the input encoded password .
162,073
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 .
162,074
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 .
162,075
private static String decode_password ( String encoded_string , String crypto_algorithm ) { StringBuilder buffer = new StringBuilder ( ) ; if ( crypto_algorithm . length ( ) == 0 ) { buffer . append ( encoded_string ) ; } else { String decoded_string = null ; if ( encoded_string . length ( ) > 0 ) { byte [ ] encrypted_...
Decode the provided string with the specified algorithm .
162,076
public static String encode_password ( String decoded_string , String crypto_algorithm , Map < String , String > properties ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( CRYPTO_ALGORITHM_STARTED ) ; if ( crypto_algorithm . length ( ) == 0 ) { buffer . append ( CRYPTO_ALGORITHM_STOPPED ) . append ...
Encode the provided string by using the specified encoding algorithm and properties
162,077
protected Asset getAsset ( final String assetId , final boolean includeAttachments ) throws FileNotFoundException , IOException , BadVersionException { Asset ass = readJson ( assetId ) ; ass . set_id ( assetId ) ; WlpInformation wlpInfo = ass . getWlpInformation ( ) ; if ( wlpInfo == null ) { wlpInfo = new WlpInformati...
Gets the specified asset
162,078
protected String getName ( final String relative ) { return relative . substring ( relative . lastIndexOf ( File . separator ) + 1 ) ; }
Gets the name from the relative path of the asset
162,079
protected InputStream getInputStreamToLicenseInsideZip ( final ZipInputStream zis , final String assetId , final String attachmentId ) throws IOException { InputStream is = null ; try { ZipEntry ze = zis . getNextEntry ( ) ; while ( ze != null ) { if ( ze . isDirectory ( ) ) { } else { String name = getName ( ze . getN...
Given a ZipInputStream to an asset within the repo get an input stream to the license attachment within the asset .
162,080
void reset ( Object key ) { _nodeKey [ 0 ] = key ; _nodeKey [ midPoint ( ) ] = key ; _population = 1 ; _rightChild = null ; _leftChild = null ; _balance = 0 ; }
Return the node to its post - construction state .
162,081
boolean hasChild ( ) { boolean has = false ; if ( ( leftChild ( ) != null ) || ( rightChild ( ) != null ) ) has = true ; return has ; }
Return true if the node has either a right child or a left child .
162,082
public short balance ( ) { if ( ( _balance == - 1 ) || ( _balance == 0 ) || ( _balance == 1 ) ) return _balance ; else { String x = "Found invalid balance factor: " + _balance ; throw new RuntimeException ( x ) ; } }
Return the balance factor for the node .
162,083
void setBalance ( int b ) { if ( ( b == - 1 ) || ( b == 0 ) || ( b == 1 ) ) _balance = ( short ) b ; else { String x = "Attempt to set invalid balance factor: " + b ; throw new IllegalArgumentException ( x ) ; } }
Set the node s balance factor to a new value .
162,084
public boolean isLeafNode ( ) { boolean leaf = false ; if ( ( _leftChild == null ) && ( _rightChild == null ) ) leaf = true ; return leaf ; }
Return true if the node is a leaf node .
162,085
void findInsertPointInLeft ( Object new1 , NodeInsertPoint point ) { int endp = endPoint ( ) ; findIndex ( 0 , endp , new1 , point ) ; }
Find the insert point in the left half of the node for a new key .
162,086
public int searchLeft ( SearchComparator comp , Object searchKey ) { int idx = - 1 ; int top = middleIndex ( ) ; if ( comp . type ( ) == SearchComparator . EQ ) idx = findEqual ( comp , 0 , top , searchKey ) ; else idx = findGreater ( comp , 0 , top , searchKey ) ; return idx ; }
Search the left half of the node .
162,087
public int searchRight ( SearchComparator comp , Object searchKey ) { int idx = - 1 ; int bot = middleIndex ( ) ; int right = rightMostIndex ( ) ; if ( bot > right ) { String x = "bot = " + bot + ", right = " + right ; throw new OptimisticDepthException ( x ) ; } if ( comp . type ( ) == SearchComparator . EQ ) idx = fi...
Search the right half of the node .
162,088
int searchAll ( SearchComparator comp , Object searchKey ) { int idx = - 1 ; if ( comp . type ( ) == SearchComparator . EQ ) idx = findEqual ( comp , 0 , rightMostIndex ( ) , searchKey ) ; else idx = findGreater ( comp , 0 , rightMostIndex ( ) , searchKey ) ; return idx ; }
Search the whole node .
162,089
private int findEqual ( SearchComparator comp , int lower , int upper , Object searchKey ) { int nkeys = numKeys ( lower , upper ) ; int idx = - 1 ; if ( nkeys < 4 ) idx = sequentialSearchEqual ( comp , lower , upper , searchKey ) ; else idx = binarySearchEqual ( comp , lower , upper , searchKey ) ; return idx ; }
Find an index entry that is equal to the supplied key .
162,090
private int sequentialSearchEqual ( SearchComparator comp , int lower , int upper , Object searchKey ) { int xcc ; int idx = - 1 ; for ( int i = lower ; i <= upper ; i ++ ) { xcc = comp . compare ( searchKey , _nodeKey [ i ] ) ; if ( xcc == 0 ) { idx = i ; break ; } } return idx ; }
Use sequential search to find a matched key .
162,091
private int findGreater ( SearchComparator comp , int lower , int upper , Object searchKey ) { int nkeys = numKeys ( lower , upper ) ; int idx = - 1 ; if ( nkeys < 4 ) idx = sequentialSearchGreater ( comp , lower , upper , searchKey ) ; else idx = binarySearchGreater ( comp , lower , upper , searchKey ) ; return idx ; ...
Find an index entry that is either greater than or greater than or equal to the supplied key .
162,092
private void findIndex ( int lower , int upper , Object new1 , NodeInsertPoint point ) { int nkeys = numKeys ( lower , upper ) ; if ( nkeys < 4 ) sequentialFindIndex ( lower , upper , new1 , point ) ; else binaryFindIndex ( lower , upper , new1 , point ) ; }
Find the insert point for a new key .
162,093
private void binaryFindIndex ( int lower , int upper , Object new1 , NodeInsertPoint point ) { java . util . Comparator comp = insertComparator ( ) ; int xcc ; int lxcc = + 1 ; int i ; int idx = upper + 1 ; while ( lower <= upper ) { i = ( lower + upper ) >>> 1 ; xcc = comp . compare ( new1 , _nodeKey [ i ] ) ; if ( ! ...
Use binary search to find the insert point .
162,094
int findDeleteInRight ( Object delKey ) { int idx = - 1 ; int r = rightMostIndex ( ) ; int m = midPoint ( ) ; if ( r > m ) idx = findDelete ( m , r , delKey ) ; return idx ; }
Find the delete key in the right half of the node .
162,095
int findDelete ( int lower , int upper , Object delKey ) { int nkeys = numKeys ( lower , upper ) ; int idx = - 1 ; if ( nkeys < 4 ) idx = sequentialFindDelete ( lower , upper , delKey ) ; else idx = binaryFindDelete ( lower , upper , delKey ) ; return idx ; }
Find the index of the key to delete .
162,096
private int sequentialFindDelete ( int lower , int upper , Object delKey ) { java . util . Comparator comp = deleteComparator ( ) ; int xcc ; int idx = - 1 ; for ( int i = lower ; i <= upper ; i ++ ) { xcc = comp . compare ( delKey , _nodeKey [ i ] ) ; if ( xcc == 0 ) { idx = i ; break ; } } return idx ; }
Use sequential search to find the delete key .
162,097
private int binaryFindDelete ( int lower , int upper , Object delKey ) { java . util . Comparator comp = insertComparator ( ) ; int xcc ; int i ; int idx = - 1 ; while ( lower <= upper ) { i = ( lower + upper ) >>> 1 ; xcc = comp . compare ( delKey , _nodeKey [ i ] ) ; if ( xcc < 0 ) upper = i - 1 ; else { if ( xcc > 0...
Use binary search to find the delete key .
162,098
public int middleIndex ( ) { int x = midPoint ( ) ; int r = rightMostIndex ( ) ; if ( r < midPoint ( ) ) x = r ; return x ; }
Return the index to the key at the median position in the node .
162,099
void addRightLeaf ( Object new1 ) { GBSNode p = _index . getNode ( new1 ) ; if ( rightChild ( ) != null ) throw new RuntimeException ( "Help!" ) ; setRightChild ( p ) ; }
Add a right child to the node placing in the new right child the supplied key .