idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
159,900 | private Object ownership ( Object val , boolean forceShared ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) JmfTr . entry ( this , tc , "ownership" , new Object [ ] { val , Boolean . valueOf ( forceShared ) } ) ; if ( val instanceof JSMessageData ) { ( ( JSMessageData ) val ) . setParent ... | this new instance and it logically belongs in the locking scope of this . master . |
159,901 | private void checkPrimitiveType ( int accessor , int typeCode ) throws JMFUninitializedAccessException , JMFSchemaViolationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) JmfTr . entry ( this , tc , "checkPrimitiveType" , new Object [ ] { Integer . valueOf ( accessor ) , Integer .... | already hold the lock . |
159,902 | void lazyCopy ( JSMessageData original ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) JmfTr . entry ( this , tc , "lazyCopy" , new Object [ ] { original } ) ; synchronized ( getMessageLockArtefact ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) JmfTr . ... | setting up the sharing state . |
159,903 | public Set < String > getKeySet ( ) { HashSet < String > result = new HashSet < > ( ) ; for ( PollingDynamicConfig config : children ) { Iterator < String > iter = config . getKeys ( ) ; while ( iter . hasNext ( ) ) { String key = iter . next ( ) ; result . add ( key ) ; } } return result ; } | Return a set of all unique keys tracked by any child of this composite . This can be an expensive operations as it requires iterating through all of the children . |
159,904 | public final boolean isAutoCommit ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "isAutoCommit" ) ; SibTr . exit ( this , tc , "isAutoCommit" , "return=false" ) ; } return false ; } | We don t need to delegate this method as we know the answer! |
159,905 | public void incrementCurrentSize ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "incrementCurrentSize" ) ; if ( _currentTran != null ) { _currentTran . incrementCurrentSize ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && t... | Feature 199334 . 1 |
159,906 | public boolean isAlive ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isAlive" ) ; boolean retval = false ; if ( _currentTran != null ) { retval = _currentTran . isAlive ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibT... | Defect 186657 . 4 |
159,907 | public void end ( Xid xid , int flags ) throws XAException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "end" , new Object [ ] { "XID=" + xid , _manager . xaFlagsToString ( flags ) } ) ; try { _manager . end ( new PersistentTranId ( xid ) , flags ) ; _currentT... | Ends the association that this resource has with the passed transaction branch . Either temporarily via a TMSUSPEND or permanently via TMSUCCESS or TMFAIL . |
159,908 | public Xid [ ] recover ( int recoveryId ) throws XAException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "recover" , "Recovery ID=" + recoveryId ) ; Xid [ ] list = _manager . recover ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled (... | Used at transaction recovery time to retrieve the list on indoubt XIDs known to the MessageStore instance associated with this MSDelegatingXAResource . |
159,909 | public static String dumpAsString ( Object obj ) { if ( obj instanceof DERObject ) { return _dumpAsString ( "" , ( DERObject ) obj ) ; } else if ( obj instanceof DEREncodable ) { return _dumpAsString ( "" , ( ( DEREncodable ) obj ) . getDERObject ( ) ) ; } return "unknown object type " + obj . toString ( ) ; } | dump out a DER object as a formatted string |
159,910 | public void deployMicroProfileLoginConfigFormLoginInWebXmlBasicInApp ( LibertyServer server ) throws Exception { List < String > classList = createAppClassListBuildAppNames ( "CommonMicroProfileMarker_FormLoginInWeb_BasicInApp" , "MicroProfileLoginConfigFormLoginInWebXmlBasicInApp" ) ; ShrinkHelper . exportAppToServer ... | create app with loginConfig set to Form Login in WEB . xml and Basic in the App |
159,911 | protected WebArchive genericCreateArchiveWithPems ( String sourceWarName , String baseWarName , List < String > classList ) throws Exception { try { String warName = baseWarName + ".war" ; WebArchive newWar = ShrinkWrap . create ( WebArchive . class , warName ) ; addDefaultFileAssetsForAppsToWar ( sourceWarName , newWa... | Create a test war using files from the source war and the classList . Add a default list of pem files |
159,912 | protected WebArchive genericCreateArchiveWithPemsAndMPConfig ( String sourceWarName , String baseWarName , List < String > classList , String mpConfig , String fileContent ) throws Exception { try { WebArchive newWar = genericCreateArchiveWithPems ( sourceWarName , baseWarName , classList ) ; newWar . add ( new StringA... | Create a test war using files from the source war and the classList . Add a default list of pem files . Also add a microprofile - config . properties file with the content passed to this method |
159,913 | public List < String > createAppClassListBuildAppNames ( String app1 , String app2 , String app3 ) throws Exception { List < String > classList = createAppClassListBuildAppNames ( app1 , app2 ) ; classList . add ( "com.ibm.ws.jaxrs.fat.microProfileApp." + app2 + ".MicroProfileApp" + app3 ) ; return classList ; } | All of the test apps following the same naming convention . We can build the class names |
159,914 | public String getOutputBufferAsString ( ) throws IOException { byte [ ] buffer = getOutputBuffer ( ) ; if ( buffer != null ) return new String ( buffer , this . getCharacterEncoding ( ) ) ; else return null ; } | Get the output from the response outputstream as a String . This method should only be used to retrieve content that is known to be text based . Using this method to retrieve binary data will corrupt the response data . |
159,915 | public void transferResponse ( HttpServletResponse target ) throws IOException { _finish ( ) ; if ( containsError ( ) ) { String message = getErrorMessage ( ) ; int sc = getErrorStatusCode ( ) ; if ( message == null ) { target . sendError ( sc ) ; } else { target . sendError ( sc , message ) ; } } else if ( isRedirecte... | Copy the contents of this response to another HttpServletResponse . This method is optimized to quickly transfer the contents of this response into another response . This method is useful when this response is cached to generate the same response later . |
159,916 | public final static Reliability getReliabilityByName ( String name ) throws NullPointerException , IllegalArgumentException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . info ( tc , "Name = " + name ) ; if ( name == null ) { throw new NullPointerException ( ) ; } for ( int i = 0 ;... | Returns the corresponding Reliability for a given name . This method should NOT be called by any code outside the SIBus . It is only public so that it can be accessed by other SIBus components . |
159,917 | public final static Reliability getReliabilityByIndex ( int mpIndex ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . info ( tc , "Index = " + mpIndex ) ; return indexSet [ mpIndex + 1 ] ; } | Returns the corresponding Reliability for a given index . This method should NOT be called by any code outside the SIBus . It is only public so that it can be accessed by other SIBus components . |
159,918 | public final static Reliability getReliability ( Byte aValue ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . info ( tc , "Value = " + aValue ) ; return set [ aValue . intValue ( ) ] ; } | Returns the corresponding Reliability for a given Byte . This method should NOT be called by any code outside the MFP component . It is only public so that it can be accessed by sub - packages . |
159,919 | public String [ ] getHeader ( ) { ArrayList < String > result = new ArrayList < String > ( ) ; if ( customHeader . length > 0 ) { for ( CustomHeaderLine line : customHeader ) { String formattedLine = line . formatLine ( headerProps ) ; if ( formattedLine != null ) { result . add ( formattedLine ) ; } } } else { for ( S... | Gets the file header information . Implementations of the HpelPlainFormatter class will have a non - XML - based header . |
159,920 | protected void createEventTimeStamp ( RepositoryLogRecord record , StringBuilder buffer ) { if ( null == record ) { throw new IllegalArgumentException ( "Record cannot be null" ) ; } if ( null == buffer ) { throw new IllegalArgumentException ( "Buffer cannot be null" ) ; } buffer . append ( '[' ) ; Date eventDate = new... | Generates the time stamp for the RepositoryLogRecord event . The resulting time stamp is formatted based on the formatter s locale and time zone . |
159,921 | protected static String mapLevelToType ( RepositoryLogRecord logRecord ) { if ( null == logRecord ) { return " Z " ; } Level l = logRecord . getLevel ( ) ; if ( null == l ) { return " Z " ; } String s = logRecord . getLoggerName ( ) ; if ( s != null ) { if ( s . equals ( "SystemOut" ) ) { return " O " ; } else if ( s .... | Generates the short type string based off the RepositoryLogRecord s Level . |
159,922 | protected void setCookies ( HttpServletRequest request , HttpServletResponse response , String requestToken , String stateValue ) { ReferrerURLCookieHandler referrerURLCookieHandler = WebAppSecurityCollaboratorImpl . getGlobalWebAppSecurityConfig ( ) . createReferrerURLCookieHandler ( ) ; Cookie requestTokenCookie = re... | Sets cookies for the provided request token and the original request URL . These values can then be verified and used in subsequent requests . |
159,923 | private void setUnauthenticatedSubjectIfNeeded ( ) { if ( LocationUtils . isServer ( ) ) { com . ibm . ws . security . context . SubjectManager sm = new com . ibm . ws . security . context . SubjectManager ( ) ; Subject invokedSubject = sm . getInvocationSubject ( ) ; if ( invokedSubject == null ) { Subject callerSubje... | Create un - authenticate subject if both caller and invoke subjects are null for client . We do not want to do this for client container . |
159,924 | private void updateClientPolicy ( Message m ) { if ( ! clientSidePolicyCalced ) { PolicyDataEngine policyEngine = bus . getExtension ( PolicyDataEngine . class ) ; if ( policyEngine != null && endpointInfo . getService ( ) != null ) { clientSidePolicy = policyEngine . getClientEndpointPolicy ( m , endpointInfo , this ,... | updates the HTTPClientPolicy that is compatible with the assertions included in the service endpoint operation and message policy subjects if a PolicyDataEngine is installed |
159,925 | public void finalizeConfig ( ) { configureConduitFromEndpointInfo ( this , endpointInfo ) ; logConfig ( ) ; if ( getClient ( ) . getDecoupledEndpoint ( ) != null ) { this . endpointInfo . setProperty ( "org.apache.cxf.ws.addressing.replyto" , getClient ( ) . getDecoupledEndpoint ( ) ) ; } } | This call gets called by the HTTPTransportFactory after it causes an injection of the Spring configuration properties of this Conduit . |
159,926 | public AuthorizationPolicy getEffectiveAuthPolicy ( Message message ) { AuthorizationPolicy authPolicy = getAuthorization ( ) ; AuthorizationPolicy newPolicy = message . get ( AuthorizationPolicy . class ) ; AuthorizationPolicy effectivePolicy = newPolicy ; if ( effectivePolicy == null ) { effectivePolicy = authPolicy ... | Determines effective auth policy from message conduit and empty default with priority from first to last |
159,927 | public void setClient ( HTTPClientPolicy client ) { if ( this . clientSidePolicy != null ) { this . clientSidePolicy . removePropertyChangeListener ( this ) ; } this . clientSidePolicyCalced = true ; this . clientSidePolicy = client ; clientSidePolicy . removePropertyChangeListener ( this ) ; clientSidePolicy . addProp... | This method sets the Client Side Policy for this HTTPConduit . Using this method will override any HTTPClientPolicy set in configuration . |
159,928 | public void setTlsClientParameters ( TLSClientParameters params ) { this . tlsClientParameters = params ; if ( this . tlsClientParameters != null ) { if ( LOG . isLoggable ( Level . FINE ) ) { LOG . log ( Level . FINE , "Conduit '" + getConduitName ( ) + "' has been (re) configured for TLS " + "keyManagers " + Arrays .... | This method sets the TLS Client Parameters for this HTTPConduit . Using this method overrides any TLS Client Parameters that is configured for this HTTPConduit . |
159,929 | protected String extractLocation ( Map < String , List < String > > headers ) throws MalformedURLException { for ( Map . Entry < String , List < String > > head : headers . entrySet ( ) ) { if ( "Location" . equalsIgnoreCase ( head . getKey ( ) ) ) { List < String > locs = head . getValue ( ) ; if ( locs != null && loc... | This method extracts the value of the Location Http Response header . |
159,930 | private static String convertToAbsoluteUrlIfNeeded ( String conduitName , String lastURL , String newURL , Message message ) throws IOException { if ( newURL != null && ! newURL . startsWith ( "http" ) ) { if ( MessageUtils . isTrue ( message . getContextualProperty ( AUTO_REDIRECT_ALLOW_REL_URI ) ) ) { return URI . cr... | Relative Location values are also supported |
159,931 | private void resumeTran ( Transaction tran ) { if ( tran != null ) { try { tranMgr . resume ( tran ) ; } catch ( Exception e ) { throw new BatchRuntimeException ( "Failed to resume transaction after JobOperator method" , e ) ; } } } | Resume the given tran . |
159,932 | private void addAndSortReaders ( List < ProviderInfo < MessageBodyReader < ? > > > newReaders , boolean forceSort ) { Comparator < ProviderInfo < MessageBodyReader < ? > > > comparator = null ; if ( ! customComparatorAvailable ( MessageBodyReader . class ) ) { comparator = new MessageBodyReaderComparator ( readerMediaT... | Liberty code change start |
159,933 | private static Type [ ] getGenericInterfaces ( Class < ? > cls , Class < ? > expectedClass , Class < ? > commonBaseCls ) { if ( Object . class == cls ) { return emptyType ; } Type [ ] cachedTypes = getTypes ( cls , expectedClass , commonBaseCls ) ; if ( cachedTypes != null ) return cachedTypes ; if ( expectedClass != n... | Add the result to cache before return |
159,934 | void onCompletion ( Collection < ApplicationDependency > dependencies ) { if ( ! dependencies . isEmpty ( ) ) { for ( ApplicationDependency dependency : dependencies ) { dependency . onCompletion ( this ) ; } } } | final Field Semantics . |
159,935 | public boolean hasObjectWithPrefix ( JavaColonNamespace namespace , String name ) throws NamingException { JavaColonNamespaceBindings < EJBBinding > bindings ; boolean result = false ; Lock readLock = null ; ComponentMetaData cmd = null ; try { if ( namespace == JavaColonNamespace . GLOBAL ) { cmd = getComponentMetaDat... | can suppress warning - if cmd is null NamingException will be thrown by getComponentMetaData |
159,936 | public void removeGlobalBindings ( List < String > names ) { Lock writeLock = javaColonLock . writeLock ( ) ; writeLock . lock ( ) ; try { for ( String name : names ) { javaColonGlobalBindings . unbind ( name ) ; } } finally { writeLock . unlock ( ) ; } } | Remove names from the global mapping . |
159,937 | private JavaColonNamespaceBindings < EJBBinding > getAppBindingMap ( ApplicationMetaData amd ) { @ SuppressWarnings ( "unchecked" ) JavaColonNamespaceBindings < EJBBinding > bindingMap = ( JavaColonNamespaceBindings < EJBBinding > ) amd . getMetaData ( amdSlot ) ; if ( bindingMap == null ) { bindingMap = new JavaColonN... | Get the EJBBinding map from the application meta data . Initialize if it is null . |
159,938 | private JavaColonNamespaceBindings < EJBBinding > getModuleBindingMap ( ModuleMetaData mmd ) { @ SuppressWarnings ( "unchecked" ) JavaColonNamespaceBindings < EJBBinding > bindingMap = ( JavaColonNamespaceBindings < EJBBinding > ) mmd . getMetaData ( mmdSlot ) ; if ( bindingMap == null ) { bindingMap = new JavaColonNam... | Get the EJBBinding map from the module meta data . Initialize if it is null . |
159,939 | public void removeAppBindings ( ModuleMetaData mmd , List < String > names ) { ApplicationMetaData amd = mmd . getApplicationMetaData ( ) ; Lock writeLock = javaColonLock . writeLock ( ) ; writeLock . lock ( ) ; try { JavaColonNamespaceBindings < EJBBinding > bindings = getAppBindingMap ( amd ) ; for ( String name : na... | Remove names from the application mapping . If all the bindings have been removed for an application remove the application mapping . |
159,940 | private void throwCannotInstanciateUnsupported ( EJBBinding binding , JavaColonNamespace jndiType , String lookupName , String messageId ) throws NameNotFoundException { J2EEName j2eeName = getJ2EEName ( binding ) ; String jndiName = jndiType . toString ( ) + "/" + lookupName ; String msgTxt = Tr . formatMessage ( tc ,... | Internal method to throw a NameNotFoundException for unsupported Home and Remote interfaces . |
159,941 | protected void unsetVirtualHost ( VirtualHost vhost ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Unset vhost: " , vhost ) ; } secureVirtualHost = null ; } | Unset required VirtualHost . This will be called after deactivate |
159,942 | private synchronized void createJMXWorkAreaResourceIfChanged ( VirtualHost vhost ) { String contextRoot = registeredContextRoot ; if ( contextRoot != null ) { String newAppURLString = vhost . getUrlString ( contextRoot , true ) ; if ( newAppURLString . startsWith ( "https" ) ) { String oldAppURL = appURL ; String newAp... | Called to create the work area resource . Only re - generate the file if this is the first time or something in the url has changed . |
159,943 | @ Reference ( service = WsLocationAdmin . class , policy = ReferencePolicy . DYNAMIC , cardinality = ReferenceCardinality . MANDATORY ) protected void setLocationService ( WsLocationAdmin locationService ) { this . locationService = locationService ; if ( restJMXAddressWorkareaFile == null ) { restJMXAddressWorkareaFil... | Set the dynamic reference to the WsLocationAdmin service . If the service is replaced the new service will be set before the old is removed . |
159,944 | public final List < String > getConnectionFactoryInterfaceNames ( ) { return cfInterfaceNames instanceof String ? Collections . singletonList ( ( String ) cfInterfaceNames ) : cfInterfaceNames instanceof String [ ] ? Arrays . asList ( ( String [ ] ) cfInterfaceNames ) : Collections . < String > emptyList ( ) ; } | This method is provided for the connection factory validator . |
159,945 | private void destroyConnectionFactories ( boolean destroyImmediately ) { lock . writeLock ( ) . lock ( ) ; try { if ( isInitialized . get ( ) ) { isInitialized . set ( false ) ; conMgrSvc . deleteObserver ( this ) ; conMgrSvc . destroyConnectionFactories ( ) ; conMgrSvc = null ; } } finally { lock . writeLock ( ) . unl... | Utility method to destroy connection factory instances . |
159,946 | public boolean getReauthenticationSupport ( ) { return Boolean . TRUE . equals ( bootstrapContextRef . getReference ( ) . getProperty ( REAUTHENTICATION_SUPPORT ) ) ; } | Indicates whether or not reauthentication of connections is enabled . |
159,947 | public TransactionSupportLevel getTransactionSupport ( ) { TransactionSupportLevel transactionSupport = mcf instanceof TransactionSupport ? ( ( TransactionSupport ) mcf ) . getTransactionSupport ( ) : null ; String prop = ( String ) bootstrapContextRef . getReference ( ) . getProperty ( TRANSACTION_SUPPORT ) ; if ( pro... | Indicates the level of transaction support . |
159,948 | public StackNode < E > clean ( ) { do { final StackNode < E > oldTop = top . get ( ) ; if ( top . compareAndSet ( oldTop , null ) ) return oldTop ; } while ( true ) ; } | Remove all nodes from stack and return the old top node . |
159,949 | public E pop ( ) { StackNode < E > oldTop , newTop ; while ( true ) { oldTop = top . get ( ) ; if ( oldTop == null ) return null ; newTop = oldTop . next ; if ( top . compareAndSet ( oldTop , newTop ) ) break ; } return oldTop . data ; } | Pop data from the Stack . |
159,950 | public void push ( E d ) { StackNode < E > oldTop , newTop ; newTop = new StackNode < E > ( d ) ; while ( true ) { oldTop = top . get ( ) ; newTop . next = oldTop ; if ( oldTop != null ) newTop . index = oldTop . index + 1 ; else newTop . index = 0 ; if ( top . compareAndSet ( oldTop , newTop ) ) return ; } } | Push data onto Stack . |
159,951 | public E peek ( ) { final StackNode < E > oldTop = top . get ( ) ; if ( oldTop == null ) { return null ; } else { return oldTop . data ; } } | Return copy of the top data on the Stack |
159,952 | public void setSizeRefsByMsgSize ( boolean sizeByMsgSize ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setSizeRefsByMsgSize" , Boolean . valueOf ( sizeByMsgSize ) ) ; this . _sizeRefsByMsgSize = sizeByMsgSize ; if ( TraceComponent . isAnyTracingEnabled ( ) &... | PK57207 Called when adding this reference to a reference stream when to specify that sib . msgstore . jdbcSpillSizeRefsByMsgSize has been enabled |
159,953 | public int getInMemoryDataSize ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getInMemoryDataSize" ) ; int dataSize ; if ( _sizeRefsByMsgSize ) { try { dataSize = getReferredItem ( ) . getInMemoryDataSize ( ) ; } catch ( SevereMessageStoreException e ) { co... | PK57207 Returns an estimated size for this message reference |
159,954 | public void begin ( ) throws SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "begin" ) ; if ( _state == TransactionState . STATE_ACTIVE && _workList != null ) { SIIncorrectCallException ice = new SIIncorrectCallException ( nls . getFormat... | Begin a new local transaction by readying this object for re - use by the ItemStream interfaces . |
159,955 | public void rollback ( ) throws SIIncorrectCallException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "rollback" ) ; if ( _state != TransactionState . STATE_ACTIVE ) { SIIncorrectCallException sie = new SIIncorrectCallException ( nls . ge... | Rollback all work associated with this local transaction . |
159,956 | static void setInjectionEngine ( InternalInjectionEngine ie ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setInjectionEngine : " + ie ) ; svInstance = ie ; } | F46994 . 2 |
159,957 | public static boolean isRemoteable ( Class < ? > valueClass , int rmicCompatible ) { return valueClass . isInterface ( ) && valueClass != Serializable . class && valueClass != Externalizable . class && ( isCORBAObject ( valueClass , rmicCompatible ) || Remote . class . isAssignableFrom ( valueClass ) || isAbstractInter... | Determines whether a value of the specified type could be a remote object reference . This should return true if read_Object or read_abstract_interface is used for this type . |
159,958 | public static boolean hasJNDIScheme ( String jndiName ) { int colonIndex = jndiName . indexOf ( ':' ) ; int slashIndex = jndiName . indexOf ( '/' ) ; return colonIndex != - 1 && ( slashIndex == - 1 || colonIndex < slashIndex ) ; } | Return true if a JNDI name has a scheme . |
159,959 | private List < WsByteBuffer > writeHeader ( List < WsByteBuffer > list ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Writing gzip header information" ) ; } WsByteBuffer hdr = HttpDispatcher . getBufferManager ( ) . allocateDirect ( GZIP_Header . length ) ; hdr . put... | Write the gzip header onto the output list . |
159,960 | private WsByteBuffer makeBuffer ( int len ) { WsByteBuffer buffer = HttpDispatcher . getBufferManager ( ) . allocateDirect ( len ) ; buffer . put ( this . buf , 0 , len ) ; buffer . flip ( ) ; return buffer ; } | Create the output bytebuffer based on the output compressed storage . |
159,961 | private void writeInt ( int value , byte [ ] data , int offset ) { int index = offset ; data [ index ++ ] = ( byte ) ( value & 0xff ) ; data [ index ++ ] = ( byte ) ( ( value >> 8 ) & 0xff ) ; data [ index ++ ] = ( byte ) ( ( value >> 16 ) & 0xff ) ; data [ index ++ ] = ( byte ) ( ( value >> 24 ) & 0xff ) ; } | Write an integer into the output space starting at the input offset . |
159,962 | protected Object getInjectedObjectFromCXF ( Class < ? > classType , Type genericType , Annotation [ ] memberAnnotations , ParamInjectionMetadata paramInjectionMetadata ) { Parameter p = ResourceUtils . getParameter ( 0 , memberAnnotations , classType ) ; Object injectedObject = null ; Message message = paramInjectionMe... | real create the paramter object based CXF implementation |
159,963 | private void setBufferSize ( int size ) { this . amountToBuffer = size ; this . bbSize = ( 49152 < size ) ? 32768 : 8192 ; int numBuffers = ( size / this . bbSize ) ; if ( 0 == size || 0 != ( size % this . bbSize ) ) { numBuffers ++ ; } this . _output = new WsByteBuffer [ numBuffers ] ; if ( TraceComponent . isAnyTraci... | Set the amount of data to buffer internally before the stream itself initiates a flush . A zero size means no buffer is done each write call will flush data . |
159,964 | private void clear ( ) { if ( null != this . _output ) { for ( int i = 0 ; i < this . _output . length ; i ++ ) { if ( null != this . _output [ i ] ) { this . _output [ i ] . release ( ) ; this . _output [ i ] = null ; } } } this . outputIndex = 0 ; this . bufferedCount = 0 ; this . bytesWritten = 0L ; this . setWriteL... | Release any current buffer content in the stream . |
159,965 | @ Reference ( service = Application . class , cardinality = ReferenceCardinality . MULTIPLE , policy = ReferencePolicy . DYNAMIC , target = "(application.state=STARTED)" ) protected void addStartedApplication ( ServiceReference < Application > ref ) { ExecutorService executor ; String appName = ( String ) ref . getProp... | Declarative Services method for setting a started Application instance |
159,966 | @ Reference ( service = Application . class , cardinality = ReferenceCardinality . MULTIPLE , policy = ReferencePolicy . DYNAMIC , target = "(application.state=STARTING)" ) protected void addStartingApplication ( ServiceReference < Application > ref ) { String appName = ( String ) ref . getProperty ( NAME ) ; lock . wr... | Declarative Services method for setting a starting Application instance |
159,967 | boolean isStarted ( String appName ) { lock . readLock ( ) . lock ( ) ; try { return appStates . get ( appName ) == ApplicationState . STARTED ; } finally { lock . readLock ( ) . unlock ( ) ; } } | Returns true if the application with the specified name is started otherwise false . |
159,968 | protected void removeStartedApplication ( ServiceReference < Application > ref ) { String appName = ( String ) ref . getProperty ( NAME ) ; lock . writeLock ( ) . lock ( ) ; try { appStates . remove ( appName ) ; } finally { lock . writeLock ( ) . unlock ( ) ; } } | Declarative Services method for unsetting a started Application instance |
159,969 | String objectsToString ( String key , Object objects ) { java . io . StringWriter stringWriter = new java . io . StringWriter ( ) ; stringWriter . write ( key ) ; stringWriter . write ( ":" ) ; if ( objects == null ) { stringWriter . write ( "\n" ) ; } else if ( objects instanceof Object [ ] ) { for ( int i = 0 ; i < (... | Create a simple default formatted string . |
159,970 | private static String getPID ( ) { String name = ManagementFactory . getRuntimeMXBean ( ) . getName ( ) ; int index = name . indexOf ( '@' ) ; if ( index == - 1 ) { return null ; } String pid = name . substring ( 0 , index ) ; if ( ! pid . matches ( "[0-9]+" ) ) { return null ; } return pid ; } | Return the current process ID . |
159,971 | private File createNewFile ( File outputDir , String prefix , String extension ) throws IOException { String dateTime = new SimpleDateFormat ( "yyyyMMdd.HHmmss" ) . format ( new Date ( ) ) ; File outputFile ; do { String pid = PID == null ? "" : PID + '.' ; int sequenceNumber = nextSequenceNumber . getAndIncrement ( ) ... | Create a dump file with a unique name . |
159,972 | private File createThreadDump ( File outputDir ) { VirtualMachine vm = null ; try { vm = getAttachedVirtualMachine ( ) ; if ( vm == null && diagnosticCommandName == null ) { return null ; } } catch ( VirtualMachineException e ) { if ( diagnosticCommandName == null ) { Throwable cause = e . getCause ( ) ; throw cause in... | Create a thread dump . This is the same output normally printed to the console when a kill - QUIT or Ctrl - Break is sent to the process . |
159,973 | private synchronized VirtualMachine getAttachedVirtualMachine ( ) throws VirtualMachineException { if ( PID == null ) { return null ; } if ( vm == null ) { vm = createVirtualMachine ( ) ; } return vm . isAttached ( ) ? vm : null ; } | Returns sun . tools . attach . HotSpotVirtualMachine if possible . |
159,974 | private VirtualMachine createVirtualMachine ( ) throws VirtualMachineException { ClassLoader toolsClassLoader ; File toolsJar = getToolsJar ( ) ; if ( toolsJar == null ) { toolsClassLoader = HotSpotJavaDumperImpl . class . getClassLoader ( ) ; } else { try { toolsClassLoader = new URLClassLoader ( new URL [ ] { toolsJa... | Create a VirtualMachine wrapper . |
159,975 | public List < com . ibm . wsspi . security . wim . model . IdentifierType > getManager ( ) { if ( manager == null ) { manager = new ArrayList < com . ibm . wsspi . security . wim . model . IdentifierType > ( ) ; } return this . manager ; } | Gets the value of the manager property . |
159,976 | public List < com . ibm . wsspi . security . wim . model . IdentifierType > getSecretary ( ) { if ( secretary == null ) { secretary = new ArrayList < com . ibm . wsspi . security . wim . model . IdentifierType > ( ) ; } return this . secretary ; } | Gets the value of the secretary property . |
159,977 | public List < com . ibm . wsspi . security . wim . model . AddressType > getHomeAddress ( ) { if ( homeAddress == null ) { homeAddress = new ArrayList < com . ibm . wsspi . security . wim . model . AddressType > ( ) ; } return this . homeAddress ; } | Gets the value of the homeAddress property . |
159,978 | public List < com . ibm . wsspi . security . wim . model . AddressType > getBusinessAddress ( ) { if ( businessAddress == null ) { businessAddress = new ArrayList < com . ibm . wsspi . security . wim . model . AddressType > ( ) ; } return this . businessAddress ; } | Gets the value of the businessAddress property . |
159,979 | public static ModuleMetaData getModuleMetaData ( ) { ComponentMetaData cmd = getComponentMetaData ( ) ; ModuleMetaData mmd = null ; if ( cmd != null ) { mmd = cmd . getModuleMetaData ( ) ; } if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "ModuleMetaData object is " + ( mmd != null ? mmd . toString ( ) : "null!" ) )... | Gets the metadata for the module |
159,980 | void setDelete ( GBSNode deleteNode , int deleteIndex ) { _deleteNode = deleteNode ; _deleteIndex = deleteIndex ; _notFound = false ; } | Remember the information about the delete point . |
159,981 | void setTarget ( GBSNode targetNode , int targetIndex , int type ) { _targetNode = targetNode ; _targetIndex = targetIndex ; _type = type ; } | Remember the information about the target point . |
159,982 | void reset ( ) { _deleteNode = null ; _deleteIndex = 0 ; _targetNode = null ; _targetIndex = 0 ; _type = NONE ; _notFound = true ; } | Return this object to its original post - construction state . |
159,983 | private String getPID ( String dir , String serverName ) { String pid = null ; if ( platformType == SelfExtractUtils . PlatformType_CYGWIN ) { String pidFile = dir + File . separator + "wlp" + File . separator + "usr" + File . separator + "servers" + File . separator + ".pid" + File . separator + serverName + ".pid" ; ... | Return PID from server directory for cygwin environment only . |
159,984 | private void stopServer ( ) throws IOException { String cmd = dir + File . separator + "wlp" + File . separator + "bin" + File . separator + "server stop " + serverName ; if ( platformType == SelfExtractUtils . PlatformType_UNIX ) { } else if ( platformType == SelfExtractUtils . PlatformType_WINDOWS ) { cmd = "cmd /k "... | Run server stop command |
159,985 | private void startAsyncDelete ( ) throws IOException { Runtime rt = Runtime . getRuntime ( ) ; File scriptFile = null ; if ( platformType == SelfExtractUtils . PlatformType_UNIX ) { scriptFile = writeCleanupFile ( SelfExtractUtils . PlatformType_UNIX ) ; rt . exec ( "chmod 750 " + scriptFile . getAbsolutePath ( ) ) ; r... | Start async deletion using background script |
159,986 | private void writeWindowsCleanup ( File file , BufferedWriter bw ) throws IOException { bw . write ( "set max=30\n" ) ; bw . write ( "set cnt=0\n" ) ; bw . write ( "set dir=" + dir + "\n" ) ; bw . write ( "echo delete %dir%\n" ) ; bw . write ( ":while\n" ) ; bw . write ( " if exist %dir% (\n" ) ; bw . write ( " ... | Write logic for windows cleanup script |
159,987 | private void writeUnixCleanup ( File file , BufferedWriter bw ) throws IOException { bw . write ( "echo begin delete" + "\n" ) ; bw . write ( "n=0" + "\n" ) ; bw . write ( "while [ $n -ne 1 ]; do" + "\n" ) ; bw . write ( " sleep 3" + "\n" ) ; bw . write ( " if [ -e " + dir . replace ( '\\' , '/' ) + " ]; then" + "\n"... | Write logic for Unix cleanup script |
159,988 | private void writeCygwinCleanup ( File file , BufferedWriter bw ) throws IOException { String pid = getPID ( dir , serverName ) ; if ( pid != null ) bw . write ( "kill " + pid + "\n" ) ; writeUnixCleanup ( file , bw ) ; } | Write logic for Cygwin cleanup script |
159,989 | public void run ( ) { try { stopServer ( ) ; if ( ! System . getProperty ( "os.name" ) . startsWith ( "Win" ) ) { out . join ( ) ; err . join ( ) ; } else { out . join ( 500 ) ; err . join ( 500 ) ; } startAsyncDelete ( ) ; } catch ( Exception e ) { throw new RuntimeException ( "Shutdown hook failed with exception " + ... | Main method for shutdown hook . Job of this hook is to stop server and delete extraction directory . |
159,990 | protected int position ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "position" , this ) ; int position = _absolutePosition + _buffer . position ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "position" , new Integer ( position ) ) ; return position ; } | Returns the position of the byte cursor for the mapped byte buffer . |
159,991 | protected void position ( int newPosition ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "position" , new Object [ ] { this , new Integer ( newPosition ) } ) ; newPosition -= _absolutePosition ; _buffer . position ( newPosition ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "position" ) ; } | Sets the position of the byte cursor for the mapped byte buffer . |
159,992 | protected void advancePosition ( int bytes ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "advancePosition" , new Object [ ] { this , new Integer ( bytes ) } ) ; final int newPosition = _buffer . position ( ) + bytes ; _buffer . position ( newPosition ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Buffer's... | Moves the current byte cursor position for the mapped byte buffer forwards . |
159,993 | protected void get ( byte [ ] bytes ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "get" , new Object [ ] { this , new Integer ( bytes . length ) } ) ; _buffer . get ( bytes ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , RLSUtils . toHexString ( bytes , RLSUtils . MAX_DISPLAY_BYTES ) ) ; if ( tc . isEntryEn... | Getter method used to read bytes . length bytes from the mapped byte buffer at the current byte cursor position into the supplied byte array . The byte cursor is advanced by bytes . length . |
159,994 | protected int getInt ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getInt" , this ) ; int data = _buffer . getInt ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getInt" , new Integer ( data ) ) ; return data ; } | Getter method used to read an integer from the mapped byte buffer at the current byte cursor position . The byte cursor is advanced by the size of an integer . |
159,995 | protected long getLong ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getLong" , this ) ; long data = _buffer . getLong ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getLong" , new Long ( data ) ) ; return data ; } | Getter method used to a long from the mapped byte buffer at the current byte cursor position . The byte cursor is advanced by the size of a long . |
159,996 | protected short getShort ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getShort" , this ) ; short data = _buffer . getShort ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getShort" , new Short ( data ) ) ; return data ; } | Getter method used to a short from the mapped byte buffer at the current byte cursor position . The byte cursor is advanced by the size of a short . |
159,997 | protected boolean getBoolean ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getBoolean" , this ) ; byte dataByte = _buffer . get ( ) ; boolean data = ( dataByte == TRUE ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getBoolean" , new Boolean ( data ) ) ; return data ; } | Getter method used to a boolean from the mapped byte buffer at the current byte cursor position . The byte cursor is advanced by the size of a boolean . |
159,998 | private Object readItem ( ) { Object itemRead = null ; try { currentChunkStatus . incrementItemsTouchedInCurrentChunk ( ) ; for ( ItemReadListenerProxy readListenerProxy : itemReadListeners ) { readListenerProxy . beforeRead ( ) ; } itemRead = readerProxy . readItem ( ) ; for ( ItemReadListenerProxy readListenerProxy :... | Reads an item from the reader |
159,999 | private void publishCheckpointEvent ( String stepName , long jobInstanceId , long jobExecutionId , long stepExecutionId ) { BatchEventsPublisher publisher = getBatchEventsPublisher ( ) ; if ( publisher != null ) { String correlationId = runtimeWorkUnitExecution . getCorrelationId ( ) ; publisher . publishCheckpointEven... | Helper method to publish checkpoint event |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.