idx
int64
0
41.2k
question
stringlengths
73
5.81k
target
stringlengths
5
918
23,900
public final Operation patchInstanceGroupManager ( String instanceGroupManager , InstanceGroupManager instanceGroupManagerResource , List < String > fieldMask ) { PatchInstanceGroupManagerHttpRequest request = PatchInstanceGroupManagerHttpRequest . newBuilder ( ) . setInstanceGroupManager ( instanceGroupManager ) . set...
Updates a managed instance group using the information that you specify in the request . This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched . You must separately verify the status of the individual instances with the listManagedInstanc...
23,901
public static DatasetId of ( String project , String dataset ) { return new DatasetId ( checkNotNull ( project ) , checkNotNull ( dataset ) ) ; }
Creates a dataset identity given project s and dataset s user - defined ids .
23,902
protected JCAConnectionFactoryMBeanImpl setConnectionFactoryChild ( String key , JCAConnectionFactoryMBeanImpl cf ) { return cfMBeanChildrenList . put ( key , cf ) ; }
setConnectionFactoryChild add a child of type JCAConnectionFactoryMBeanImpl to this MBean .
23,903
AppConfigurationEntry [ ] getAppConfigurationEntry ( String config ) { Vector entry = null ; if ( ( _fileMap != null ) && ( _fileMap . size ( ) != 0 ) ) { entry = ( Vector ) _fileMap . get ( config ) ; } if ( entry == null || entry . size ( ) == 0 ) { return null ; } int appSize = entry . size ( ) ; AppConfigurationEnt...
This method returns an AppConfigurationEntry from internal storage based on the input key or alias .
23,904
private static void validateTags ( String [ ] tagList , ArrayList < String > validList , ArrayList < String > invalidList ) { for ( String tag : tagList ) { tag = tag . trim ( ) ; if ( tag . contains ( "\\" ) || tag . contains ( " " ) || tag . contains ( "\n" ) || tag . contains ( "-" ) || tag . equals ( "" ) ) { inval...
Filter out tags with escaping characters and invalid characters restrict to only alphabetical and numeric characters
23,905
public void init ( CollectorManager collectorManager ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Subscribing to sources " + this , taskMap . keySet ( ) ) ; } try { this . collectorMgr = collectorManager ; collectorMgr . subscribe ( this , new ArrayList < String > ...
Methods from the collector manager handler interface
23,906
public boolean isAvailable ( ) { boolean available = false ; String relativeURL = inputSource . getRelativeURL ( ) ; Container container = tcontext . getServletContext ( ) . getModuleContainer ( ) ; if ( container != null ) { if ( options . isDisableJspRuntimeCompilation ( ) == false ) { Entry entry = container . getEn...
Defect 268176 . 1
23,907
private void parseMsgSize ( Map < Object , Object > props ) { String value = ( String ) props . get ( HttpConfigConstants . PROPNAME_MSG_SIZE_LIMIT ) ; if ( null != value ) { try { this . msgSizeLimit = Long . parseLong ( value ) ; if ( HttpConfigConstants . UNLIMITED > getMessageSize ( ) ) { if ( TraceComponent . isAn...
Parse the standard limit on an incoming message size .
23,908
private void parseMsgLargeBuffer ( Map < Object , Object > props ) { if ( ! areMessagesLimited ( ) ) { return ; } String value = ( String ) props . get ( HttpConfigConstants . PROPNAME_MSG_SIZE_LARGEBUFFER ) ; if ( null != value ) { try { long limit = Long . parseLong ( value ) ; if ( limit < getMessageSize ( ) || Http...
Parse the single larger buffer size that is allowed to reach beyond the standard buffer size
23,909
void addFieldInfo ( String className , List < FieldInfo > fieldInfoList ) { if ( ivFieldInfoMap == null ) { ivFieldInfoMap = new HashMap < String , List < FieldInfo > > ( ) ; } ivFieldInfoMap . put ( className , fieldInfoList ) ; }
Adds the className and fieldInfoList to the ivFieldInfoMap .
23,910
public void createRecoveryManager ( RecoveryAgent agent , RecoveryLog tranLog , RecoveryLog xaLog , RecoveryLog recoverXaLog , byte [ ] defaultApplId , int defaultEpoch ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createRecoveryManager" , new Object [ ] { this , agent , tranLog , xaLog , recoverXaLog , default...
Creates a RecoveryManager object instance and associates it with this FailureScopeController The recovery manager handles recovery processing on behalf of the managed failure scope .
23,911
public void setToBeDeleted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setToBeDeleted" ) ; if ( _remoteSupport != null ) _remoteSupport . setToBeDeleted ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setToB...
Method to indicate the destination is to be deleted .
23,912
synchronized static void setFactoryImplementation ( ) { if ( initialized ) return ; initialized = true ; String authConfigProvider = Security . getProperty ( AuthConfigFactory . DEFAULT_FACTORY_SECURITY_PROPERTY ) ; if ( authConfigProvider == null || authConfigProvider . isEmpty ( ) ) { Tr . info ( tc , "JASPI_DEFAULT_...
Make sure we don t dump multiple messages to the logs by only initializing once .
23,913
private < T extends Enum < T > > Object [ ] getValidEnumConstants ( Class < T > valueClass ) { T [ ] constants = valueClass . getEnumConstants ( ) ; if ( ! VersionedEnum . class . isAssignableFrom ( valueClass ) ) { return constants ; } List < T > valid = new ArrayList < T > ( constants . length ) ; for ( T value : con...
Return an array of the constants for the enum that are valid based on the version of this parser .
23,914
public WebAuthenticator getSSOAuthenticator ( WebRequest webRequest , String ssoCookieName ) { SecurityMetadata securityMetadata = webRequest . getSecurityMetadata ( ) ; SecurityService securityService = securityServiceRef . getService ( ) ; SSOCookieHelper cookieHelper ; if ( ssoCookieName != null ) { cookieHelper = n...
Create an instance of SSOAuthenticator .
23,915
private void initProperties ( int interval ) { if ( interval > MAXIMUM_INTERVAL ) interval = MAXIMUM_INTERVAL ; if ( interval < 1 ) interval = 1 ; _interval = interval ; }
Initialize this instance of an AbstractForAWhileSuppressor .
23,916
public static boolean uriCaseCheck ( File file , String matchString ) throws java . io . IOException { if ( isCaseInsensitive || isWindows ) { matchString = WSUtil . resolveURI ( matchString ) ; matchString = matchString . replace ( '/' , File . separatorChar ) ; String canPath = file . getCanonicalPath ( ) ; int offse...
Not a problem on UNIX type systems since the OS handles is case sensitive .
23,917
public Object inject ( Class Klass , boolean doPostConstruct ) throws InjectionProviderException { return inject ( Klass , doPostConstruct , ( ExternalContext ) null ) ; }
CDI 1 . 2 injection based on a Class . CDI will create the object instance which allows for constructor Injection .
23,918
protected void destroy ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "CompletionKey::destroy entered for:" + this ) ; } if ( this . rawData != null ) { if ( this . wsByteBuf != null ) { this . wsByteBuf . release ( ) ; this . wsByteBuf = null ; } this . rawData = n...
Cleanup resources held by CompletionKey
23,919
public void setBuffer ( long address , long length , int index ) { if ( ( index < 0 ) || ( index >= this . bufferCount ) ) { throw new IllegalArgumentException ( ) ; } this . stagingByteBuffer . putLong ( ( FIRST_BUFFER_INDEX + ( 2 * index ) ) * 8 , address ) ; this . stagingByteBuffer . putLong ( ( FIRST_BUFFER_INDEX ...
Sets the address and length of a buffer with a specified index .
23,920
public int getReturnCode ( ) { long returnCode = this . stagingByteBuffer . getLong ( RETURN_CODE_INDEX * 8 ) ; if ( returnCode > Integer . MAX_VALUE ) { AsyncException ae = new AsyncException ( "Return code value invalid" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc ...
Returns the result code for the operation where the operation has completed .
23,921
public void init ( ) { List fMappings = new ArrayList ( webAppConfig . getFilterMappings ( ) ) ; if ( ! fMappings . isEmpty ( ) ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "init" , "filter mappings at ini...
Initialize the manager and see if any filters should be preloaded
23,922
public FilterInstanceWrapper getFilterInstanceWrapper ( String filterName ) throws ServletException { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . entering ( CLASS_NAME , "getFilterInstanceWrapper" , "entry for " + filterName ) ; try { FilterIn...
Returns a FilterInstanceWrapper object corresponding to the passed in filter name . If the filter inst has previously been created return that instance ... if not then create a new filter instance
23,923
public void shutdown ( ) { Enumeration filterWrappers = _filterWrappers . elements ( ) ; ClassLoader origClassLoader = ThreadContextHelper . getContextClassLoader ( ) ; try { final ClassLoader warClassLoader = webApp . getClassLoader ( ) ; if ( warClassLoader != origClassLoader ) { ThreadContextHelper . setClassLoader ...
Shuts down the filter manager instance and sets the filter config to null for each loaded filter object
23,924
private FilterInstanceWrapper loadFilter ( String filterName ) throws ServletException { ClassLoader origClassLoader = ThreadContextHelper . getContextClassLoader ( ) ; try { final ClassLoader warClassLoader = webApp . getClassLoader ( ) ; if ( warClassLoader != origClassLoader ) { ThreadContextHelper . setClassLoader ...
Creates a new FilterInstanceWrapper object corresponding to the passed in filter name . This new object is added to the _filterWrappers hash table
23,925
protected FilterInstanceWrapper createFilterInstanceWrapper ( String filterName , Filter filter , ManagedObject mo ) throws InjectionException { return new FilterInstanceWrapper ( filterName , filter , _evtSource , mo ) ; }
begin LIDB - 3598 added support for FilterInvocationListeners
23,926
private boolean uriMatch ( String requestURI , IFilterMapping fmInfo , DispatcherType dispatcherType ) { boolean theyMatch = false ; switch ( fmInfo . getMappingType ( ) ) { case FMI_MAPPING_SINGLE_SLASH : if ( requestURI . equals ( "/" ) ) theyMatch = true ; break ; case FMI_MAPPING_PATH_MATCH : if ( requestURI . star...
Compares the request uri to the passed in filter uri to see if the filter associated with the filter uri should filter the request uri
23,927
public Schema makeRefProperty ( String ref , Schema property ) { Schema newProperty = new SchemaImpl ( ) . ref ( ref ) ; this . copyVendorExtensions ( property , newProperty ) ; return newProperty ; }
Make a RefProperty
23,928
public void copyVendorExtensions ( Schema source , Schema target ) { if ( source . getExtensions ( ) != null ) { Map < String , Object > vendorExtensions = source . getExtensions ( ) ; for ( String extName : vendorExtensions . keySet ( ) ) { ( ( SchemaImpl ) target ) . addExtension_compat ( extName , vendorExtensions ....
Copy vendor extensions from Property to another Property
23,929
@ FFDCIgnore ( { IDTokenValidationFailedException . class } ) public boolean verify ( long clockSkew , Object key ) throws IDTokenValidationFailedException { boolean verified = false ; try { if ( super . verify ( clockSkew , key ) ) { payload . putAll ( super . getPayload ( ) ) ; addToPayload ( ) ; if ( payload . getAc...
Verify idtoken .
23,930
final static Class getPropertyType ( String longPropertyName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getPropertyType" , longPropertyName ) ; Class propType = null ; PropertyEntry prop = propertyMap . get ( longPropertyName ) ; if ( prop != null ) { propType =...
getPropertyType Utility method which returns the type of value required for the given property . URIDestinationCreator uses this method to test if a property is known or not and assumes silent failure if the property is not known .
23,931
final static Object convertPropertyToType ( String longPropertyName , String stringValue ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "convertPropertyToType" , new Object [ ] { longPropertyName , stringValue } ) ; Object decodedObject = stringValue ; Class required...
convertPropertyToType Convert a property from its stringified form into an Object of the appropriate type . Called by URIDestinationCreator .
23,932
private static void initializePropertyMaps ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initializePropertyMap" ) ; addToMaps ( new PhantomPropertyCoder ( JmsInternalConstants . PRIORITY , PR ) , PR_INT , Integer . class , Integer . valueOf ( Message . DEFAULT_PR...
initializePropertyMaps Initialize the Property Maps which must each contain an entry for every supported Destination Property which is to be encoded or set via this class .
23,933
private static int decodeBasicProperties ( JmsDestination newDest , byte [ ] msgForm ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "decodeBasicProperties" , new Object [ ] { newDest , msgForm } ) ; int offset = 0 ; byte delMode = ( byte ) ( msgFo...
decodeBasicProperties Decode the basic information to set the folloing attributes if present on to the new JmsDestination DeliveryMode Priority TimeToLive
23,934
private static void setProperty ( JmsDestination dest , String longName , int propIntValue , Object value ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setProperty" , new Object [ ] { dest , longName , propIntValue , value } ) ; switch ( propInt...
setProperty Set the given property to the given value on the given JmsDestination .
23,935
public void setMessageListener ( MessageConsumer consumer , MessageListener listener ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setMessageListener" , new Object [ ] { consumer , listener } ) ; if ( ! ( consumer instanceof JmsMsgConsume...
Assign a messageListener to the message consumer .
23,936
protected final void updateLastNotReadyTime ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "updateLastNotReadyTime" ) ; if ( readAhead ) { synchronized ( this ) { if ( ! usable ) { lastNotReadyTime = System . currentTimeMillis ( ) ; usable = true ; } } } if ...
Update the time when the consumer became not ready
23,937
protected final void messageReceived ( AIStreamKey key ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "messageReceived" , key ) ; long timeout = refillTime ; boolean reissueGet = false ; synchronized ( this ) { countOfUnlockedMessages ++ ; if ( TraceComponent ...
message received from the DME corresponding to a get request issued by this consumer . Note that this method will never be called on messages received due to gets issued by the RemoteQPConsumerKeyGroup
23,938
protected final void completedReceived ( AIStreamKey key , boolean reissueGet ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "completedReceived" , new Object [ ] { key , Boolean . valueOf ( reissueGet ) } ) ; completedReceivedNoPrefetch ( key , reissueGet ) ; ...
completed tick received from the RME corresponding to a get request issued by this consumer . Note that this method is called only when the RemoteConsumerDispatcher does not hide the completed by reissuing the get . This method will never be called for messages received due to gets issued by the RemoteQPConsumerKeyGrou...
23,939
protected final void completedReceivedNoPrefetch ( AIStreamKey key , boolean reissueGet ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "completedReceivedNoPrefetch" , new Object [ ] { key , Boolean . valueOf ( reissueGet ) } ) ; boolean initiateRefill = false ...
This method will never be called for messages received due to gets issued by the RemoteQPConsumerKeyGroup .
23,940
public final void messageLocked ( AIStreamKey key ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "messageLocked" , key ) ; synchronized ( this ) { countOfUnlockedMessages -- ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . d...
Message that was requested by this consumer has been locked . Note that it could have been locked by some other consumer . This method will never be called for messages received due to gets issued by the RemoteQPConsumerKeyGroup
23,941
public final void messageUnlocked ( AIStreamKey key ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "messageUnlocked" , key ) ; synchronized ( this ) { countOfUnlockedMessages ++ ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr...
Message that was requested by this consumer has been unlocked . This method will never be called for messages received due to gets issued by the RemoteQPConsumerKeyGroup
23,942
private final void tryPrefetching ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "tryPrefetching" ) ; int toPrefetchCount = 0 ; synchronized ( this ) { if ( ! detached ) { int count = countOfOutstandingInfiniteTimeoutGets + countOf...
Internal method . See if we need to prefetch more messages and if yes do the prefetch
23,943
public LocalTransactionCoordinator suspend ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "suspend" , this ) ; final LocalTranCoordImpl ltc = _coord ; if ( ltc != null ) { _coord = null ; ltc . suspend ( ) ; invokeEventListener ( ltc , UOWEventListener . SUSPEND , null ) ; } if ( tc . isEntryEnabled ( ) ) Tr . ...
Disassociates the LTC scope from the thread .
23,944
public void resume ( LocalTransactionCoordinator ltc ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "resume" , new Object [ ] { ltc , this } ) ; if ( ltc != null && _coord != null ) { final IllegalStateException ise = new IllegalStateException ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "resume" , ise )...
Associates an LTC scope with the thread . Any existing LTC is suspended first .
23,945
public boolean hasOutstandingWork ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "hasOutstandingWork" , this ) ; final boolean retval = ( _coord != null ) ? _coord . hasWork ( ) : false ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "hasOutstandingWork" , retval ) ; return retval ; }
Returns a boolean to indicate whether there are incomplete RMLTs in the current LTC .
23,946
void setCoordinator ( LocalTranCoordImpl ltc ) { _coord = ltc ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setCoordinator: LTC=" + ltc ) ; }
Setter for the _coord member var .
23,947
public Object createResource ( final ResourceInfo resInfo ) throws Exception { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "createResource" , resInfo ) ; Object connectionFactory ; lock . readLock ( ) . lock ( ) ; try { if ( ! isIniti...
Create a connection factory .
23,948
public void destroyXAResource ( XAResource xa ) throws DestroyXAResourceException { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "destroyXAResource" , xa ) ; ManagedConnection mc = ( ( WSXAResource ) xa ) . getManagedConnection ( ) ; t...
Destroy the XAResource object . Internally the XAResource provider should cleanup resources used by XAResource object . For example JTA should close XAConnection .
23,949
public XAResource getXAResource ( Serializable xaresinfo ) throws XAResourceNotAvailableException { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "getXAResource" , getID ( ) , xaresinfo ) ; XAResource xa ; ManagedConnection mc = null ; ...
Given XAResourceInfo the XAResourceFactory produces a XAResource object .
23,950
protected void setContainerAuthData ( ServiceReference < ? > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "setContainerAuthData" , ref ) ; lock . writeLock ( ) . lock ( ) ; try { containerAuthDataRef = ref ; } finally { lock . writeLock ( ) . unlock ( ) ; }...
Declarative Services method for setting the service reference for the default container auth data
23,951
protected void setRecoveryAuthData ( ServiceReference < ? > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "setRecoveryAuthData" , ref ) ; lock . writeLock ( ) . lock ( ) ; try { recoveryAuthDataRef = ref ; } finally { lock . writeLock ( ) . unlock ( ) ; } }
Declarative Services method for setting the recovery auth data service reference
23,952
int getAllPuCount ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getAllPuCount" , this ) ; int rtnCount = 0 ; synchronized ( pxmlsInfo ) { for ( JPAPxmlInfo pxmlInfo : pxmlsInfo . values ( ) ) { rtnCount += pxmlInfo . getPuCount ...
Returns the number of persistence units in persistence . xml defined in this scope .
23,953
JPAPUnitInfo getUniquePuInfo ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getUniquePuInfo" ) ; JPAPUnitInfo rtnVal = null ; synchronized ( pxmlsInfo ) { for ( JPAPxmlInfo pxmlInfo : pxmlsInfo . values ( ) ) { Set < String > puN...
Returns an unique PersistenceUnitInfo object if there is only persistence unit defines in this scope otherwise null is returned .
23,954
void close ( ) { synchronized ( pxmlsInfo ) { for ( JPAPxmlInfo pxmlInfo : pxmlsInfo . values ( ) ) { pxmlInfo . close ( ) ; } pxmlsInfo . clear ( ) ; } }
Cloase all the active EntityManagers defined in this scope .
23,955
public T put ( T t , long timeoutInMillis , int maximumCapacity ) throws InterruptedException { if ( ( t == null ) || ( maximumCapacity > buffer . length ) ) { throw new IllegalArgumentException ( ) ; } long start = ( timeoutInMillis <= 0 ) ? 0 : - 1 ; long waitTime = timeoutInMillis ; T ret = null ; while ( true ) { s...
Puts an object into the buffer . If the buffer is at or above the specified maximum capacity the call will block for up to the specified timeout period .
23,956
private final void expeditedInsert ( T t ) { expeditedBuffer [ expeditedPutIndex ] = t ; if ( ++ expeditedPutIndex >= expeditedBuffer . length ) { expeditedPutIndex = 0 ; } }
Inserts an object into the expeditedBuffer . Note that since there is no synchronization it is assumed that this is done outside the scope of this call .
23,957
private final T expeditedExtract ( ) { T old = expeditedBuffer [ expeditedTakeIndex ] ; expeditedBuffer [ expeditedTakeIndex ] = null ; if ( ++ expeditedTakeIndex >= expeditedBuffer . length ) expeditedTakeIndex = 0 ; return old ; }
Removes an object from the expeditedBuffer . Note that since there is no synchronization it is assumed that this is done outside the scope of this call .
23,958
@ SuppressWarnings ( "unchecked" ) public synchronized void expandExpedited ( int additionalCapacity ) { if ( additionalCapacity <= 0 ) { throw new IllegalArgumentException ( ) ; } int capacityBefore = expeditedBuffer . length ; synchronized ( lock ) { int capacityAfter = expeditedBuffer . length ; if ( capacityAfter =...
Increases the expedited buffer s capacity by the given amount .
23,959
public final Object deserialize ( byte [ ] bytes , ClassLoader loader ) throws ClassNotFoundException , IOException { if ( bytes == null ) return null ; InputStream iin = new InflaterInputStream ( new ByteArrayInputStream ( bytes ) ) ; SerializationService serializationSvc = serializationSvcRef . getService ( ) ; Objec...
Utility method that deserializes an object from bytes .
23,960
String [ ] [ ] findPartitionInfo ( String hostName , String userDir , String libertyServerName , String executorIdentifier ) throws Exception { PartitionRecord criteria = new PartitionRecord ( false ) ; if ( hostName != null ) criteria . setHostName ( hostName ) ; if ( userDir != null ) criteria . setUserDir ( userDir ...
Finds partition information in the persistent store . All of the parameters are optional . If a parameter is specified only entries that match it are retrieved from the persistent store .
23,961
public < T > TaskStatus < T > getStatus ( long taskId ) { String owner = getOwner ( ) ; if ( owner == null ) return null ; TransactionController tranController = new TransactionController ( ) ; TaskRecord taskRecord = null ; try { tranController . preInvoke ( ) ; taskRecord = taskStore . findById ( taskId , owner , fal...
Returns status for the persistent task with the specified id .
23,962
public void notifyOfTaskAssignment ( long taskId , long nextExecTime , short binaryFlags , int transactionTimeout ) { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; Boolean previous = inMemoryTaskIds . put ( taskId , Boolean . TRUE ) ; if ( previous == null ) { InvokerTask task = new InvokerTask ( thi...
Invoked by a controller to notify a persistent executor that a task has been assigned to it .
23,963
int removePartitionInfo ( String hostName , String userDir , String libertyServerName , String executorIdentifier ) throws Exception { PartitionRecord criteria = new PartitionRecord ( false ) ; if ( hostName != null ) criteria . setHostName ( hostName ) ; if ( userDir != null ) criteria . setUserDir ( userDir ) ; if ( ...
Removes partition information from the persistent store . All of the parameters are optional . If a parameter is specified only entries that match it are removed from the persistent store .
23,964
public final byte [ ] serialize ( Object object ) throws IOException { if ( object == null ) return null ; ByteArrayOutputStream bout = new ByteArrayOutputStream ( ) ; SerializationService serializationSvc = serializationSvcRef . getServiceWithException ( ) ; ObjectOutputStream oout = serializationSvc . createObjectOut...
Utility method that serializes an object to bytes .
23,965
@ Reference ( service = ApplicationTracker . class ) protected void setApplicationTracker ( ServiceReference < ApplicationTracker > ref ) { appTrackerRef . setReference ( ref ) ; }
Declarative Services method for setting the ApplicationTracker reference
23,966
@ Reference ( service = Controller . class , cardinality = ReferenceCardinality . OPTIONAL , policy = ReferencePolicy . DYNAMIC , policyOption = ReferencePolicyOption . GREEDY ) protected void setController ( ServiceReference < Controller > ref ) { controllerRef . setReference ( ref ) ; }
Declarative Services method for setting the controller
23,967
@ Reference ( service = LocalTransactionCurrent . class ) protected void setLocalTransactionCurrent ( ServiceReference < LocalTransactionCurrent > ref ) { localTranCurrentRef . setReference ( ref ) ; }
Declarative Services method for setting the LocalTransactionCurrent .
23,968
@ Reference ( service = SerializationService . class ) protected void setSerializationService ( ServiceReference < SerializationService > ref ) { serializationSvcRef . setReference ( ref ) ; }
Declarative Services method for setting the serialization service
23,969
@ Reference ( target = "(id=unbound)" ) protected void setTaskStore ( DatabaseStore svc , Map < String , Object > props ) { persistentStore = svc ; persistentStoreDisplayId = ( String ) props . get ( "config.displayId" ) ; }
Declarative Services method for setting the database store
23,970
@ Reference ( service = EmbeddableWebSphereTransactionManager . class ) protected void setTransactionManager ( ServiceReference < EmbeddableWebSphereTransactionManager > ref ) { tranMgrRef . setReference ( ref ) ; }
Declarative Services method for setting the transaction manager
23,971
int transfer ( Long maxTaskId , long oldPartitionId ) throws Exception { long partitionId = getPartitionId ( ) ; TransactionController tranController = new TransactionController ( ) ; int count = 0 ; try { tranController . preInvoke ( ) ; count = taskStore . transfer ( maxTaskId , oldPartitionId , partitionId ) ; Confi...
Transfers tasks that have not yet ended to this persistent executor instance .
23,972
int updatePartitionInfo ( String oldHostName , String oldUserDir , String oldLibertyServerName , String oldExecutorIdentifier , String newHostName , String newUserDir , String newLibertyServerName , String newExecutorIdentifier ) throws Exception { PartitionRecord updates = new PartitionRecord ( false ) ; if ( newHostN...
Updates partition information in the persistent store . The parameters are optional except at least one new value must be specified .
23,973
private void startPollingTask ( Config config ) { Future < ? > future ; PollingTask pollingTask = new PollingTask ( config ) ; future = scheduledExecutor . schedule ( pollingTask , config . initialPollDelay , TimeUnit . MILLISECONDS ) ; pollingFutureRef . getAndSet ( future ) ; }
Start the polling task .
23,974
private int configUpdateInProgress ( ) { int retVal ; configUpdatePendingQueueLock . writeLock ( ) . lock ( ) ; try { retVal = configUpdatesInProgress ; configUpdatesInProgress ++ ; } finally { configUpdatePendingQueueLock . writeLock ( ) . unlock ( ) ; } return retVal ; }
Bump the number of Configuration updates that we are monitoring .
23,975
public Object get ( int index ) { try { return getValue ( index ) ; } catch ( JMFException e ) { FFDCFilter . processException ( e , "get" , "125" , this ) ; return null ; } }
Implement get via getValue
23,976
protected DERObject convertHexEncoded ( String str , int off ) throws IOException { str = str . toLowerCase ( ) ; byte [ ] data = new byte [ str . length ( ) / 2 ] ; for ( int index = 0 ; index != data . length ; index ++ ) { char left = str . charAt ( ( index * 2 ) + off ) ; char right = str . charAt ( ( index * 2 ) +...
Convert an inline encoded hex string rendition of an ASN . 1 object back into its corresponding ASN . 1 object .
23,977
protected boolean canBePrintable ( String str ) { for ( int i = str . length ( ) - 1 ; i >= 0 ; i -- ) { char ch = str . charAt ( i ) ; if ( str . charAt ( i ) > 0x007f ) { return false ; } if ( 'a' <= ch && ch <= 'z' ) { continue ; } if ( 'A' <= ch && ch <= 'Z' ) { continue ; } if ( '0' <= ch && ch <= '9' ) { continue...
return true if the passed in String can be represented without loss as a PrintableString false otherwise .
23,978
protected boolean canBeUTF8 ( String str ) { for ( int i = str . length ( ) - 1 ; i >= 0 ; i -- ) { if ( str . charAt ( i ) > 0x00ff ) { return false ; } } return true ; }
return true if the passed in String can be represented without loss as a UTF8String false otherwise .
23,979
private void insertNewLease ( String recoveryIdentity , String recoveryGroup , Connection conn ) throws SQLException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "insertNewLease" , this ) ; short serviceId = ( short ) 1 ; String insertString = "INSERT INTO " + _leaseTableName + " (SERVER_IDENTITY, RECOVERY_GROUP,...
Insert a new lease in the table
23,980
public boolean addMessage ( SIMPMessage msgItem ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addMessage" , new Object [ ] { msgItem } ) ; JsMessage jsMsg = msgItem . getMessage ( ) ; StreamSet streamSet = getStreamSet ( ) ; msgItem . set...
Add a message in to the appropriate source stream . This will create a stream if one does not exist and set any appropriate fields in the message
23,981
private void addBestEffortMessage ( SIMPMessage msgItem ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addBestEffortMessage" , new Object [ ] { msgItem } ) ; JsMessage jsMsg = msgItem . getMessage ( ) ; long tick = this . messageProcessor ...
Set any appropriate fields in the best effort message . The message does not actually get added to any streams .
23,982
public List processAck ( ControlAck ackMsg ) throws SIRollbackException , SIConnectionLostException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processAck" , new Object [ ] { ackMsg } ) ; long ackPrefix = ackMsg . getAckPref...
Process an Ack control message . This method uses the completed prefix in the ack to decide if the stream s completed prefix should be advanced .
23,983
public List processAck ( ControlAck ackMsg , long ackPrefix ) throws SIRollbackException , SIConnectionLostException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processAck" , new Object [ ] { ackMsg , new Long ( ackPrefix ) } ) ; List indexLis...
Process an Ack control message but use the specified ack prefix to decide if the ack prefix can be advanced .
23,984
public void processNack ( ControlNack nackMsg ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processNack" , nackMsg ) ; if ( ! hasStream ( nackMsg . getGuaranteedStreamUUID ( ) ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . is...
Process a Nack control message . This should cause the source stream to resend the original message .
23,985
public boolean isFlushed ( SIBUuid12 streamID ) { if ( streamSet == null ) return true ; return ! streamID . equals ( streamSet . getStreamID ( ) ) ; }
returns true if a given set of streams are flushed
23,986
public void reconstituteStreamSet ( StreamSet newStreamSet ) throws SIRollbackException , SIConnectionLostException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "reconstituteStreamSet" , streamSet ) ; if ( streamSet != null ) ...
Set the StreamSet to be the given one which will probably have been restored from the the message store
23,987
public List consolidateStreams ( int startMode ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "consolidateStreams" ) ; List < List > sentMsgs = new ArrayList < List > ( ) ; StreamSet streamSet = getStreamSet ( ) ; Iterator itr = streamSet ....
Consolidates the sourceStreams following restart recovery . The streams may have scattered tick values derived from persisted messages or references .
23,988
protected void attemptFlush ( ) throws SIRollbackException , SIConnectionLostException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "attemptFlush" ) ; FlushComplete callback = null ; StreamSet oldStreamSet = null ; synchronize...
This method will be called periodically to check if a stream is flushable and if so will actually flush it .
23,989
public void processFlushQuery ( ControlAreYouFlushed flushQuery ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processFlushQuery" , new Object [ ] { flushQuery } ) ; SIBUuid12 streamID = flushQuery . getGuaranteedStreamUUID ( ) ; try { syn...
Handle a flush query .
23,990
public synchronized void updateTargetCellule ( SIBUuid8 targetMEUuid ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "updateTargetCellule" , targetMEUuid ) ; if ( pointTopoint ) { this . targetMEUuid = targetMEUuid ; StreamSet streamSet = ge...
This method should only be called when the PtoPOutputHandler was created with an unknown targetCellule and WLM has now told us correct targetCellule . This can only happen when the SourceStreamManager is owned by a PtoPOutputHandler within a LinkHandler
23,991
@ Generated ( value = "com.ibm.jtc.jax.tools.xjc.Driver" , date = "2014-06-11T05:49:00-04:00" , comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-" ) public List < ExecutionElement > getExecutionElements ( ) { if ( executionElements == null ) { executionElements = new ArrayList < ExecutionElement > ( ) ; } return...
Gets the value of the executionElements property .
23,992
public static final String isDestinationPrefixValid ( String destinationPrefix ) { String result = VALID ; boolean isValid = true ; if ( null != destinationPrefix ) { int len = destinationPrefix . length ( ) ; if ( len > DESTINATION_PREFIX_MAX_LENGTH ) { isValid = false ; result = MAX_LENGTH_EXCEEDED ; } else { int alo...
Determines whether a destination prefix is valid or not .
23,993
@ Reference ( service = ComponentMetaDataDecorator . class , name = "componentMetadataDecorator" , cardinality = ReferenceCardinality . MULTIPLE , policy = ReferencePolicy . DYNAMIC ) protected void setComponentMetadataDecorator ( ServiceReference < ComponentMetaDataDecorator > ref ) { componentMetadataDecoratorRefs . ...
Declarative Services method for adding a component metadata decorator .
23,994
protected void unsetComponentMetadataDecorator ( ServiceReference < ComponentMetaDataDecorator > ref ) { componentMetadataDecoratorRefs . removeReference ( ( String ) ref . getProperty ( "component.name" ) , ref ) ; }
Declarative Services method for removing a component metadata decorator .
23,995
public void addMappingFilter ( String mapping , com . ibm . websphere . servlet . filter . IFilterConfig config ) { context . addMappingFilter ( mapping , config ) ; }
Adds a filter against a specified mapping into this context
23,996
public void disable ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "disable chain " + this ) ; } enabled = false ; }
Disable this chain . This does not change the chain s state . The caller should make subsequent calls to perform actions on the chain .
23,997
public synchronized void stop ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "stop chain " + this ) ; } if ( currentConfig == null ) return ; try { ChainData cd = cfw . getChain ( chainName ) ; if ( cd != null ) { cfw . removeChain ( cd ) ; } } catch ( ChainE...
Stop this chain
23,998
public final SubscriptionMessage createNewSubscriptionMessage ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewSubscriptionMessage" ) ; SubscriptionMessage msg = null ; try { msg = new SubscriptionMessageImpl ( MfpConstan...
Create a new empty Subscription Propagation message
23,999
public final ControlAckExpected createNewControlAckExpected ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewControlAckExpected" ) ; ControlAckExpected msg = null ; try { msg = new ControlAckExpectedImpl ( MfpConstants . ...
Create a new empty ControlAckExpected message