idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
160,900
public Runnable execute ( Runnable command , long timeoutInMillis ) throws InterruptedException , IllegalStateException { try { return execute ( command , WAIT_WHEN_QUEUE_IS_FULL , timeoutInMillis ) ; } catch ( ThreadPoolQueueIsFullException e ) { return null ; } }
Arrange for the given command to be executed by a thread in this pool . If the pools internal request buffer is full the call will block for at most timeoutInMillis milliseconds .
160,901
public void setMonitorPlugin ( MonitorPlugin plugin ) throws TooManyListenersException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "setMonitorPlugin" , plugin ) ; } if ( this . monitorPlugin != null && ! this . monitorPlugin . equals ( plugin ) ) { throw new TooManyL...
Registers a MonitorPlugin with this thread pool . Only one plugin is supported in the current implementation .
160,902
public void checkAllThreads ( ) { if ( this . monitorPlugin == null ) { return ; } long currentTime = 0 ; try { for ( Iterator i = this . threads_ . values ( ) . iterator ( ) ; i . hasNext ( ) ; ) { Worker thread = ( Worker ) i . next ( ) ; synchronized ( thread ) { if ( thread . getStartTime ( ) > 0 ) { if ( currentTi...
Checks all active threads in this thread pool to determine if they are hung . The definition of hung is provided by the MonitorPlugin .
160,903
public FilterCellSlowStr findNextCell ( String nextValue ) { if ( nextCell == null ) { return null ; } return nextCell . get ( nextValue ) ; }
Find the next cell for a given string which may come after this cell in the address tree .
160,904
protected boolean invokeGeneratePluginCfgMBean ( ParseLoginAddress loginAddress , String clusterName , String targetPath , String option ) { boolean success = false ; try { success = connection . generatePluginConfig ( loginAddress , clusterName , targetPath , option ) ; if ( success ) success = copyFileToTargetPath ( ...
Invokes MBean for generatePluginConfig to generate plugin configuration file
160,905
public static TraceFactory getTraceFactory ( NLS nls ) { return ( TraceFactory ) Utils . getImpl ( "com.ibm.ws.objectManager.utils.TraceFactoryImpl" , new Class [ ] { NLS . class } , new Object [ ] { nls } ) ; }
Create a platform specific TraceFactory instance .
160,906
public void setActiveTrace ( String activeNames , int traceLevel ) throws java . io . IOException { TraceFactory . activeNames = activeNames ; TraceFactory . traceLevel = traceLevel ; ; }
Specify what to trace and start tracing it .
160,907
protected void setSICoreConnection ( SICoreConnection connection ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setSICoreConnection" , connection ) ; validateConversationState ( ) ; cConState . setSICoreConnection ( connection ) ; if ( TraceComponent . isAnyT...
Sets the SICoreConnection reference on the server
160,908
public Serializable copy ( Serializable obj ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "copy : " + Util . identity ( obj ) ) ; if ( obj == null ) { return obj ; } Class < ? > objType = obj . getClass ( ) ; if ( ( objType == Stri...
Make a copy of an object by writing it out to stream and reading it back again . This will make a deep copy of the object .
160,909
public ScheduleExpression copy ( ScheduleExpression schedule ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "copy ScheduleExpression: " + Util . identity ( schedule ) ) ; if ( schedule . getClass ( ) == ScheduleExpression . class ) { return copyBase ( schedule ) ; } ret...
Make a copy of a ScheduleExpression object .
160,910
public static ScheduleExpression copyBase ( ScheduleExpression schedule ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "copy copyBase: " + Util . identity ( schedule ) ) ; return new ScheduleExpression ( ) . start ( schedule . getStart ( ) == null ? null : new Date ( sc...
Make a copy of a javax . ejb . ScheduleExpression portion of the object .
160,911
BigInteger setMultiChoiceCount ( ) { if ( fields != null ) for ( int i = 0 ; i < fields . length ; i ++ ) multiChoiceCount = multiChoiceCount . multiply ( fields [ i ] . setMultiChoiceCount ( ) ) ; return multiChoiceCount ; }
Set the multiChoiceCount for this tuple
160,912
public JSVariant [ ] getDominatedVariants ( ) { if ( dominated == null ) { List dom = new ArrayList ( ) ; getDominatedVariants ( dom ) ; dominated = ( JSVariant [ ] ) dom . toArray ( new JSVariant [ 0 ] ) ; } return dominated ; }
Identify any variants that are descendents of this tuple either directly or via other tuples . Used in MessageMap construction .
160,913
public static ChainStartMode getKey ( int ordinal ) { if ( ordinal >= 0 && ordinal < _values . length ) { return _values [ ordinal ] ; } return null ; }
Get the chain start mode definition for this ordinal .
160,914
public static InjectionTarget getInjectionTarget ( ComponentNameSpaceConfiguration compNSConfig , ClientInjection injection ) throws InjectionException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getInjectionTarget: " + injection ...
Acquires an InjectionTarget for the specified ClientInjection .
160,915
protected ArrayList filterXidsByType ( Xid [ ] xidArray ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "filterXidsByType" , xidArray ) ; final ArrayList < XidImpl > xidList = new ArrayList < XidImpl > ( ) ; if ( xidArray != null ) { for ( int y = 0 ; y < xidArray . length ; y ++ ) { if ( xidArray [ y ] == null ) ...
Removes all non - WAS Xids from an array of Xids and puts them in an ArrayList structure .
160,916
protected ArrayList filterXidsByCruuidAndEpoch ( ArrayList xidList , byte [ ] cruuid , int epoch ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "filterXidsByCruuidAndEpoch" , new Object [ ] { xidList , cruuid , epoch } ) ; for ( int x = xidList . size ( ) - 1 ; x >= 0 ; x -- ) { final XidImpl ourXid = ( XidImpl )...
Removes all Xids from an ArrayList that don t have our cruuid in their bqual . Assumes that all Xids are XidImpls .
160,917
protected boolean canWeForgetXid ( XidImpl ourXid , Xid [ ] knownXids ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "canWeForgetXid" , new Object [ ] { ourXid , knownXids } ) ; if ( tc . isDebugEnabled ( ) ) { for ( int i = 0 ; i < knownXids . length ; i ++ ) { Tr . debug ( tc , "tx xid[" + i + "] " + knownXids ...
Iterates over the list of known Xids retrieved from transaction service and tries to match the given javax . transaction . xa . Xid with one of them .
160,918
private static void propogateSecureSession ( HttpServletRequest request , Message message ) { final String cipherSuite = ( String ) request . getAttribute ( SSL_CIPHER_SUITE_ATTRIBUTE ) ; if ( cipherSuite != null ) { final java . security . cert . Certificate [ ] certs = ( java . security . cert . Certificate [ ] ) req...
Propogate in the message a TLSSessionInfo instance representative of the TLS - specific information in the HTTP request .
160,919
private void cacheInput ( Message outMessage ) { if ( outMessage . getExchange ( ) == null ) { return ; } Message inMessage = outMessage . getExchange ( ) . getInMessage ( ) ; if ( inMessage == null ) { return ; } Object o = inMessage . get ( "cxf.io.cacheinput" ) ; DelegatingInputStream in = inMessage . getContent ( D...
On first write we need to make sure any attachments and such that are still on the incoming stream are read in . Otherwise we can get into a deadlock where the client is still trying to send the request but the server is trying to send the response . Neither side is reading and both blocked on full buffers . Not a good...
160,920
public static void processException ( Object source , Class sourceClass , String methodName , Throwable throwable , String probe , Object [ ] objects ) { if ( TraceComponent . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( cclass , "processException" , new Object [ ] { source , sourceClass , me...
Process an exception for a non static class .
160,921
static void print ( Object object , java . io . PrintWriter printWriter ) { if ( object instanceof Printable ) { ( ( Printable ) object ) . print ( printWriter ) ; } else { printWriter . print ( object ) ; } }
Dump an Object to a java . io . PrintWriter .
160,922
byte [ ] getServiceData ( ) throws InternalLogException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getServiceData" , this ) ; if ( _activeFile == null ) { if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getServiceData" , "InternalLogException" ) ; throw new InternalLogException ( null ) ; } final byte [ ] ser...
Package access method to return the current service data .
160,923
LogFileHeader logFileHeader ( ) throws InternalLogException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "logFileHeader" , this ) ; if ( _activeFile == null ) { if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "logFileHeader" , "InternalLogException" ) ; throw new InternalLogException ( null ) ; } final LogFileHea...
Returns the LogFileHeader for the currently active log file .
160,924
ArrayList < ReadableLogRecord > recoveredRecords ( ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "recoveredRecords" , _recoveredRecords ) ; return _recoveredRecords ; }
Returns an array of ReadableLogRecords retrieved when the recovery log was opened .
160,925
void setServiceData ( byte [ ] serviceData ) throws InternalLogException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "setServiceData" , new java . lang . Object [ ] { RLSUtils . toHexString ( serviceData , RLSUtils . MAX_DISPLAY_BYTES ) , this } ) ; if ( ( _file1 == null ) || ( _file2 == null ) ) { if ( tc . isE...
Package access method to replace the existing service data with the new service data .
160,926
protected void writeLogRecord ( LogRecord logRecord ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "writeLogRecord" , logRecord ) ; _activeFile . writeLogRecord ( logRecord ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "writeLogRecord" ) ; }
Do any necessary under the covers work to write the LogRecord .
160,927
public static Map < String , String > processArchiveManifest ( final JarFile jarFile ) throws Throwable { Map < String , String > manifestAttrs = null ; if ( jarFile != null ) { try { manifestAttrs = AccessController . doPrivileged ( new PrivilegedExceptionAction < Map < String , String > > ( ) { public Map < String , ...
Gets the archive file Manifest attributes as a String Map from a jar file .
160,928
public static Map < String , String > processArchiveManifest ( final File file ) throws Throwable { Map < String , String > manifestAttrs = null ; if ( file != null && file . isFile ( ) && ArchiveFileType . JAR . isType ( file . getPath ( ) ) ) { JarFile jarFile = null ; try { jarFile = new JarFile ( file ) ; manifestA...
Gets the archive file Manifest attributes as a String Map from a file .
160,929
public static String getLicenseAgreement ( final JarFile jar , final Map < String , String > manifestAttrs ) { String licenseAgreement = null ; if ( manifestAttrs . isEmpty ( ) ) { return licenseAgreement ; } String licenseAgreementPrefix = manifestAttrs . get ( ArchiveUtils . LICENSE_AGREEMENT ) ; LicenseProvider lice...
Gets the license agreement for the jar file .
160,930
public void deactivate ( ComponentContext context ) { if ( contextRef . get ( ) == null ) { throw new IllegalStateException ( "not activated" ) ; } this . contextRef . set ( null ) ; }
Deactivates the map . Will trigger a release of all held services .
160,931
public void init ( HttpInboundServiceContext sc ) { setHeaderValidation ( false ) ; setOwner ( sc ) ; setBinaryParseState ( HttpInternalConstants . PARSING_BINARY_VERSION ) ; }
Initialize this incoming HTTP request message .
160,932
public void init ( HttpOutboundServiceContext sc ) { setHeaderValidation ( false ) ; setOwner ( sc ) ; setBinaryParseState ( HttpInternalConstants . PARSING_BINARY_VERSION ) ; setVersion ( getServiceContext ( ) . getHttpConfig ( ) . getOutgoingVersion ( ) ) ; }
Initialize this outgoing HTTP request message .
160,933
public void init ( HttpInboundServiceContext sc , BNFHeaders hdrs ) { setHeaderValidation ( false ) ; setOwner ( sc ) ; setBinaryParseState ( HttpInternalConstants . PARSING_BINARY_VERSION ) ; if ( null != hdrs ) { hdrs . duplicate ( this ) ; } }
Initialize this incoming HTTP request message with specific headers ie . ones stored in a cache perhaps .
160,934
public void init ( HttpOutboundServiceContext sc , BNFHeaders hdrs ) { setHeaderValidation ( false ) ; setOwner ( sc ) ; setBinaryParseState ( HttpInternalConstants . PARSING_BINARY_VERSION ) ; if ( null != hdrs ) { hdrs . duplicate ( this ) ; } setVersion ( getServiceContext ( ) . getHttpConfig ( ) . getOutgoingVersio...
Initialize this outgoing HTTP request message with specific headers ie . ones stored in a cache perhaps .
160,935
public WsByteBuffer [ ] encodePseudoHeaders ( ) { WsByteBuffer [ ] firstLine = new WsByteBuffer [ 1 ] ; firstLine [ 0 ] = allocateBuffer ( getOutgoingBufferSize ( ) ) ; LiteralIndexType indexType = LiteralIndexType . NOINDEXING ; H2HeaderTable table = this . getH2HeaderTable ( ) ; byte [ ] encodedHeader = null ; try { ...
of the first line .
160,936
public void setMethod ( String method ) throws UnsupportedMethodException { MethodValues val = MethodValues . match ( method , 0 , method . length ( ) ) ; if ( null == val ) { throw new UnsupportedMethodException ( "Illegal method " + method ) ; } setMethod ( val ) ; }
Set the method of this request to the given String if it is valid .
160,937
public void setMethod ( MethodValues method ) { this . myMethod = method ; super . setFirstLineChanged ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "setMethod(v): " + ( null != method ? method . getName ( ) : null ) ) ; } }
Set the request method to the given value .
160,938
final public String getRequestURI ( ) { if ( null == this . myURIString ) { this . myURIString = GenericUtils . getEnglishString ( this . myURIBytes ) ; } return this . myURIString ; }
Query the value of the request URI .
160,939
private String getTargetHost ( ) { String host = getVirtualHost ( ) ; if ( null == host ) { host = ( isIncoming ( ) ) ? getServiceContext ( ) . getLocalAddr ( ) . getCanonicalHostName ( ) : getServiceContext ( ) . getRemoteAddr ( ) . getCanonicalHostName ( ) ; } return host ; }
Find the target host of the request . This checks the VirtualHost data but falls back on the socket layer target if need be .
160,940
private int getTargetPort ( ) { int port = getVirtualPort ( ) ; if ( NOTSET == port ) { port = ( isIncoming ( ) ) ? getServiceContext ( ) . getLocalPort ( ) : getServiceContext ( ) . getRemotePort ( ) ; } return port ; }
Find the target port of the request . This checks the VirtualPort data and falls back on the socket port information if need be .
160,941
public int getVirtualPort ( ) { if ( HeaderStorage . NOTSET != this . iUrlPort ) { return this . iUrlPort ; } if ( NOT_PRESENT <= this . iHdrPort ) { return this . iHdrPort ; } byte [ ] host = getHeader ( HttpHeaderKeys . HDR_HOST ) . asBytes ( ) ; if ( null == host || host . length == 0 ) { if ( TraceComponent . isAny...
Query the target port of this request . It will first check for a port in the URL string and if not found it will check the Host header . This will return - 1 if it is not found in either spot .
160,942
private void parseURI ( byte [ ] data , int start ) { if ( start >= data . length ) { this . myURIBytes = SLASH ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Defaulting to slash since no URI data found" ) ; } return ; } int uri_end = data . length ; for ( int i = start ; i < data . length ; i ++ ) { if ( '?' ==...
Parse the URI information out of the input data along with any query information found afterwards . If format errors are found then an exception is thrown .
160,943
private void parseScheme ( byte [ ] data ) { for ( int i = 1 ; i < data . length ; i ++ ) { if ( ':' == data [ i ] ) { SchemeValues val = SchemeValues . match ( data , 0 , i ) ; if ( null == val ) { throw new IllegalArgumentException ( "Invalid scheme inside URL: " + GenericUtils . getEnglishString ( data ) ) ; } setSc...
Parse the scheme marker out of the input data and then start the parse for the next section . If any errors are encountered then an exception is thrown .
160,944
public void setRequestURI ( byte [ ] uri ) { if ( null == uri || 0 == uri . length ) { throw new IllegalArgumentException ( "setRequestURI: null input" ) ; } super . setFirstLineChanged ( ) ; if ( '*' == uri [ 0 ] ) { if ( 1 != uri . length && '?' != uri [ 1 ] ) { String value = GenericUtils . getEnglishString ( uri ) ...
Allow the user to set the URI in the HttpRequest to the given byte array prior to sending the request .
160,945
public void initScheme ( ) { if ( null == getServiceContext ( ) || null == getServiceContext ( ) . getTSC ( ) ) { return ; } if ( getServiceContext ( ) . isSecure ( ) ) { this . myScheme = SchemeValues . HTTPS ; } else { this . myScheme = SchemeValues . HTTP ; } }
Initialize the scheme information based on the socket being secure or not .
160,946
public String getScheme ( ) { if ( null == this . myScheme ) { initScheme ( ) ; } if ( null == this . myScheme ) { return null ; } return this . myScheme . getName ( ) ; }
Query the value of the scheme .
160,947
public void setScheme ( SchemeValues scheme ) { this . myScheme = scheme ; super . setFirstLineChanged ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "setScheme(v): " + ( null != scheme ? scheme . getName ( ) : null ) ) ; } }
Set the value of the scheme in the Request by using the int identifiers .
160,948
private void deserializeMethod ( ObjectInput stream ) throws IOException , ClassNotFoundException { MethodValues method = null ; if ( SERIALIZATION_V2 == getDeserializationVersion ( ) ) { method = MethodValues . find ( readByteArray ( stream ) ) ; } else { method = MethodValues . find ( ( String ) stream . readObject (...
Deserialize the method information from the input stream .
160,949
private void deserializeScheme ( ObjectInput stream ) throws IOException , ClassNotFoundException { SchemeValues scheme = null ; if ( SERIALIZATION_V2 == getDeserializationVersion ( ) ) { byte [ ] value = readByteArray ( stream ) ; if ( null == value ) { throw new IOException ( "Missing scheme" ) ; } scheme = SchemeVal...
Deserialize the scheme information from the input stream .
160,950
private synchronized void parseParameters ( ) { if ( null != this . queryParams ) { return ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "parseParameters for " + this ) ; } String encoding = getCharset ( ) . name ( ) ; String queryString = getQueryString ( ) ; if ( n...
Parse the query parameters out of this message . This will check just the URL query data of the request .
160,951
protected void setDataSourceFactory ( ServiceReference < ResourceFactory > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "setDataSourceFactory" , "setting " + ref ) ; ...
Declarative Services method for setting the data source service reference
160,952
protected void unsetDataSourceFactory ( ServiceReference < ResourceFactory > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "unsetDataSourceFactory" , "unsetting " + re...
Declarative Services method for unsetting the data source service reference
160,953
protected void setResourceConfigFactory ( ServiceReference < ResourceConfigFactory > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "setResourceConfigFactory" , "settin...
Declarative Services method for setting the ResourceConfigFactory service reference
160,954
protected void unsetResourceConfigFactory ( ServiceReference < ResourceConfigFactory > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "unsetResourceConfigFactory" , "un...
Declarative Services method for unsetting the ResourceConfigFactory service reference
160,955
protected void setLocalTransactionCurrent ( ServiceReference < LocalTransactionCurrent > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "setLocalTransactionCurrent" , "...
Declarative Services method for setting the LocalTransactionCurrent service reference
160,956
protected void unsetLocalTransactionCurrent ( ServiceReference < LocalTransactionCurrent > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "unsetLocalTransactionCurrent"...
Declarative Services method for unsetting the LocalTransactionCurrent service reference
160,957
protected void setEmbeddableWebSphereTransactionManager ( ServiceReference < EmbeddableWebSphereTransactionManager > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "set...
Declarative Services method for setting the EmbeddableWebSphereTransactionManager service reference
160,958
protected void unsetEmbeddableWebSphereTransactionManager ( ServiceReference < EmbeddableWebSphereTransactionManager > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "u...
Declarative Services method for unsetting the EmbeddableWebSphereTransactionManager service reference
160,959
protected void setUowCurrent ( ServiceReference < UOWCurrent > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "setUowCurrent" , "setting " + ref ) ; } uowCurrentRef . s...
Declarative Services method for setting the UOWCurrent service reference
160,960
protected void unsetUowCurrent ( ServiceReference < UOWCurrent > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "unsetUowCurrent" , "unsetting " + ref ) ; } uowCurrentR...
Declarative Services method for unsetting the UOWCurrent service reference
160,961
protected void setUserTransaction ( ServiceReference < UserTransaction > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "setUserTransaction" , "setting " + ref ) ; } us...
Declarative Services method for setting the UserTransaction service reference
160,962
protected void unsetUserTransaction ( ServiceReference < UserTransaction > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "unsetUserTransaction" , "unsetting " + ref ) ...
Declarative Services method for unsetting the UserTransaction service reference
160,963
protected void setSerializationService ( ServiceReference < SerializationService > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "setSerializationService" , "setting "...
Declarative Services method for setting the SerializationService service reference
160,964
protected void unsetSerializationService ( ServiceReference < SerializationService > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_WAS . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_WAS . logp ( Level . FINE , methodClassName , "unsetSerializationService" , "unset...
Declarative Services method for unsetting the SerializationService service reference
160,965
private Connection getJdbcConnection ( ) throws JspCoreException , SQLException { Connection conn = null ; String url = getConnProperties ( ) . getUrl ( ) ; String user = getConnProperties ( ) . getLoginUser ( ) ; String passwd = getConnProperties ( ) . getLoginPasswd ( ) ; String jndiName = getConnProperties ( ) . get...
Return a valid jdbc connection . if jndiName is specified then assume that we need to use a datasource else use a drivermanager
160,966
public static boolean isAbsolutePath ( String uri ) { boolean absolute = false ; if ( uri != null ) { if ( uri . indexOf ( ":/" ) != - 1 ) { absolute = true ; } else if ( uri . indexOf ( ":\\" ) != - 1 ) { absolute = true ; } } return absolute ; }
Checks to see if URI is absolute or relative .
160,967
private static boolean equalsHashes ( File fileToHash , String hashToCompare ) throws IOException { boolean result = false ; String fileHash = MD5Utils . getFileMD5String ( fileToHash ) ; if ( fileHash . equals ( hashToCompare ) ) result = true ; return result ; }
This method calculates a hash of the required file and compares it against the supplied hash . It then returns true if both hashes are equals .
160,968
private static Map < String , IFixInfo > processIFixXmls ( File wlpInstallationDirectory , Map < String , BundleFile > bundleFiles , CommandConsole console ) { Map < String , IFixInfo > filteredIfixInfos = new HashMap < String , IFixInfo > ( ) ; Map < String , UpdatedFile > latestIfixFiles = new HashMap < String , Upda...
This method processes all of the ifix xml s and stores the latest version of each file found in a map . The comparisons on each file are based on the date associated with the file . The latest date means the latest update .
160,969
private static String getExistingMatchingIfixID ( BundleFile bundleFile , Set < String > existingIDs , Map < String , BundleFile > bundleFiles ) { String existingIfixKey = null ; for ( String existingID : existingIDs ) { if ( bundleFiles . containsKey ( existingID ) ) { BundleFile existingBundleFile = bundleFiles . get...
This method takes a ifix ID finds any existing IFix IDs that refer to the same base bundle . Because the ifix jars will have different qualifiers we need to be able to work out which ids are related .
160,970
private static Map < String , BundleFile > processLPMFXmls ( File wlpInstallationDirectory , CommandConsole console ) { Map < String , BundleFile > bundleFiles = new HashMap < String , BundleFile > ( ) ; for ( LibertyProfileMetadataFile chklpmf : getInstalledLibertyProfileMetadataFiles ( wlpInstallationDirectory , cons...
This method processes all of the Liberty profile Metadata files stores the BundleFile objects containing the BundleSymbolic name and version of each bundle against the id of the file that matches the corresponding entry in the ifix . xml .
160,971
public static String getEntityType ( String accessId ) { Matcher m = matcher ( accessId ) ; if ( m != null ) { return m . group ( 1 ) ; } return null ; }
Given an accessId extract the entity type .
160,972
public static String getRealm ( String accessId ) { Matcher m = matcher ( accessId ) ; if ( m != null ) { return m . group ( 2 ) ; } return null ; }
Given an accessId extract the realm .
160,973
public static String getUniqueId ( String accessId ) { Matcher m = matcher ( accessId ) ; if ( m != null ) { return m . group ( 3 ) ; } return null ; }
Given an accessId extract the uniqueId .
160,974
public static String getUniqueId ( String accessId , String realm ) { if ( realm != null ) { Pattern pattern = Pattern . compile ( "([^:]+):(" + Pattern . quote ( realm ) + ")/(.*)" ) ; Matcher m = pattern . matcher ( accessId ) ; if ( m . matches ( ) ) { if ( m . group ( 3 ) . length ( ) > 0 ) { return m . group ( 3 )...
Given an accessId and realm name extract the uniqueId .
160,975
private String replaceNonAlpha ( String name ) { String modifiedName = null ; if ( p != null ) modifiedName = p . matcher ( name ) . replaceAll ( "_" ) ; return modifiedName ; }
Replace non - alphanumeric characters in a string with underscores .
160,976
public void setConsumerDispatcher ( ConsumerDispatcher consumerDispatcher ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setConsumerDispatcher" , consumerDispatcher ) ; this . consumerDispatcher = consumerDispatcher ; if ( TraceComponent . isAnyTracingEnabled ( ) &&...
Set the consumerDispatcher object to which this itemstream belongs
160,977
public void xmlWriteOn ( FormattedWriter writer ) throws IOException { if ( consumerDispatcher != null ) { writer . newLine ( ) ; writer . taggedValue ( "consumerDispatcher" , consumerDispatcher . toString ( ) ) ; } }
Prints debug information to the XML writer
160,978
public void deleteIfPossible ( boolean startAsynchThread ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteIfPossible" , new Boolean ( startAsynchThread ) ) ; _subscriptionLockManager . lockExclusive ( ) ; try { if ( destinationHandler == null ) { PubSubMessageIt...
Method deleteIfPossible .
160,979
public void markAsToBeDeleted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "markAsToBeDeleted" ) ; toBeDeleted = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "markAsToBeDeleted" ) ; }
Mark this itemstream as awaiting deletion
160,980
public void removeAllAvailableReferences ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeAllAvailableReferences" ) ; LocalTransaction transaction = null ; ItemReference itemReference = null ; try { PubSubMessageItemStream mis = ( Pu...
Removes all available reference items from the reference stream in batches
160,981
public LockManager getSubscriptionLockManager ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getSubscriptionLockManager" ) ; SibTr . exit ( tc , "getSubscriptionLockManager" , _subscriptionLockManager ) ; } return _subscriptionLockManager ; }
Returns the lock manager associated with this subscription
160,982
private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { GetField fields = in . readFields ( ) ; failure = ( Throwable ) fields . get ( FAILURE , null ) ; previousResult = ( byte [ ] ) fields . get ( PREVIOUS_RESULT , null ) ; }
Deserialize information about the skipped execution .
160,983
private void writeObject ( ObjectOutputStream out ) throws IOException { PutField fields = out . putFields ( ) ; fields . put ( FAILURE , failure ) ; fields . put ( PREVIOUS_RESULT , previousResult ) ; out . writeFields ( ) ; }
Serialize information about the skipped execution .
160,984
public static < T > StaticValue < T > mutateStaticValue ( StaticValue < T > staticValue , Callable < T > initializer ) { if ( multiplex ) { if ( staticValue == null ) { staticValue = StaticValue . createStaticValue ( null ) ; } staticValue . initialize ( getThreadGroup ( ) , initializer ) ; return staticValue ; } retur...
Mutates a static value . Note that if not multiplexing then this method returns a new StaticValue object with the value as obtained by the initializer .
160,985
public static Object concat ( Object [ ] arrs ) { int totalLen = 0 ; Class commonComponentType = null ; for ( int i = 0 , len = arrs . length ; i < len ; i ++ ) { if ( arrs [ i ] == null ) { continue ; } int arrayLen = Array . getLength ( arrs [ i ] ) ; if ( arrayLen == 0 ) { continue ; } totalLen += arrayLen ; Class c...
Concatenates arrays into one . Any null or empty arrays are ignored . If all arrays are null or empty returns null . Elements will be ordered in the order in which the arrays are supplied .
160,986
public int compare ( T entity1 , T entity2 ) { SortHandler shandler = new SortHandler ( sortControl ) ; return shandler . compareEntitysWithRespectToProperties ( ( Entity ) entity1 , ( Entity ) entity2 ) ; }
Compares its two objects for order . Returns a negative integer zero or a positive integer as the first argument is less than equal to or greater than the second .
160,987
public void dump ( ) { if ( ! tc . isDumpEnabled ( ) ) { return ; } Enumeration vEnum = lockTable . keys ( ) ; Tr . dump ( tc , "-- Lock Manager Dump --" ) ; while ( vEnum . hasMoreElements ( ) ) { Object key = vEnum . nextElement ( ) ; Tr . dump ( tc , "lock table entry" , new Object [ ] { key , lockTable . get ( key ...
Dump internal state of lock manager .
160,988
protected Commandline getCommandline ( ) { Commandline cmdl = new Commandline ( ) ; if ( configFile != null ) { cmdl . createArgument ( ) . setValue ( "--config" ) ; cmdl . createArgument ( ) . setFile ( configFile ) ; } if ( debug ) { cmdl . createArgument ( ) . setValue ( "--debug" ) ; } return cmdl ; }
Get the command line configuration arguments for the StaticTraceInstrumentation invocations .
160,989
public void execute ( ) { List < File > flist = new ArrayList < File > ( ) ; if ( file != null ) { flist . add ( file ) ; } for ( int i = 0 ; i < filesets . size ( ) ; i ++ ) { FileSet fs = filesets . elementAt ( i ) ; DirectoryScanner ds = fs . getDirectoryScanner ( getProject ( ) ) ; File dir = fs . getDir ( getProje...
Execute the build task .
160,990
private ReturnCode write ( String command , ReturnCode notStartedRC , ReturnCode errorRC ) { SocketChannel channel = null ; try { ServerCommandID commandID = createServerCommand ( command ) ; if ( commandID . getPort ( ) > 0 ) { channel = SelectorProvider . provider ( ) . openSocketChannel ( ) ; channel . connect ( new...
Write a command to the server process .
160,991
public ReturnCode startStatus ( ServerLock lock ) { while ( ! isValid ( ) ) { ReturnCode rc = startStatusWait ( lock ) ; if ( rc != ReturnCode . START_STATUS_ACTION ) { return rc ; } } for ( int i = 0 ; i < BootstrapConstants . MAX_POLL_ATTEMPTS && isValid ( ) ; i ++ ) { ReturnCode rc = write ( STATUS_START_COMMAND , R...
Waits for the server to be fully started .
160,992
private ReturnCode startStatusWait ( ServerLock lock ) { try { Thread . sleep ( BootstrapConstants . POLL_INTERVAL_MS ) ; } catch ( InterruptedException ex ) { Debug . printStackTrace ( ex ) ; return ReturnCode . ERROR_SERVER_START ; } if ( ! lock . testServerRunning ( ) ) { return ReturnCode . ERROR_SERVER_START ; } r...
Wait a bit because the server process could not be contacted and then verify that the server process is still running .
160,993
public ReturnCode stopServer ( boolean force ) { return write ( force ? FORCE_STOP_COMMAND : STOP_COMMAND , ReturnCode . REDUNDANT_ACTION_STATUS , ReturnCode . ERROR_SERVER_STOP ) ; }
Stop the server by issuing a stop instruction to the server listener
160,994
public ReturnCode introspectServer ( String dumpTimestamp , Set < JavaDumpAction > javaDumpActions ) { String command ; if ( javaDumpActions . isEmpty ( ) ) { command = INTROSPECT_COMMAND + DELIM + dumpTimestamp ; } else { StringBuilder commandBuilder = new StringBuilder ( ) . append ( INTROSPECT_JAVADUMP_COMMAND ) . a...
Dump the server by issuing a introspect instruction to the server listener
160,995
public ReturnCode javaDump ( Set < JavaDumpAction > javaDumpActions ) { StringBuilder commandBuilder = new StringBuilder ( JAVADUMP_COMMAND ) ; char sep = DELIM ; for ( JavaDumpAction javaDumpAction : javaDumpActions ) { commandBuilder . append ( sep ) . append ( javaDumpAction . toString ( ) ) ; sep = ',' ; } return w...
Create a java dump of the server JVM by issuing a javadump instruction to the server listener
160,996
public ReturnCode pause ( String targetArg ) { StringBuilder commandBuilder = new StringBuilder ( PAUSE_COMMAND ) ; char sep = DELIM ; if ( targetArg != null ) { commandBuilder . append ( sep ) . append ( targetArg ) ; } return write ( commandBuilder . toString ( ) , ReturnCode . SERVER_INACTIVE_STATUS , ReturnCode . E...
Attempt to Stop the inbound work to a server by issuing a pause request to the server .
160,997
public ReturnCode resume ( String targetArg ) { StringBuilder commandBuilder = new StringBuilder ( RESUME_COMMAND ) ; char sep = DELIM ; if ( targetArg != null ) { commandBuilder . append ( sep ) . append ( targetArg ) ; } return write ( commandBuilder . toString ( ) , ReturnCode . SERVER_INACTIVE_STATUS , ReturnCode ....
Resume Inbound work to a server by issuing a resume request to the server .
160,998
public boolean contain ( OidcTokenImplBase token ) { String key = token . getJwtId ( ) ; if ( key == null ) { return false ; } key = getCacheKey ( token ) ; long currentTimeMilliseconds = ( new Date ( ) ) . getTime ( ) ; synchronized ( primaryTable ) { Long exp = ( Long ) primaryTable . get ( key ) ; if ( exp != null )...
Find and return the object associated with the specified key . Add it if not already present .
160,999
public final ResourceException isValid ( int newAction ) { try { setState ( newAction , true ) ; } catch ( TransactionException exp ) { FFDCFilter . processException ( exp , "com.ibm.ws.rsadapter.spi.WSStateManager.isValid" , "385" , this ) ; return exp ; } return null ; }
If the action is valid return null . Otherwise return a TransactionException with the cause .