idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
159,700
public WsByteBuffer allocateBuffer ( int size ) { WsByteBufferPoolManager mgr = HttpDispatcher . getBufferManager ( ) ; WsByteBuffer wsbb = ( this . useDirectBuffer ) ? mgr . allocateDirect ( size ) : mgr . allocate ( size ) ; addToCreatedBuffer ( wsbb ) ; return wsbb ; }
Allocate a buffer according to the requested input size .
159,701
public void setDebugContext ( Object o ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "debugContext set to " + o + " for " + this ) ; } if ( null != o ) { this . debugContext = o ; } }
Allow the debug context object to be set to the input Object for more specialized debugging . A null input object will be ignored .
159,702
private void incrementHeaderCounter ( ) { this . numberOfHeaders ++ ; this . headerAddCount ++ ; if ( this . limitNumHeaders < this . numberOfHeaders ) { String msg = "Too many headers in storage: " + this . numberOfHeaders ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc ,...
Increment the number of headers in storage counter by one . If this puts it over the limit for the message then an exception is thrown .
159,703
private void checkHeaderValue ( byte [ ] data , int offset , int length ) { int index = ( offset + length ) - 1 ; if ( index < 0 ) { return ; } String error = null ; if ( BNFHeaders . LF == data [ index ] || BNFHeaders . CR == data [ index ] ) { error = "Illegal trailing EOL" ; } for ( int i = offset ; null == error &&...
Check the input header value for validity starting at the offset and continuing for the input length of characters .
159,704
private void checkHeaderValue ( String data ) { int index = data . length ( ) - 1 ; if ( index < 0 ) { return ; } String error = null ; char c = data . charAt ( index ) ; if ( BNFHeaders . LF == c || BNFHeaders . CR == c ) { error = "Illegal trailing EOL" ; } for ( int i = 0 ; null == error && i < index ; i ++ ) { c = ...
Check the input header value for validity .
159,705
private int countInstances ( HeaderElement root ) { int count = 0 ; HeaderElement elem = root ; while ( null != elem ) { if ( ! elem . wasRemoved ( ) ) { count ++ ; } elem = elem . nextInstance ; } return count ; }
Count the number of instances of this header starting at the given element .
159,706
private boolean skipWhiteSpace ( WsByteBuffer buff ) { byte b ; do { if ( this . bytePosition >= this . byteLimit ) { if ( ! fillByteCache ( buff ) ) { return false ; } } b = this . byteCache [ this . bytePosition ++ ] ; } while ( BNFHeaders . SPACE == b || BNFHeaders . TAB == b ) ; this . bytePosition -- ; return true...
Skip any whitespace that might be at the start of this buffer .
159,707
private boolean addInstanceOfElement ( HeaderElement root , HeaderElement elem ) { if ( null == this . hdrSequence ) { this . hdrSequence = elem ; this . lastHdrInSequence = elem ; } else { this . lastHdrInSequence . nextSequence = elem ; elem . prevSequence = this . lastHdrInSequence ; this . lastHdrInSequence = elem ...
Helper method to add a new instance of a HeaderElement to root s internal list . This might be the first instance or an additional instance in which case it will be added at the end of the list .
159,708
protected WsByteBuffer [ ] putInt ( int data , WsByteBuffer [ ] buffers ) { return putBytes ( GenericUtils . asBytes ( data ) , buffers ) ; }
Place the input int value into the outgoing cache . This will return the buffer array as it may have changed if the cache need to be flushed .
159,709
protected WsByteBuffer [ ] flushCache ( WsByteBuffer [ ] buffers ) { int pos = this . bytePosition ; if ( 0 == pos ) { return buffers ; } this . bytePosition = 0 ; return GenericUtils . putByteArray ( buffers , this . byteCache , 0 , pos , this ) ; }
Method to flush whatever is in the cache into the input buffers . These buffers are then returned to the caller as the flush may have needed to expand the list .
159,710
final protected void decrementBytePositionIgnoringLFs ( ) { this . bytePosition -- ; if ( BNFHeaders . LF == this . byteCache [ this . bytePosition ] ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "decrementILF found an LF character" ) ; } this . bytePosition ++ ; } }
Decrement the byte position unless it points to an LF character in which case just leave the byte position alone .
159,711
final protected void resetCacheToken ( int len ) { if ( null == this . parsedToken || len != this . parsedToken . length ) { this . parsedToken = new byte [ len ] ; } this . parsedTokenLength = 0 ; }
Reset the parse byte token based on the input length . If the existing array is the same size then this is a simple reset . This is intended to only be used when the contents have already been extracted and can be overwritten with new data .
159,712
final protected boolean fillCacheToken ( WsByteBuffer buff ) { int curr_len = this . parsedTokenLength ; int need_len = this . parsedToken . length - curr_len ; int copy_len = need_len ; while ( 0 < need_len ) { if ( this . bytePosition >= this . byteLimit ) { if ( ! fillByteCache ( buff ) ) { this . parsedTokenLength ...
Method to fill the parse token from the given input buffer . The token array must have been created prior to this attempt to fill it .
159,713
protected boolean fillByteCache ( WsByteBuffer buff ) { if ( this . bytePosition < this . byteLimit ) { return false ; } int size = buff . remaining ( ) ; if ( size > this . byteCacheSize ) { size = this . byteCacheSize ; } this . bytePosition = 0 ; this . byteLimit = size ; if ( 0 == this . byteLimit ) { if ( TraceCom...
Fills the byte cache .
159,714
protected TokenCodes findCRLFTokenLength ( WsByteBuffer buff ) throws MalformedMessageException { TokenCodes rc = TokenCodes . TOKEN_RC_MOREDATA ; if ( null == buff ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Null buffer provided" ) ; } return rc ; } int length = ...
Parse a CRLF delimited token and return the length of the token .
159,715
protected TokenCodes skipCRLFs ( WsByteBuffer buffer ) { int maxCRLFs = 33 ; if ( this . bytePosition >= this . byteLimit ) { if ( ! fillByteCache ( buffer ) ) { return TokenCodes . TOKEN_RC_MOREDATA ; } } byte b = this . byteCache [ this . bytePosition ++ ] ; for ( int i = 0 ; i < maxCRLFs ; i ++ ) { if ( - 1 == b ) {...
This method is used to skip leading CRLF characters . It will stop when it finds a non - CRLF character runs out of data or finds too many CRLFs
159,716
protected TokenCodes findHeaderLength ( WsByteBuffer buff ) throws MalformedMessageException { TokenCodes rc = TokenCodes . TOKEN_RC_MOREDATA ; if ( null == buff ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "findHeaderLength: null buffer provided" ) ; } return rc ; ...
Parse a byte delimited token and return the length of the token .
159,717
private boolean parseHeaderName ( WsByteBuffer buff ) throws MalformedMessageException { if ( null == this . parsedToken ) { if ( ! skipWhiteSpace ( buff ) ) { return false ; } } int start = findCurrentBufferPosition ( buff ) ; int cachestart = this . bytePosition ; TokenCodes rc = findHeaderLength ( buff ) ; if ( Toke...
Utility method to parse the header name from the input buffer .
159,718
private boolean parseHeaderValueExtract ( WsByteBuffer buff ) throws MalformedMessageException { int log = LOG_FULL ; HeaderKeys key = this . currentElem . getKey ( ) ; if ( null != key && ! key . shouldLogValue ( ) ) { log = LOG_NONE ; } TokenCodes tcRC = parseCRLFTokenExtract ( buff , log ) ; if ( ! tcRC . equals ( T...
Utility method for parsing a header value out of the input buffer .
159,719
protected int parseTokenNonExtract ( WsByteBuffer buff , byte bDelimiter , boolean bApproveCRLF ) throws MalformedMessageException { TokenCodes rc = findTokenLength ( buff , bDelimiter , bApproveCRLF ) ; return ( TokenCodes . TOKEN_RC_MOREDATA . equals ( rc ) ) ? - 1 : this . parsedTokenLength ; }
Standard parsing of a token ; however instead of saving the data into the global parsedToken variable this merely returns the length of the token . Used for occasions where we just need to find the length of the token .
159,720
private void saveParsedToken ( WsByteBuffer buff , int start , boolean delim , int log ) { final boolean bTrace = TraceComponent . isAnyTracingEnabled ( ) ; int length = this . parsedTokenLength ; this . parsedTokenLength = 0 ; if ( 0 > length ) { throw new IllegalArgumentException ( "Negative token length: " + length ...
Sets the temporary parse token from the input buffer .
159,721
public void parsedCompactHeader ( boolean flag ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "parsedCompactHeader: " + flag ) ; } this . compactHeaderFlag = flag ; }
Sets the flag indicating that a SIP compact header has been parsed .
159,722
void finishAlarmThread ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "finishAlarmThread" ) ; synchronized ( wakeupLock ) { finished = true ; wakeupLock . notify ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc ,...
Terminate this alarm thread . This is final the thread should not be restarted .
159,723
public void run ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "run" ) ; try { while ( ! finished ) { long now = System . currentTimeMillis ( ) ; boolean fire = false ; synchronized ( wakeupLock ) { if ( running ) { fire = ( now >= nextWakeup ) ; } } if ( fire ) { ...
The main loop for the MPAlarmThread . Loops until the alarm thread is marked as finished . If the alarm thread is suspended it will wait forever . Otherwise the it will wait inside the loop until a specified time and then call the MPAlarmManager . fireInternalAlarm method .
159,724
public boolean startInactivityTimer ( ) { final boolean traceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "startInactivityTimer" ) ; if ( _inactivityTimeout > 0 && _status . getState ( ) == TransactionState . STATE_ACTIVE && ! _inactivityTimerActive ) { Emb...
Start an inactivity timer and call alarm method of parameter when timeout expires .
159,725
public void rollbackResources ( ) { final boolean traceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "rollbackResources" ) ; try { final Transaction t = ( ( EmbeddableTranManagerSet ) TransactionManagerFactory . getTransactionManager ( ) ) . suspend ( ) ; ge...
Rollback all resources but do not drive state changes . Used when transaction HAS TIMED OUT .
159,726
public synchronized void stopInactivityTimer ( ) { final boolean traceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "stopInactivityTimer" ) ; if ( _inactivityTimerActive ) { _inactivityTimerActive = false ; EmbeddableTimeoutManager . setTimeout ( this , Embe...
Stop inactivity timer associated with transaction . This method needs to be synchronized to serialize with inactivity timeout . If the timeout runs after this method then there will be no _inactivityTimer to call and the context will be on_server . If the timeout runs before then a subsequent resume will fail as the tr...
159,727
public void resumeAssociation ( ) { final boolean traceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "resumeAssociation" ) ; resumeAssociation ( true ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "resumeAssociation" ) ; }
Called by interceptor when incoming reply arrives . This polices the single threaded operation of the transaction .
159,728
public synchronized void resumeAssociation ( boolean allowSetRollback ) throws TRANSACTION_ROLLEDBACK { final boolean traceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "resumeAssociation" , allowSetRollback ) ; boolean doSetRollback = false ; while ( _activ...
This polices the single threaded operation of the transaction . allowSetRollback indicates whether the condition where there is already an active association should result in rolling back the transaction .
159,729
public synchronized void addAssociation ( ) { final boolean traceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "addAssociation" ) ; if ( _activeAssociations > _suspendedAssociations ) { if ( traceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "addAssociat...
Called by interceptor when incoming request arrives . This polices the single threaded operation of the transaction .
159,730
public synchronized void removeAssociation ( ) { final boolean traceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "removeAssociation" ) ; _activeAssociations -- ; if ( _activeAssociations <= 0 ) { startInactivityTimer ( ) ; } else { _mostRecentThread . pop (...
Called by interceptor when reply is sent . This updates the server association count for this context .
159,731
public void enlistAsyncResource ( String xaResFactoryFilter , Serializable xaResInfo , Xid xid ) throws SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "enlistAsyncResource (SPI): args: " , new Object [ ] { xaResFactoryFilter , xaResInfo , xid } ) ; try { final WSATAsyncResource res = new WSATAsyncRe...
Enlist an asynchronous resource with the target TransactionImpl object . A WSATParticipantWrapper is typically a representation of a downstream WSAT subordinate server .
159,732
public synchronized void inactivityTimeout ( ) { final boolean traceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "inactivityTimeout" , this ) ; _inactivityTimerActive = false ; if ( _inactivityTimer != null ) { try { _inactivityTimer . alarm ( ) ; } catch (...
Called by the timeout manager when inactivity timer expires . Needs to be synchronized as it may interfere with normal timeout .
159,733
synchronized ConsumerSessionImpl get ( long id ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "get" , new Long ( id ) ) ; ConsumerSessionImpl consumer = null ; if ( _messageProcessor . isStarted ( ) ) { consumer = ( ConsumerSessionImpl ) _consumers . get ( new Long ( id ) ) ; } if ( tc . isEntryEnabled ( ) ) S...
Gets a consumer using its id .
159,734
synchronized void add ( ConsumerSessionImpl consumer ) { consumer . setId ( _consumerCount ) ; if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "add" , new Long ( consumer . getIdInternal ( ) ) ) ; _consumers . put ( new Long ( _consumerCount ) , consumer ) ; _consumerCount ++ ; if ( tc . isEntryEnabled ( ) ) SibTr ...
Adds a consumer to the list of Consumers that this messaging engine contains
159,735
private static Collection < String > getFromAppliesTo ( final Asset asset , final AppliesToFilterGetter getter ) { Collection < AppliesToFilterInfo > atfis = asset . getWlpInformation ( ) . getAppliesToFilterInfo ( ) ; Collection < String > ret = new ArrayList < String > ( ) ; if ( atfis != null ) { for ( AppliesToFilt...
Utility method to cycle through the applies to filters info and collate the values found
159,736
protected void activate ( ComponentContext ctx , Map < String , Object > properties ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "activate" , properties ) ; } if ( isEnabled ( ) ) { loadMaps ( properties ) ; } else { Tr . error ( tc , "SF_ERROR_NOT_ENABLED" )...
to be deleted
159,737
private void updateCacheState ( Map < String , Object > props ) { getAuthenticationConfig ( props ) ; if ( cacheEnabled ) { authCacheServiceRef . activate ( cc ) ; } else { authCacheServiceRef . deactivate ( cc ) ; } }
Based on the configuration properties the auth cache should either be active or not .
159,738
private ReentrantLock optionallyObtainLockedLock ( AuthenticationData authenticationData ) { ReentrantLock currentLock = null ; if ( isAuthCacheServiceAvailable ( ) ) { currentLock = authenticationGuard . requestAccess ( authenticationData ) ; currentLock . lock ( ) ; } return currentLock ; }
This method will try to obtain a lock from the authentication guard based on the given authentication data and lock it . If an equals authentication data on another thread is received for which a lock already exists this method will block that another thread until the first thread relinquishes the lock . This allows ha...
159,739
public Subject delegate ( String roleName , String appName ) { Subject runAsSubject = getRunAsSubjectFromProvider ( roleName , appName ) ; return runAsSubject ; }
Gets the delegation subject based on the currently configured delegation provider or the MethodDelegationProvider if one is not configured .
159,740
static private StringBuilder determineType ( String name , Object o ) { String value = null ; if ( o instanceof String || o instanceof StringBuffer || o instanceof java . nio . CharBuffer || o instanceof Integer || o instanceof Long || o instanceof Byte || o instanceof Double || o instanceof Float || o instanceof Short...
Determine the type of the Object passed in and add the XML format for the result .
159,741
static private StringBuilder serializeChannel ( StringBuilder buffer , OutboundChannelDefinition ocd , int order ) throws NotSerializableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Serializing channel: " + order + " " + ocd . getOutboundFactory ( ) . getNa...
Method to serialize a given channel object into the overall output buffer .
159,742
static public String serialize ( CFEndPoint point ) throws NotSerializableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "serialize" ) ; } if ( null == point ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Nu...
Method to serialize the given end point object into an XML string .
159,743
public MessageStore getOwningMessageStore ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getOwningMessageStore" ) ; SibTr . exit ( this , tc , "getOwningMessageStore" , "return=" + _ms ) ; } return _ms ; }
This method is used to check the MessageStore instance that an implementing transaction object originated from . This is used to check that a transaction is being used to add Items to the same MessageStore as that it came from .
159,744
protected void createRealizationAndState ( MessageProcessor messageProcessor , TransactionCommon transaction ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createRealizationAndState" , new Object [ ] { messageProcessor , transaction } ) ; ...
Cold start version of method to create state associated with Destination .
159,745
protected void reconstitute ( MessageProcessor processor , HashMap < String , Object > durableSubscriptionsTable , int startMode ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "reconstitute" , new Object [ ] { processor , durableSubscriptio...
Recover a BaseDestinationHandler retrieved from the MessageStore .
159,746
public void deleteMsgsWithNoReferences ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteMsgsWithNoReferences" ) ; if ( null != _pubSubRealization ) _pubSubRealization . deleteMsgsWithNoReferences ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEn...
This method deletes the messages which are not having any references . Previously these messages were deleted during ME startup in reconstitute method . This method is called from DeletePubSubMsgsThread context
159,747
public final synchronized AnycastOutputHandler getAnycastOutputHandler ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getAnycastOutputHandler" ) ; AnycastOutputHandler aoh = null ; if ( _ptoPRealization != null ) aoh = _ptoPRealization . getAnycastOutputHandler ( ...
Called to get the AnycastOutputHandler for this Destination
159,748
public Object [ ] getPostReconstitutePseudoIds ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getPostReconstitutePseudoIds" ) ; Object [ ] result = _protoRealization . getRemoteSupport ( ) . getPostReconstitutePseudoIds ( ) ; if ( TraceComponent . isAnyTracingEnab...
Returns an array of all pseudoDestination UUIDs which should be mapped to this BaseDestinationHandler . This method is used by the DestinationManager to determine what pseudo references need to be added after a destination is reconstituted .
159,749
protected void addPubSubLocalisation ( LocalizationDefinition destinationLocalizationDefinition ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addPubSubLocalisation" , new Object [ ] { destinationLocalizationDefinition } ) ; _pubSubRealization . addPubSubLocalisatio...
Add PubSubLocalisation .
159,750
public void setRemote ( boolean hasRemote ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setRemote" , Boolean . valueOf ( hasRemote ) ) ; getLocalisationManager ( ) . setRemote ( hasRemote ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ...
Do we have a remote localisation?
159,751
public void setLocal ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setLocal" ) ; getLocalisationManager ( ) . setLocal ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setLocal" ) ; }
Do we have a local localisation?
159,752
public boolean isToBeIgnored ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "isToBeIgnored" ) ; SibTr . exit ( tc , "isToBeIgnored" , Boolean . valueOf ( _toBeIgnored ) ) ; } return _toBeIgnored ; }
Are we ignoring this destination handler due to corruption?
159,753
PtoPXmitMsgsItemStream getXmitQueuePoint ( SIBUuid8 meUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getXmitQueuePoint" , meUuid ) ; PtoPXmitMsgsItemStream stream = getLocalisationManager ( ) . getXmitQueuePoint ( meUuid ) ; if ( TraceComponent . isAnyTracingEn...
Return the itemstream representing a transmit queue to a remote ME
159,754
private void eventMessageExpiryNotification ( SIMPMessage msg , TransactionCommon tran ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "eventMessageExpiryNotification" , new Object [ ] { msg , tran } ) ; if ( _reportHandler == null ) _report...
This is a callback required for expiry notification . For example we generate a report message here if expiry reports are requested .
159,755
public String constructPseudoDurableDestName ( String subName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "constructPseudoDurableDestName" , subName ) ; String psuedoDestName = constructPseudoDurableDestName ( messageProcessor . getMessagingEngineUuid ( ) . toStri...
Creates the pseudo destination name string for remote durable subscriptions . The case when this local ME is the DME .
159,756
public String constructPseudoDurableDestName ( String meUUID , String durableName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "constructPseudoDurableDestName" , new Object [ ] { meUUID , durableName } ) ; String returnString = meUUID + "##" + durableName ; if ( Tr...
Creates the pseudo destination name string for remote durable subscriptions . The case when the the DME is remote to this ME .
159,757
public AnycastOutputHandler getAnycastOHForPseudoDest ( String destName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getAnycastOHForPseudoDest" , destName ) ; AnycastOutputHandler returnAOH = _pubSubRealization . getRemotePubSubSupport ( ) . getAnycastOHForPseudoD...
Durable subscriptions homed on this ME but attached to from remote MEs have AnycastOutputHandlers mapped by their pseudo destination names .
159,758
void sendCODMessage ( SIMPMessage msg , TransactionCommon tran ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendCODMessage" , new Object [ ] { msg , tran } ) ; if ( msg . getReportCOD ( ) != null ) { if ( _reportHandler == null ) _report...
Method sendCODMessage . Initializes the reportHandler and sends a COD message if appropriate
159,759
public void announceMPStopping ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "announceMPStopping" ) ; if ( isPubSub ( ) ) { if ( null != _pubSubRealization ) { _pubSubRealization . stopDeletingMsgsWihoutReferencesTask ( true ) ; } } if ( TraceComponent . isAnyTrac...
MP is stopping . All mediation activity should stop also .
159,760
public void stop ( int mode ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stop" , Integer . valueOf ( mode ) ) ; deregisterDestination ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "stop" ) ; }
Stop anything that needs stopping like mediations .. etc .
159,761
public int createDurableFromRemote ( String subName , SelectionCriteria criteria , String user , boolean isCloned , boolean isNoLocal , boolean isSIBServerSubject ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createDurableFromRemote" , new Object [ ] { subName , cr...
Handle a remote request to create a local durable subscription .
159,762
public JsDestinationAddress getRoutingDestinationAddr ( JsDestinationAddress inAddress , boolean fixedMessagePoint ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getRoutingDestinationAddr" , new Object [ ] { this , inAddress , Boolean . va...
Being a real destination there is no implicit need to add a routing destination address to any messages sent to this destination . However if the sender is bound to a single message point then we need to set a routing destination so that a particular ME Uuid can be set into it . Another reason for setting a routing add...
159,763
public void deleteRemoteDurableDME ( String subName ) throws SIRollbackException , SIConnectionLostException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteRemoteDurableDME" , new Object [ ] { subName } ) ; _pubSubRealization . getRemotePub...
Clean up the local AnycastOutputHandler that was created to handle access to a locally homed durable subscription . This method should only be invoked as part of ConsumerDispatcher . deleteConsumerDispatcher .
159,764
public void requestReallocation ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "requestReallocation" ) ; if ( ! isCorruptOrIndoubt ( ) ) { synchronized ( this ) { _isToBeReallocated = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) )...
Request reallocation of transmitQs on the next asynch deletion thread run
159,765
public boolean isTopicAccessCheckRequired ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isTopicAccessCheckRequired" ) ; if ( ! isPubSub ( ) || isTemporary ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "isTo...
Override Method in AbstractBaseDestinationHandler
159,766
public boolean removeAnycastInputHandlerAndRCD ( String key ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeAnycastInputHandlerAndRCD" , key ) ; boolean removed = _protoRealization . getRemoteSupport ( ) . removeAnycastInputHandlerAnd...
Removes the AIH and the RCD instances for a given dme ID . Also removes the itemStreams from the messageStore for the aiContainerItemStream and the rcdItemStream
159,767
public void closeRemoteConsumer ( SIBUuid8 dmeUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "closeRemoteConsumer" , dmeUuid ) ; _protoRealization . getRemoteSupport ( ) . closeRemoteConsumers ( dmeUuid ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . i...
Close the remote consumers for a given remote ME
159,768
public PubSubRealization getPubSubRealization ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getPubSubRealization" ) ; SibTr . exit ( tc , "getPubSubRealization" , _pubSubRealization ) ; } return _pubSubRealization ; }
Retrieve the PubSubRealization
159,769
public PtoPRealization getPtoPRealization ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getPtoPRealization" ) ; SibTr . exit ( tc , "getPtoPRealization" , _ptoPRealization ) ; } return _ptoPRealization ; }
Retrieve the PtoPRealization
159,770
public AbstractProtoRealization getProtocolRealization ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getProtocolRealization" ) ; SibTr . exit ( tc , "getProtocolRealization" , _protoRealization ) ; } return _protoRealization ; }
Retrieve the ProtocolRealization
159,771
public LocalisationManager getLocalisationManager ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getLocalisationManager" , this ) ; if ( _localisationManager == null ) { _localisationManager = new LocalisationManager ( this ) ; } if ( TraceComponent . isAnyTracing...
Retrieve the LocalisationManager
159,772
protected void setByteArrayValue ( byte [ ] input ) { this . sValue = null ; this . bValue = input ; this . offset = 0 ; this . valueLength = input . length ; if ( ELEM_ADDED != this . status ) { this . status = ELEM_CHANGED ; } }
Set the byte array value to the given input .
159,773
protected void setByteArrayValue ( byte [ ] input , int offset , int length ) { if ( ( offset + length ) > input . length ) { throw new IllegalArgumentException ( "Invalid length: " + offset + "+" + length + " > " + input . length ) ; } this . sValue = null ; this . bValue = input ; this . offset = offset ; this . valu...
Set the byte array value of this header based on the input array but starting at the input offset into that array and with the given length .
159,774
protected void setStringValue ( String input ) { this . bValue = null ; this . sValue = input ; this . offset = 0 ; this . valueLength = ( null == input ) ? 0 : input . length ( ) ; if ( ELEM_ADDED != this . status ) { this . status = ELEM_CHANGED ; } }
Set the string value to the given input .
159,775
protected void updateLastCRLFInfo ( int index , int pos , boolean isCR ) { this . lastCRLFBufferIndex = index ; this . lastCRLFPosition = pos ; this . lastCRLFisCR = isCR ; }
Set the relevant information for the CRLF position information from the parsing code .
159,776
protected void destroy ( ) { this . nextSequence = null ; this . prevSequence = null ; this . bValue = null ; this . sValue = null ; this . buffIndex = - 1 ; this . offset = 0 ; this . valueLength = 0 ; this . myHashCode = - 1 ; this . lastCRLFBufferIndex = - 1 ; this . lastCRLFisCR = false ; this . lastCRLFPosition = ...
Perform cleanup when this object is no longer needed .
159,777
public Properties getHeader ( RepositoryLogRecord record ) { if ( ! headerMap . containsKey ( record ) ) { throw new IllegalArgumentException ( "Record was not return by an iterator over this instance" ) ; } return headerMap . get ( record ) ; }
Returns header information for the server this record was created on .
159,778
public static URL createWSJPAURL ( URL url ) throws MalformedURLException { if ( url == null ) { return null ; } final String encodedURLPathStr = encode ( url . toExternalForm ( ) ) ; URL returnURL ; try { returnURL = AccessController . doPrivileged ( new PrivilegedExceptionAction < URL > ( ) { public URL run ( ) throw...
Encapsulates the specified URL within a wsjpa URL .
159,779
public static URL extractEmbeddedURL ( URL url ) throws MalformedURLException { if ( url == null ) { return null ; } if ( ! url . getProtocol ( ) . equalsIgnoreCase ( WSJPA_PROTOCOL_NAME ) ) { throw new IllegalArgumentException ( "The specified URL \"" + url + "\" does not use the \"" + WSJPA_PROTOCOL_NAME + "\" protoc...
Extracts the embedded URL from the provided wsjpa protocoled URL .
159,780
private static String encode ( String s ) { if ( s == null ) { return null ; } if ( s . contains ( "%21" ) ) { throw new IllegalArgumentException ( "WSJPAURLUtils.encode() cannot encode Strings containing \"%21\"." ) ; } return s . replace ( "!" , "%21" ) ; }
Private method that substitutes ! characters with its escaped code %21 .
159,781
private static String decode ( String s ) { if ( s == null ) { return null ; } return s . replace ( "%21" , "!" ) ; }
Private method that substitutes the escape code %21 with the ! character .
159,782
public ValidationMode getValidationMode ( ) { ValidationMode rtnMode = null ; PersistenceUnitValidationModeType jaxbMode = null ; jaxbMode = ivPUnit . getValidationMode ( ) ; if ( jaxbMode == PersistenceUnitValidationModeType . AUTO ) { rtnMode = ValidationMode . AUTO ; } else if ( jaxbMode == PersistenceUnitValidation...
Gets the value of the validationMode property .
159,783
public static void setServiceProviderFinder ( ExternalContext ectx , ServiceProviderFinder slp ) { ectx . getApplicationMap ( ) . put ( SERVICE_PROVIDER_KEY , slp ) ; }
Set a ServiceProviderFinder to the current application to locate SPI service providers used by MyFaces .
159,784
private static ServiceProviderFinder _getServiceProviderFinderFromInitParam ( ExternalContext context ) { String initializerClassName = context . getInitParameter ( SERVICE_PROVIDER_FINDER_PARAM ) ; if ( initializerClassName != null ) { try { Class < ? > clazz = ClassUtils . classForName ( initializerClassName ) ; if (...
Gets a ServiceProviderFinder from the web . xml config param .
159,785
public void psSetBytes ( PreparedStatement pstmtImpl , int i , byte [ ] x ) throws SQLException { pstmtImpl . setBytes ( i , x ) ; }
Allow for special handling of Oracle prepared statement setBytes This method just does the normal setBytes call Oracle helper overrides it
159,786
public void psSetString ( PreparedStatement pstmtImpl , int i , String x ) throws SQLException { pstmtImpl . setString ( i , x ) ; }
Allow for special handling of Oracle prepared statement setString This method just does the normal setString call Oracle helper overrides it
159,787
public void resetClientInformation ( WSRdbManagedConnectionImpl mc ) throws SQLException { if ( mc . mcf . jdbcDriverSpecVersion >= 40 && ( mc . clientInfoExplicitlySet || mc . clientInfoImplicitlySet ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "resetClientI...
This method is used to reset the client information on the backend database connection . Information will be reset only if it has been set .
159,788
public ConnectionResults getPooledConnection ( final CommonDataSource ds , String userName , String password , final boolean is2Phase , final WSConnectionRequestInfoImpl cri , boolean useKerberos , Object gssCredential ) throws ResourceException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "getPooledConnec...
Get a Pooled or XA Connection from the specified DataSource . A null userName indicates that no user name or password should be provided .
159,789
public void setClientRerouteData ( Object dataSource , String cRJNDIName , String cRAlternateServer , String cRAlternatePort , String cRPrimeServer , String cRPrimePort , Context jndiContext , String driverType ) throws Throwable { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "Client reroute is not support...
This method is used to set the client reroute options on the datasoruce Object . This method will be a no - op for all but the DB2 universal driver .
159,790
public boolean isAnAuthorizationException ( SQLException x ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "isAnAuthorizationException" , x ) ; boolean isAuthError = false ; LinkedList < SQLException > stack = new LinkedList <...
Method is used to see if the exception passed is an authorization exception or not .
159,791
public void reuseKerbrosConnection ( Connection sqlConn , GSSCredential gssCred , Properties props ) throws SQLException { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "Kerberos reuse is not supported when using generic helper. No-op operation." ) ; } }
Method used to reuse a connection using kerberos . This method will reset all connection properties thus after a reuse is called connection should be treated as if it was a newly created connection
159,792
public int branchCouplingSupported ( int couplingType ) { if ( couplingType == ResourceRefInfo . BRANCH_COUPLING_LOOSE || couplingType == ResourceRefInfo . BRANCH_COUPLING_TIGHT ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "Specified branch coupling type not supported" ) ; } return - 1 ; } return javax...
This method checks if the connection supports loose or tight branch coupling
159,793
public boolean loadClasses ( ) { Boolean result = AccessController . doPrivileged ( new PrivilegedAction < Boolean > ( ) { public Boolean run ( ) { Policy policy = jaccProviderService . getService ( ) . getPolicy ( ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "policy object" + policy ) ; if ( policy == null ) {...
Loads the JACC Policy and Factory classes .
159,794
private static String getResourceLookup ( Resource resource ) { if ( svResourceLookupMethod == null ) { return "" ; } try { return ( String ) svResourceLookupMethod . invoke ( resource , ( Object [ ] ) null ) ; } catch ( Exception ex ) { throw new IllegalStateException ( ex ) ; } }
Returns the result of javax . annotation . Resource . lookup or the empty string if that method is unavailable in the current JVM .
159,795
private void setXMLType ( String typeName , String element , String nameElement , String typeElement ) throws InjectionConfigurationException { if ( ivNameSpaceConfig . getClassLoader ( ) == null ) { setInjectionClassTypeName ( typeName ) ; } else { Class < ? > type = loadClass ( typeName ) ; if ( type != null ) { Reso...
Sets the injection type as specified in XML .
159,796
private boolean isEnvEntryTypeCompatible ( Object newType ) { Class < ? > curType = getInjectionClassType ( ) ; if ( curType == null ) { return true ; } return isClassesCompatible ( ( Class < ? > ) newType , getInjectionClassType ( ) ) ; }
Checks if the specified type is compatible for merging with the type that has already specified for this binding .
159,797
public void setEnvEntryType ( ResourceImpl annotation , Object type ) throws InjectionException { if ( type instanceof String ) { setInjectionClassTypeName ( ( String ) type ) ; } else { Class < ? > classType = ( Class < ? > ) type ; annotation . ivType = classType ; annotation . ivIsSetType = true ; setInjectionClassT...
Sets the type of this binding .
159,798
private boolean isEnvEntryType ( Class < ? > resolverType ) { Class < ? > injectType = getInjectionClassType ( ) ; return injectType == null ? resolverType . getName ( ) . equals ( getInjectionClassTypeName ( ) ) : resolverType == injectType ; }
Checks if the type of this binding is the same as the specified type .
159,799
public List < Asset > getAllAssets ( ) throws IOException , RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive ( "/assets" ) ; connection . setRequestMethod ( "GET" ) ; testResponseCode ( connection ) ; return JSONAssetConverter . readValues ( connection . getInputStream ( ) ) ; }
This method will issue a GET to all of the assets in massive