idx
int64
0
41.2k
question
stringlengths
73
5.81k
target
stringlengths
5
918
24,900
private void validateTimeToLive ( long timeToLive ) throws JMSException { if ( ( timeToLive < 0 ) || ( timeToLive > MfpConstants . MAX_TIME_TO_LIVE ) ) { throw ( JMSException ) JmsErrorUtils . newThrowable ( JMSException . class , "INVALID_VALUE_CWSIA0068" , new Object [ ] { "timeToLive" , "" + timeToLive } , tc ) ; } ...
Validates the timeToLive field and throws an exception if there is a problem .
24,901
private void validateDeliveryDelayTime ( long deliveryDelayTime ) throws JMSException { if ( ( deliveryDelayTime < 0 ) || ( deliveryDelayTime > MfpConstants . MAX_DELIVERY_DELAY ) ) { throw ( JMSException ) JmsErrorUtils . newThrowable ( JMSException . class , "INVALID_VALUE_CWSIA0068" , new Object [ ] { "deliveryDelay...
Validates the deliveryDelayTime field and throws an exception if there is a problem .
24,902
private void validateTTLAndDD ( long timeToLive ) throws JMSException { if ( getDeliveryDelay ( ) > 0 && timeToLive > 0 ) { if ( timeToLive <= getDeliveryDelay ( ) ) { throw ( JMSException ) JmsErrorUtils . newThrowable ( JMSException . class , "INVALID_VALUE_CWSIA0070" , new Object [ ] { getDeliveryDelay ( ) , timeToL...
Validates timetoLive and deliverydelay values . Throws exception if there is a problem
24,903
private void validateCompletionListernerForNull ( CompletionListener cListener ) throws IllegalArgumentException { if ( null == cListener ) { throw ( IllegalArgumentException ) JmsErrorUtils . newThrowable ( IllegalArgumentException . class , "INVALID_VALUE_CWSIA0068" , new Object [ ] { "CompletionListener" , null } , ...
Validates if CompletionListener is NULL . If it is null throws IllegalArgumentException
24,904
private void validateMessageForNull ( Message msg ) throws MessageFormatException { if ( msg == null ) { throw ( MessageFormatException ) JmsErrorUtils . newThrowable ( MessageFormatException . class , "INVALID_VALUE_CWSIA0068" , new Object [ ] { "message" , null } , tc ) ; } }
Validates if Message is NULL . If it is null throws MessageFormatException
24,905
public synchronized ReentrantLock requestAccess ( AuthenticationData authenticationData ) { ReentrantLock currentLock = null ; currentLock = authenticationDataLocks . get ( authenticationData ) ; if ( currentLock == null ) { currentLock = new ReentrantLock ( ) ; authenticationDataLocks . put ( authenticationData , curr...
Obtains a reentrant lock for the given authentication data .
24,906
public synchronized void relinquishAccess ( AuthenticationData authenticationData , ReentrantLock currentLock ) { if ( currentLock != null ) { ReentrantLock savedLock = authenticationDataLocks . get ( authenticationData ) ; if ( currentLock == savedLock ) { authenticationDataLocks . remove ( authenticationData ) ; } cu...
Unlocks the lock and cleans up internal state .
24,907
protected void destroyConnectionFactories ( boolean destroyImmediately ) { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "destroyConnectionFactories" , destroyImmediately , destroyWasDeferred ) ; if ( ! appsToRecycle . isEmpty ( ) ) { i...
Utility method to destroy WAS data source instances .
24,908
private static final void parseIsolationLevel ( NavigableMap < String , Object > wProps , String vendorImplClassName ) { Object isolationLevel = wProps . get ( DataSourceDef . isolationLevel . name ( ) ) ; if ( isolationLevel instanceof String ) { isolationLevel = "TRANSACTION_READ_COMMITTED" . equals ( isolationLevel ...
Utility method that converts transaction isolation level constant names to the corresponding int value .
24,909
protected void setJaasLoginContextEntry ( ServiceReference < ? > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "setJaasLoginContextEntry" , ref ) ; } if ( ref != null ) { jaasLoginContextEntryName = ( String ) ref . getProperty ( "name" ) ; } }
Declarative services method to set the JAASLoginContextEntry .
24,910
protected void unsetConnectionManager ( ServiceReference < ConnectionManagerService > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "unsetConnectionManager" , ref ) ; }
Declarative Services method for unsetting the connection manager service reference
24,911
protected void unsetDriver ( ServiceReference < JDBCDriverService > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "unsetDriver" , ref ) ; }
Declarative Services method for unsetting the JDBC driver service reference
24,912
protected void unsetJaasLoginContextEntry ( ServiceReference < com . ibm . ws . security . jaas . common . JAASLoginContextEntry > svc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "unsetJaasLoginContextEntry" , svc ) ; } jaasLoginContextEntryName = null ; }
Declarative services method to unset the JAASLoginContextEntry .
24,913
protected void recordUnresolvedClass ( String classOrPackageName ) { if ( ! AnnotationTargetsVisitor . isPackageName ( classOrPackageName ) ) { String i_className = internClassName ( classOrPackageName ) ; if ( ! i_containsScannedClassName ( i_className ) ) { i_addUnresolvedClassName ( i_className ) ; } } }
classes list by a later processing step .
24,914
protected void i_setSuperclassName ( String i_subclassName , String i_superclassName ) { i_superclassNameMap . put ( i_subclassName , i_superclassName ) ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , MessageFormat . format ( "[ {0} ] Subclass [ {1} ] has superclass [ {2} ]" , new Object [ ] { getHashText ( ) , i_...
When reading from serialization don t set the referenced classes .
24,915
protected AnnotationTargetsImpl_PolicyData getPolicyData ( ScanPolicy policy ) { if ( policy == ScanPolicy . SEED ) { scanDirectClasses ( ) ; return seedData ; } else if ( policy == ScanPolicy . PARTIAL ) { scanDirectClasses ( ) ; return partialData ; } else if ( policy == ScanPolicy . EXCLUDED ) { scanDirectClasses ( ...
Version for results retrieval ... trigger a scan .
24,916
protected AnnotationTargetsImpl_PolicyData doGetPolicyData ( ScanPolicy policy ) { if ( policy == ScanPolicy . SEED ) { return seedData ; } else if ( policy == ScanPolicy . PARTIAL ) { return partialData ; } else if ( policy == ScanPolicy . EXCLUDED ) { return excludedData ; } else if ( policy == ScanPolicy . EXTERNAL ...
Version for recording ... don t trigger a scan!
24,917
public boolean init ( String s1 ) { if ( s1 == null ) { Tr . error ( tc , "AUTH_FILTER_INIT_NULL_STRING" ) ; return false ; } StringTokenizer st1 = new StringTokenizer ( s1 , ";" ) ; StringTokenizer st2 = null ; String s2 = null ; while ( st1 . hasMoreTokens ( ) ) { s2 = st1 . nextToken ( ) ; st2 = new StringTokenizer ...
Pass the filter string so the implementation can read any of the properties
24,918
public boolean isAccepted ( IRequestInfo req ) { boolean answer = true ; if ( processAll ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "processAll is true, therefore we always intercept." ) ; } return answer ; } String HTTPheader = null ; Iterator < ICondition > iter...
Indicates if TAI should intercept request based on pre - defined rules . Basically just execute the conditions created earlier .
24,919
public boolean containsGuesses ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "containsGuesses" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "containsGuesses" , Boolean . FALSE ) ; return false ; }
The anycast protocol contains no guesses .
24,920
public int getCurrentMaxIndoubtMessages ( int priority , int COS ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getCurrentMaxIndoubtMessages" , new Object [ ] { new Integer ( priority ) , new Integer ( COS ) } ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc ...
The anycast protocol contains no indoubt messages
24,921
private HttpOutboundServiceContextImpl getInterface ( VirtualConnection inVC ) { if ( null == this . myInterface ) { this . myInterface = new HttpOutboundServiceContextImpl ( ( TCPConnectionContext ) getDeviceLink ( ) . getChannelAccessor ( ) , this , inVC , this . myChannel . getHttpConfig ( ) ) ; } return this . myIn...
Get access to the outbound service context for this connection . If it does not exist yet then create it .
24,922
protected void postConnectProcessing ( VirtualConnection inVC ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Finished connecting to target: " + this + " " + inVC ) ; } getInterface ( inVC ) ; }
Any work required after connecting to the target .
24,923
protected void clear ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Clearing the outbound link: " + this + " " + getVirtualConnection ( ) ) ; } setEnableReconnect ( this . myChannel . getHttpConfig ( ) . allowsRetries ( ) ) ; setAllowReconnect ( true ) ; this . rec...
Clear any local variables when this object needs to be reset .
24,924
protected void reConnectSync ( IOException originalExcep ) throws IOException { setAllowReconnect ( false ) ; try { connect ( getTargetAddress ( ) ) ; } catch ( Exception e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Sync reconnect failed, throwing original except...
Attempt to reconnect synchronously to the target server . If an error occurs then simply throw the original exception that caused this recovery path .
24,925
protected void reConnectAsync ( IOException originalExcep ) { setAllowReconnect ( false ) ; this . reconnecting = true ; this . reconnectException = originalExcep ; connectAsynch ( getTargetAddress ( ) ) ; }
Attempt to reconnect asynchronously to the target server . If an error occurs then simply throw the original exception that caused this recovery path .
24,926
final void resumeLocalTx ( LocalTransactionCoordinator lCoord ) throws IllegalStateException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEventEnabled ( ) ) { if ( lCoord != null ) { Tr . event ( tc , "Resuming LTC cntxt: tid=" + Integer . toHexString ( lCoord . hashCo...
Resume the local transaction associated with the given coordinator instance . If the coordinator passed in is null no local context will be resumed . IllegalStateException is raised if a global transaction context exists on the current thread .
24,927
public void setAll ( String _rhn , String _rha , String _lhn , String _lha ) { this . remoteHostName = _rhn ; this . remoteHostAddress = _rha ; this . localHostName = _lhn ; this . localHostAddress = _lha ; this . addrLocal = null ; this . addrRemote = null ; }
Set all of the stored information based on the input strings .
24,928
public void setAddrs ( InetAddress _remote , InetAddress _local ) { this . addrRemote = _remote ; this . addrLocal = _local ; this . remoteHostName = null ; this . remoteHostAddress = null ; this . localHostName = null ; this . localHostAddress = null ; }
Set the address information based on the input InetAddress objects .
24,929
private synchronized void setReceiveAllowed ( DestinationAliasDefinition aliasDefinition ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setReceiveAllowed" , aliasDefinition ) ; ExtendedBoolean aliasIsReceiveAllowed = aliasDefinition . isReceiveAllowed ( ) ; if ( ali...
Set receive allowed flag based on the value stored in the ExtendedBoolean
24,930
public void setQueueName ( String qName ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setQueueName" , qName ) ; setDestName ( qName ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , ...
Set the QueueName . Note that this method is used to provide a Java Bean interface to the property queueName and is not a JMS method as such .
24,931
public String getLogLocation ( ) { if ( logInstanceBrowser instanceof MainLogRepositoryBrowserImpl ) { return ( ( MainLogRepositoryBrowserImpl ) logInstanceBrowser ) . getLocation ( ) . getAbsolutePath ( ) ; } else { return ( ( OneInstanceBrowserImpl ) logInstanceBrowser ) . getLocation ( ) . getAbsolutePath ( ) ; } }
Returns log directory used by this reader .
24,932
public static boolean containsLogFiles ( File location ) { if ( location == null ) { return false ; } location = checkKnownType ( location ) ; if ( isFile ( location ) ) { try { if ( new OneFileBrowserImpl ( location ) . getProcessId ( ) != null ) { return true ; } } catch ( IllegalArgumentException ex ) { } return fal...
checks if specified location contains log files .
24,933
public static File [ ] listRepositories ( File parent ) { if ( parent == null ) { throw new IllegalArgumentException ( "Input parameter can't be null." ) ; } parent = checkKnownType ( parent ) ; if ( ! parent . isDirectory ( ) ) { throw new IllegalArgumentException ( "Input parameter should be an existing directory: " ...
list subdirectories containing repository files .
24,934
public Iterable < ServerInstanceLogRecordList > getLogLists ( ) { return getLogLists ( ( Date ) null , ( Date ) null , ( LogRecordHeaderFilter ) null ) ; }
returns log records from the binary repository
24,935
public Iterable < ServerInstanceLogRecordList > getLogLists ( int minLevel , int maxLevel ) { return getLogLists ( ( Date ) null , ( Date ) null , new LevelFilter ( minLevel , maxLevel ) ) ; }
returns log records from the binary repository that are within the level range as specified by the parameters .
24,936
public ServerInstanceLogRecordList getLogListForServerInstance ( Date time , final LogRecordHeaderFilter filter ) { ServerInstanceByTime instance = new ServerInstanceByTime ( time == null ? - 1 : time . getTime ( ) ) ; if ( instance . logs == null && instance . traces == null ) { return EMPTY_LIST ; } else { return new...
returns log records from the binary repository which satisfy condition of the filter as specified by the parameter . The returned logs will be from the same server instance . The server instance will be determined by the time as specified by the parameter .
24,937
public boolean addSync ( ) throws ResourceException { final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "addSync" ) ; } UOWCoordinator uowCoord = mcWrapper . getUOWCoordinator ( ) ; if ( uowCoord == null ) { java . l...
Register the current object with the Synchronization manager for the current transaction
24,938
public void end ( Xid xid , int flags ) throws XAException { final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "end" ) ; if ( getMcWrapper ( ) . isMCAborted ( ) ) { Tr . exit ( tc , "Connection was aborted. Exiting end...
Ends the work performed on behalf of a transaction branch . The resource manager disassociates the XA resource from the transaction branch specified and let the transaction be completed .
24,939
public void delist ( ) throws ResourceException { final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "delist" , mcWrapper . getUOWCoordinator ( ) ) ; enlisted = false ; if ( isTracingEnabled && tc . isEntryEnabled ( ) )...
Delist an XA Resource .
24,940
public boolean setTransactionTimeout ( int seconds ) throws XAException { final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "setTransactionTimeout" ) ; boolean rc = false ; try { rc = xaResource . setTransactionTimeout...
Set the current transaction timeout value for this XAResource instance . Once set this timeout value is effective until setTransactionTimeout is invoked again with a different value . To reset the timeout value to the default value used by the resource manager set the value to zero . If the timeout operation is perform...
24,941
public void processXAException ( XAException xae ) { final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( ( xae . errorCode == XAException . XAER_RMERR ) || ( xae . errorCode == XAException . XAER_RMFAIL ) ) { if ( isTracingEnabled && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "pro...
Method checks for failing error code coming back form an XAResource and marks the MCWrapper as stale so that it doesn t get returned to the freepool .
24,942
void addWab ( WAB wab , WABInstaller installer ) { if ( ! Thread . holdsLock ( this ) ) { throw new IllegalStateException ( ) ; } if ( wabs == null ) { wabs = new ConcurrentLinkedQueue < WAB > ( ) ; } wabs . add ( wab ) ; if ( groupUninstalled ) uninstallGroup ( installer ) ; }
after adding the wab to the web container etc ..
24,943
void uninstallGroup ( WABInstaller installer ) { if ( wabs != null ) { List < WAB > toRemove = new ArrayList < WAB > ( ) ; for ( WAB wab : wabs ) { wab . terminateWAB ( ) ; wab . removeWAB ( ) ; toRemove . add ( wab ) ; } wabs . removeAll ( toRemove ) ; if ( wabs . size ( ) != 0 ) { installer . wabLifecycleDebug ( "Fir...
server - stop and in response to the removal of the wab feature from the server config .
24,944
boolean removeWAB ( WAB wab ) { if ( ! Thread . holdsLock ( this ) ) { throw new IllegalStateException ( ) ; } wabs . remove ( wab ) ; return wabs . isEmpty ( ) ; }
Tells this wab group to forget this wab DOES NOT UNINSTALL the wab .
24,945
public void put ( List undeliveredMessages , boolean isRestoring ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "put" , undeliveredMessages ) ; int length = undeliveredMessages . size ( ) ; RemoteQPConsumerKey [ ] rcks = new RemoteQP...
This method is called by the AIH in the assured ordered case when an arriving message completes a list Note the messages are not currently in the itemStream
24,946
public void reachabilityChange ( boolean reachable ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "reachabilityChange" , Boolean . valueOf ( reachable ) ) ; Object [ ] clonedConsumerPoints = null ; synchronized ( consumerPoints ) { if ( _currentReachability &&...
The reachability to the DME has changed
24,947
public void disconnectCardOneConsumer ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "disconnectCardOneConsumer" ) ; Object [ ] clonedConsumerPoints = null ; synchronized ( consumerPoints ) { clonedConsumerPoints = consumerPoints . toArray ( ) ; } SILimitExceededEx...
The disconnectCardOneConsumer method is invoked by the Anycast Input Handler to notify it that the current cardinality - one consumer must be disconnected . This can happen when this RME becomes unreachable and the DME allows a consumer in a separate RME to connect . As soon as this RME becomes reachable again the DME ...
24,948
protected DispatchableKey createConsumerKey ( DispatchableConsumerPoint consumerPoint , SelectionCriteria criteria , SIBUuid12 connectionUuid , boolean readAhead , boolean forwardScanning , JSConsumerSet consumerSet ) throws SISelectorSyntaxException , SIDiscriminatorSyntaxException , SIResourceException { if ( TraceCo...
overiding the method in the superclass to create a RemoteQPConsumerKey
24,949
protected JSKeyGroup createConsumerKeyGroup ( JSConsumerSet consumerSet ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createConsumerKeyGroup" , consumerSet ) ; JSKeyGroup ckg = new RemoteQPConsumerKeyGroup ( this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) &&...
overriding the method in the superclass to create a RemoteQPConsumerKeyGroup
24,950
protected void eventPostCommitAdd ( SIMPMessage msg , TransactionCommon transaction ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "eventPostCommitAdd" , new Object [ ] { msg , transaction } ) ; SibTr . exit ( tc , "eventPostCommitAdd" ) ; } }
Overriding super class method to do nothing
24,951
protected void eventUnlocked ( SIMPMessage msg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "eventUnlocked" , msg ) ; AIMessageItem message = ( AIMessageItem ) msg ; dispatchInternalAndHandleException ( message ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && t...
Overriding super class method
24,952
public long getRejectTimeout ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getRejectTimeout" ) ; boolean localCardinalityOne ; synchronized ( consumerPoints ) { localCardinalityOne = _cardinalityOne ; } if ( localCardinalityOne ) { if ( TraceComponent . isAnyTrac...
The timeperiod after which a message that was added to the itemStream and is still in unlocked state should be rejected . This is important to not starve other remote MEs
24,953
@ Reference ( name = "messageEndpointCollaborator" , service = MessageEndpointCollaborator . class , cardinality = ReferenceCardinality . OPTIONAL , policy = ReferencePolicy . DYNAMIC , policyOption = ReferencePolicyOption . GREEDY ) protected void setMessageEndpointCollaborator ( ServiceReference < MessageEndpointColl...
Sets the MessageEndpointCollaborator reference .
24,954
public XAResource getRRSXAResource ( String activationSpecId , Xid xid ) throws XAResourceNotAvailableException { RRSXAResourceFactory factory = rrsXAResFactorySvcRef . getService ( ) ; if ( factory == null ) { return null ; } else { return factory . getTwoPhaseXAResource ( xid ) ; } }
Method to get the XAResource corresponding to an ActivationSpec from the RRSXAResourceFactory
24,955
private void addAdminObjectService ( ServiceReference < AdminObjectService > reference , String id , boolean jndiName ) { NamedAdminObjectServiceInfo aosInfo = createNamedAdminObjectServiceInfo ( id ) ; aosInfo . getServices ( jndiName ) . addReference ( reference ) ; ServiceReference < AdminObjectService > oldServiceR...
Internal method for adding an AdminObjectService with an id .
24,956
protected synchronized void removeAdminObjectService ( ServiceReference < AdminObjectService > reference ) { String id = ( String ) reference . getProperty ( ADMIN_OBJECT_CFG_ID ) ; if ( id != null ) { removeAdminObjectService ( reference , id , false ) ; String jndiName = ( String ) reference . getProperty ( ADMIN_OBJ...
Declarative service method for removing an AdminObjectService .
24,957
protected void removeAdminObjectService ( ServiceReference < AdminObjectService > reference , String id , boolean jndiName ) { NamedAdminObjectServiceInfo aosInfo = adminObjectServices . get ( id ) ; if ( aosInfo != null ) { aosInfo . getServices ( jndiName ) . removeReference ( reference ) ; if ( reference . equals ( ...
Should be private but findbugs complains about remove method with SR .
24,958
protected synchronized void removeEndPointActivationService ( ServiceReference < EndpointActivationService > reference ) { String activationSvcId = ( String ) reference . getProperty ( ACT_SPEC_CFG_ID ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "activationSvcId : "...
Declarative service method for removing an EndpointActivationService .
24,959
private void activateDeferredEndpoints ( Set < MessageEndpointFactoryImpl > mefs ) { for ( MessageEndpointFactoryImpl mef : mefs ) { if ( ! mef . runtimeActivated ) { try { if ( mef . endpointActivationServiceInfo . getAutoStart ( ) == false && mef . shouldActivate == false ) { Tr . info ( tc , "MDB_ENDPOINT_NOT_ACTIVA...
Attempt to activate a set of endpoints if all services are available and they are not already activated .
24,960
private void activateEndpointInternal ( MessageEndpointFactoryImpl mef , boolean explicit ) throws ResourceException { if ( mef . adminObjectServiceInfo != null && mef . adminObjectServiceInfo . serviceRef == null ) { if ( explicit ) { Tr . warning ( tc , "MDB_DESTINATION_NOT_FOUND_CNTR4016W" , mef . getJ2EEName ( ) . ...
Attempt to activate an endpoint if all its services are available .
24,961
private void deactivateEndpoints ( Set < MessageEndpointFactoryImpl > mefs ) { for ( MessageEndpointFactoryImpl mef : mefs ) { if ( mef . runtimeActivated ) { deactivateEndpointInternal ( mef ) ; } } }
Deactivates a set of endpoints if they have been activated .
24,962
public void restore ( ObjectInputStream ois , int dataVersion ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "restore" , new Object [ ] { ois , new Integer ( dataVersion ) } ) ; checkPersistentVersionId ( dataVersion ) ; try { HashMap hm = ( HashMap ) ois . readObjec...
Method restore called by message store .
24,963
public void getActiveTransactions ( Set < PersistentTranId > transactionList ) throws MessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getActiveTransactions" , transactionList ) ; AbstractItem item = null ; NonLockingCursor cursor = newNonLockingIt...
getActiveTransactions - This method iterates through all msgs on the itemstream in Removing state and builds a list of all transaction ids involved in the remove
24,964
protected final Properties generateLTPAKeys ( byte [ ] keyPasswordBytes , final String realm ) throws Exception { Properties expProps = null ; try { KeyEncryptor encryptor = new KeyEncryptor ( keyPasswordBytes ) ; LTPAKeyPair pair = LTPADigSignature . generateLTPAKeyPair ( ) ; byte [ ] publicKey = pair . getPublic ( ) ...
Generates the LTPA keys and stores them into a Properties object .
24,965
private OutputStream getOutputStream ( final String keyFile ) throws IOException { try { return AccessController . doPrivileged ( new PrivilegedExceptionAction < OutputStream > ( ) { public OutputStream run ( ) throws IOException { return new FileOutputStream ( new File ( keyFile ) ) ; } } ) ; } catch ( PrivilegedActio...
Obtain the OutputStream for the given file .
24,966
protected void addLTPAKeysToFile ( OutputStream os , Properties ltpaProps ) throws Exception { try { ltpaProps . store ( os , null ) ; } catch ( IOException e ) { throw e ; } finally { if ( os != null ) try { os . close ( ) ; } catch ( IOException e ) { } } return ; }
Write the LTPA key properties to the given OutputStream . This method will close the OutputStream .
24,967
private String checkConflict ( Element elem , String oldAttrValue , String attr ) throws JspCoreException { String result = oldAttrValue ; String attrValue = null ; if ( elem . getAttributeNode ( attr ) != null ) { attrValue = elem . getAttributeNode ( attr ) . getValue ( ) ; } if ( attrValue != null ) { if ( oldAttrVa...
new method for jsp2 . 1ELwork
24,968
private Set < String > convertAbsToRelative ( Collection < File > files ) { Set < String > result = new HashSet < String > ( ) ; for ( File f : files ) { String fAbsPath = PathUtils . fixPathString ( f ) ; if ( fAbsPath . startsWith ( rootAbsolutePath ) ) { String absPath = fAbsPath ; absPath = absPath . substring ( ro...
convert java . io . files into relative paths under the root container .
24,969
public void processNewConnection ( SocketIOChannel socket ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "processNewConnection" ) ; } VirtualConnection vc = vcf . createConnection ( ) ; TCPConnLink bc = ( TCPConnLink ) tcpChannel . getConnectionLink ( vc ) ; TCPReadRe...
Processes a new connection by scheduling initial read .
24,970
public final void declareAlreadyPrecommitted ( ) throws TaskListException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "declareAlreadyPrecommitted" ) ; if ( STATE_UNTOUCHED == _state ) { _state = STATE_END_PRECOMMIT ; } else if ( STATE_END_PRECOMMIT == _state ...
Use this method to declare that a tasklist has already been precommitted . This is used when restoring tasks used to resolve in doubt items from persistence . By doing this we reduce the number of different paths through the state model .
24,971
private static boolean needsQuote ( String value ) { if ( null == value ) return true ; int len = value . length ( ) ; if ( 0 == len ) { return true ; } if ( '"' == value . charAt ( 0 ) ) { if ( '"' == value . charAt ( len - 1 ) ) { return false ; } return true ; } for ( int i = 0 ; i < len ; i ++ ) { char c = value . ...
Return true iff the string contains special characters that need to be quoted .
24,972
private static void maybeQuote ( StringBuilder buff , String value ) { if ( null == value || 0 == value . length ( ) ) { buff . append ( "\"\"" ) ; } else if ( needsQuote ( value ) ) { buff . append ( '"' ) ; buff . append ( value ) ; buff . append ( '"' ) ; } else { buff . append ( value ) ; } }
Append the input value string to the given buffer wrapping it with quotes if need be .
24,973
private static String convertV0Cookie ( HttpCookie cookie ) { StringBuilder buffer = new StringBuilder ( 40 ) ; buffer . append ( cookie . getName ( ) ) ; String value = cookie . getValue ( ) ; if ( null != value && 0 != value . length ( ) ) { buffer . append ( '=' ) ; buffer . append ( value ) ; } else { buffer . appe...
Convert the V0 Cookie into a Cookie header string .
24,974
private static String convertV1Cookie ( HttpCookie cookie ) { StringBuilder buffer = new StringBuilder ( 40 ) ; buffer . append ( cookie . getName ( ) ) ; buffer . append ( '=' ) ; maybeQuote ( buffer , cookie . getValue ( ) ) ; buffer . append ( "; $Version=1" ) ; String value = cookie . getPath ( ) ; if ( null != val...
Convert the V1 Cookie into a Cookie header string .
24,975
private static String convertV1SetCookie ( HttpCookie cookie ) { StringBuilder buffer = new StringBuilder ( 40 ) ; buffer . append ( cookie . getName ( ) ) ; buffer . append ( '=' ) ; maybeQuote ( buffer , cookie . getValue ( ) ) ; buffer . append ( "; Version=1" ) ; String value = cookie . getComment ( ) ; if ( null !...
Convert the V1 Cookie into a Set - Cookie header string .
24,976
public InetAddress getRemoteAddress ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getRemoteAddress" ) ; InetAddress result = null ; TCPConnectionContext tcpContext = null ; ConnectionLink connLinkRef = baseLink . getDeviceLink ( ) ; if ( connLinkRef != nul...
begin F206161 . 5
24,977
private Map < String , Object > filterUnexpectedKeys ( Map < String , Object > inputProps ) { Map < String , Object > outputProps = new HashMap < String , Object > ( ) ; Set < Entry < String , Object > > entries = inputProps . entrySet ( ) ; for ( Map . Entry < String , Object > entry : entries ) { String key = entry ....
Reduce the map to the set of expected keys
24,978
private void publishToRepository ( String attributeName , String attributeType , Object oldValue , Object newValue ) { super . sendNotification ( new AttributeChangeNotification ( this , sequenceNum . incrementAndGet ( ) , System . currentTimeMillis ( ) , "" , attributeName , attributeType , oldValue , newValue ) ) ; }
Send attribute change notification
24,979
public static void main ( String [ ] args ) { final boolean testTimeout = true ; final boolean testDeadlock = false ; final boolean testShutdown = true ; final long timeout = 1000 ; final Object lock1 = new Object ( ) ; final Object lock2 = new Object ( ) ; final Thread thread1 = new Thread ( ) { public void run ( ) { ...
Unit test code - run as Java application from your eclipse workspace
24,980
public static void startServerComms ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "startServerComms" ) ; try { ServerConnectionManager . initialise ( new AcceptListenerFactoryImpl ( ) ) ; } catch ( Throwable t ) { FFDCFilter . processException ( t , CLASS_NAME + "...
Starts the comms server communications .
24,981
public void enlistSynchronization ( javax . transaction . Synchronization sync ) throws IllegalStateException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "enlistSynchronization" , sync ) ; if ( ( _state != Running ) && ( _state != Suspended ) ) { final IllegalStateException ise = new IllegalStateException ( "Can...
Enlist a Synchronization object that will be informed upon completion of the local transaction containment boundary .
24,982
protected void suspend ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "suspend" ) ; _current = null ; _state = Suspended ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "suspend" ) ; }
Suspend any native context off the thread
24,983
protected void resume ( LocalTranCurrentImpl current ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "resume" , current ) ; _current = current ; _state = Running ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "resume" ) ; }
Resume any native context onto the thread
24,984
protected void getComponentMetadataForLTC ( ) { if ( _deferredConfig ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getComponentMetadataForLTC" ) ; _deferredConfig = false ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getComponentMetadataForLTC" ) ; } }
Complete the deferred LTC start by retrieving the remaining LTC config from component metadata
24,985
public void setConnectionObjectId ( short connectionObjectId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setConnectionObjectId" , Short . valueOf ( connectionObjectId ) ) ; this . connectionObjectId = connectionObjectId ; if ( TraceComponent . isAnyTracing...
setConnectionObjectId - sets and stores the connection object id
24,986
public void setCachedConsumerProps ( CachedSessionProperties props ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setCachedConsumerProps" , props ) ; this . cachedProps = props ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr...
Sets the cached destination .
24,987
public void setCachedConsumer ( CATMainConsumer consumer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setCachedConsumer" , consumer ) ; this . cachedConsumer = consumer ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exi...
Sets the cached CATMainConsumer
24,988
public synchronized int addObject ( Object object ) throws ConversationStateFullException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "addObject" , "object=" + object ) ; int objectIndex = 0 ; if ( freeSlot == MINUS_ONE ) { extendObjectTable ( ) ; } objectInd...
addObject - adds a given object to the object store
24,989
private synchronized void extendObjectTable ( ) throws ConversationStateFullException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "extendObjectTable" ) ; int newTableSize = ( ( ( maxIndex + 1 ) * OBJECT_TABLE_EXTEND_FACTOR ) - OBJECT_TABLE_ORIGIN ) ; if ( new...
extendObjectTable - extends the object store if it is found to be full . The table can be extended until a maximum size . The maximum size can be supplied or a default size .
24,990
public synchronized Object getObject ( int objectIndex ) throws IndexOutOfBoundsException , NoSuchElementException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getObject" , "" + objectIndex ) ; Object object ; if ( ( objectIndex < OBJECT_TABLE_ORIGIN ) || ( o...
getObject - retrieve an object from the object store .
24,991
public synchronized Object removeObject ( int objectIndex ) throws IndexOutOfBoundsException , NoSuchElementException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "removeObject" , Integer . valueOf ( objectIndex ) ) ; if ( ( objectIndex < OBJECT_TABLE_ORIGIN )...
removeObject - remove an object from the object store .
24,992
public void dumpObjectTable ( int numberOfEntries ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dumpObjectTable" ) ; if ( numberOfEntries < 0 ) { throw new IllegalArgumentException ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ...
dumpTable - dumps the specified number of entries in the Object Table .
24,993
public void setInitialRequestNumber ( int initialRequestNumber ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setInitialRequestNumber" , Integer . valueOf ( initialRequestNumber ) ) ; this . requestNumber = initialRequestNumber ; if ( TraceComponent . isAnyTr...
This method will set the initial request number for this conversation .
24,994
public synchronized int getUniqueRequestNumber ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getUniqueRequestNumber" ) ; requestNumber += 2 ; if ( requestNumber > Short . MAX_VALUE ) { requestNumber = requestNumber % 2 ; } if ( TraceComponent . isAnyTracin...
This method will return a unique number that can be used for JFAP exchanges . as this can be for ME - ME comms unique number is always increased by two . As such if the initiating peer uses odd request numbers they will always use unique numbers .
24,995
public synchronized String getLastItemsInStore ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getLastItemsInStore" ) ; String lastItems = "" ; for ( int x = maxIndex ; x > ( maxIndex - 101 ) ; x -- ) { lastItems = " [" + x + "]: " + objectTable [ x ] + "\r\...
This method can be used to create a String that details the last 100 items added to the store . It is best used at the time when the object store is full to indicate what is taking up all the space in the store .
24,996
public void putChunkedMessageWrapper ( long wrapperId , ChunkedMessageWrapper wrapper ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "putChunkedMessageWrapper" , new Object [ ] { Long . valueOf ( wrapperId ) , wrapper } ) ; inProgressMessages . put ( Long . va...
Puts a chunked message wrapper into our map .
24,997
public void removeChunkedMessageWrapper ( long wrapperId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "removeChunkedMessageWrapper" , Long . valueOf ( wrapperId ) ) ; inProgressMessages . remove ( Long . valueOf ( wrapperId ) ) ; if ( TraceComponent . isAnyT...
Removes a chunked message wrapper from our map .
24,998
public void setInjectionBinding ( InjectionBinding < ? > injectionBinding ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setInjectionBinding : " + injectionBinding ) ; ivInjectionBinding = injectionBinding ; }
Set the parent InjectionBinding containing the information for this injection target
24,999
public static String createString ( char [ ] charBuf ) { if ( ! enabled ) { return createStringFallback ( charBuf ) ; } String str = new String ( ) ; try { synchronized ( str ) { valueField . set ( str , charBuf ) ; countField . set ( str , charBuf . length ) ; } synchronized ( str ) { if ( str . length ( ) != charBuf ...
creates a new java . lang . String by setting the char array directly to the String instance with reflection .