idx
int64
0
41.2k
question
stringlengths
83
4.15k
target
stringlengths
5
715
39,200
public boolean isPresent ( int accessor ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) JmfTr . entry ( this , tc , "isPresent" , new Object [ ] { Integer . valueOf ( accessor ) } ) ; boolean result ; if ( accessor < cacheSize ) { result = super . isPresent ( accessor ) ; } else if ( acce...
The BoxManager stuff is a black art so we ll lock round it to be safe .
39,201
public boolean setPosition ( long position ) { try { long fileSize = reader . length ( ) ; if ( fileSize > position ) { reader . seek ( position ) ; return true ; } logger . logp ( Level . SEVERE , className , "setPosition" , "HPEL_OffsetBeyondFileSize" , new Object [ ] { file , Long . valueOf ( position ) , Long . val...
Positions file stream to the location of a previously read record .
39,202
public long getPosition ( ) { try { return reader . getFilePointer ( ) ; } catch ( IOException ex ) { logger . logp ( Level . SEVERE , className , "getPosition" , "HPEL_ErrorReadingFileOffset" , new Object [ ] { file , ex . getMessage ( ) } ) ; } return - 1L ; }
Retrieves position in the reader s input stream .
39,203
public RepositoryLogRecord findNext ( long refSequenceNumber ) { if ( nextRecord == null ) { nextRecord = getNext ( refSequenceNumber ) ; } if ( nextRecord == null || refSequenceNumber >= 0 && refSequenceNumber < nextRecord . getInternalSeqNumber ( ) ) { return null ; } else { RepositoryLogRecord result = nextRecord ; ...
returns next record from the stream matching required condition .
39,204
public long seekToNextRecord ( LogRecordSerializer formatter ) throws IOException { long fileSize = reader . length ( ) ; long position = reader . getFilePointer ( ) ; int location ; int len = 0 ; int offset = 0 ; byte [ ] buffer = new byte [ 2048 ] ; do { if ( offset > 0 ) { position += len - offset ; for ( int i = 0 ...
Repositions reader to the location of the next record . This is done by searching next eyeCatcher and then seek 4 bytes before its start .
39,205
public long seekToPrevRecord ( LogRecordSerializer formatter ) throws IOException { long position = reader . getFilePointer ( ) ; byte [ ] buffer = new byte [ 2048 ] ; int location ; int offset = 0 ; int len = 0 ; do { if ( position <= formatter . getEyeCatcherSize ( ) + 3 ) { throw new IOException ( "No eyeCatcher fou...
Repositions reader to the location of the previous record . This is done by searching prev eyeCatcher and then seek 4 bytes before its start .
39,206
protected LogFileReader createNewReader ( LogFileReader other ) throws IOException { if ( other instanceof LogFileReaderImpl ) { return new LogFileReaderImpl ( ( LogFileReaderImpl ) other ) ; } throw new IOException ( "Instance of the " + other . getClass ( ) . getName ( ) + " is not clonable by " + OneLogFileRecordIte...
Creates the new instance of a reader to read input data with based on an existing one .
39,207
public final void persistLock ( final Transaction transaction ) throws ProtocolException , TransactionException , SevereMessageStoreException { Membership membership = _getMembership ( ) ; if ( null == membership ) { throw new NotInMessageStore ( ) ; } membership . persistLock ( transaction ) ; }
Use this method to persist the lock currently active on the item . Item MUST be locked .
39,208
public void persistRedeliveredCount ( int redeliveredCount ) throws SevereMessageStoreException { Membership thisItemLink = _getMembership ( ) ; if ( null == thisItemLink ) { throw new NotInMessageStore ( ) ; } thisItemLink . persistRedeliveredCount ( redeliveredCount ) ; }
Use this method to persist the redelivered count for the item .
39,209
public final void requestUpdate ( Transaction transaction ) throws MessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "requestUpdate" , transaction ) ; Membership membership = _getMembership ( ) ; if ( null == membership ) { throw new NotInMess...
Request an update
39,210
private LaunchArguments createLaunchArguments ( String [ ] args , Map < String , String > initProps ) { List < String > cmdArgs = processBatchFileArgs ( new ArrayList < String > ( Arrays . asList ( args ) ) ) ; return new LaunchArguments ( cmdArgs , initProps , isClient ( ) ) ; }
Return an instance of LaunchArguments .
39,211
protected ReturnCode handleActions ( BootstrapConfig bootProps , LaunchArguments launchArgs ) { ReturnCode rc = launchArgs . getRc ( ) ; switch ( rc ) { case OK : rc = new KernelBootstrap ( bootProps ) . go ( ) ; break ; case CREATE_ACTION : ServerLock . createServerLock ( bootProps ) ; boolean generatePass = launchArg...
Handle the process action .
39,212
protected void findLocations ( BootstrapConfig bootProps , String processName ) { String userDirStr = getEnv ( BootstrapConstants . ENV_WLP_USER_DIR ) ; String serversDirStr = getEnv ( bootProps . getOutputDirectoryEnvName ( ) ) ; String logDirStr = getEnv ( BootstrapConstants . ENV_X_LOG_DIR ) ; if ( logDirStr == null...
Find main locations
39,213
void send ( AbstractMessage aMessage , int priority ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "send" , new Object [ ] { this , aMessage , new Integer ( priority ) , "verboseMsg OUT : " + aMessage . toVerboseString ( ) } ) ; if ( TraceComponent . isAnyTracingEnab...
If comms has capacity then send the encoded message data . Otherwise throw the message away .
39,214
public ProtocolVersion getVersion ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getVersion" ) ; ProtocolVersion version = ProtocolVersion . UNKNOWN ; ConnectionMetaData connMetaData = connection . getMetaData ( ) ; if ( connMetaData != null ) version = connMetaDa...
Retrieve the ProtocolVersion associated with this connection .
39,215
protected Object performInvocation ( Exchange exchange , final Object serviceObject , Method m , Object [ ] paramArray ) throws Exception { m = serviceObject . getClass ( ) . getMethod ( m . getName ( ) , m . getParameterTypes ( ) ) ; return super . performInvocation ( exchange , serviceObject , m , paramArray ) ; }
This invokes the target operation . We override this method to deal with the fact that the serviceObject is actually an EJB wrapper class . We need to get an equivalent method on the serviceObject class in order to invoke the target operation .
39,216
private String getUserAccessId ( String userName ) { try { SecurityService securityService = securityServiceRef . getService ( ) ; UserRegistryService userRegistryService = securityService . getUserRegistryService ( ) ; UserRegistry userRegistry = userRegistryService . getUserRegistry ( ) ; String realm = userRegistry ...
Get the access id for a user by performing a looking up in the user registry .
39,217
private String getGroupAccessId ( String groupName ) { try { SecurityService securityService = securityServiceRef . getService ( ) ; UserRegistryService userRegistryService = securityService . getUserRegistryService ( ) ; UserRegistry userRegistry = userRegistryService . getUserRegistry ( ) ; String realm = userRegistr...
Get the access id for a group by performing a looking up in the user registry .
39,218
private Object getSavedState ( FacesContext facesContext ) { Object encodedState = facesContext . getExternalContext ( ) . getRequestParameterMap ( ) . get ( STANDARD_STATE_SAVING_PARAM ) ; if ( encodedState == null || ( ( ( String ) encodedState ) . length ( ) == 0 ) ) { return null ; } Object savedStateObject = _stat...
Reconstructs the state from the javax . faces . ViewState request parameter .
39,219
public boolean isPostback ( FacesContext context ) { return context . getExternalContext ( ) . getRequestParameterMap ( ) . containsKey ( ResponseStateManager . VIEW_STATE_PARAM ) ; }
Checks if the current request is a postback
39,220
public void initialise ( Identifier rootId , boolean enableCache ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "initialise" , new Object [ ] { rootId , new Boolean ( enableCache ) } ) ; switch ( rootId . getType ( ) ) { case Selector . UNKNOWN : case Selector . OBJ...
Initialise a newly created MatchSpace
39,221
public synchronized void addTarget ( Conjunction conjunction , MatchTarget object ) throws MatchingException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "addTarget" , new Object [ ] { conjunction , object } ) ; if ( rootId != null ) { OrdinalPosition rootOrd...
Adds a Conjunction to the space and associates a MatchTarget with it .
39,222
private CacheEntry getCacheEntry ( Object value , boolean create ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "getCacheEntry" , new Object [ ] { value , new Boolean ( create ) , matchCache } ) ; CacheEntry e = ( CacheEntry ) matchCache . get ( value ) ; if ...
Gets the appropriate CacheEntry for a value of the root Identifier
39,223
public boolean shouldRetain ( Object key , Object val ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "shouldRetain" , new Object [ ] { key , val } ) ; CacheEntry e = ( CacheEntry ) val ; if ( e . exactMatcher != null ) { if ( TraceComponent . isAnyTracingEnab...
entries that don t have an exactMatcher .
39,224
public void statistics ( PrintWriter wtr ) { int truePessimisticGets = pessimisticGets - puntsDueToCache ; wtr . println ( "Exact puts: " + exactPuts + ", Wildcard generation: " + matchTreeGeneration + ", Wildcard puts: " + wildPuts + ", Wildcard-Cache-hit gets: " + wildCacheHitGets + ", Wildcard-Cache-miss gets: " + w...
Only used when doing isolated performance testing of the MatchSpace .
39,225
public synchronized void clear ( Identifier rootId , boolean enableCache ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "clear" ) ; matchTree = null ; matchTreeGeneration = 0 ; subExpr . clear ( ) ; initialise ( rootId , enableCache ) ; if ( TraceComponent . ...
Removes all objects from the MatchSpace resetting it to the as new condition .
39,226
public SICoreConnection getConnection ( ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getConnection" ) ; checkAlreadyClosed ( )...
Returns the SICoreConnection which created this Session .
39,227
protected void checkAlreadyClosed ( ) throws SISessionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "checkAlreadyClosed" ) ; if ( isClosed ( ) ) throw new SISessionUnavailableException ( nls . getFormattedMessage ( "SESSION_CLOSED_SICO1013"...
Helper method to check if this session is closed and throws the appropriate exception if it is .
39,228
public SIDestinationAddress getDestinationAddress ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getDestinationAddress" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getDestinationAddress" , desti...
This method will return the destination address of the destination that this session is currently attached to .
39,229
public TrmClientBootstrapRequest createNewTrmClientBootstrapRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmClientBootstrapRequest" ) ; TrmClientBootstrapRequest msg = null ; try { msg = new TrmClientBootstrap...
Create a new empty TrmClientBootstrapRequest message
39,230
public TrmClientBootstrapReply createNewTrmClientBootstrapReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmClientBootstrapReply" ) ; TrmClientBootstrapReply msg = null ; try { msg = new TrmClientBootstrapReplyImp...
Create a new empty TrmClientBootstrapReply message
39,231
public TrmClientAttachRequest createNewTrmClientAttachRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmClientAttachRequest" ) ; TrmClientAttachRequest msg = null ; try { msg = new TrmClientAttachRequestImpl ( )...
Create a new empty TrmClientAttachRequest message
39,232
public TrmClientAttachRequest2 createNewTrmClientAttachRequest2 ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmClientAttachRequest2" ) ; TrmClientAttachRequest2 msg = null ; try { msg = new TrmClientAttachRequest2Imp...
Create a new empty TrmClientAttachRequest2 message
39,233
public TrmClientAttachReply createNewTrmClientAttachReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmClientAttachReply" ) ; TrmClientAttachReply msg = null ; try { msg = new TrmClientAttachReplyImpl ( ) ; } catch...
Create a new empty TrmClientAttachReply message
39,234
public TrmMeConnectRequest createNewTrmMeConnectRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeConnectRequest" ) ; TrmMeConnectRequest msg = null ; try { msg = new TrmMeConnectRequestImpl ( ) ; } catch ( Me...
Create a new empty TrmMeConnectRequest message
39,235
public TrmMeConnectReply createNewTrmMeConnectReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeConnectReply" ) ; TrmMeConnectReply msg = null ; try { msg = new TrmMeConnectReplyImpl ( ) ; } catch ( MessageDecod...
Create a new empty TrmMeConnectReply message
39,236
public TrmMeLinkRequest createNewTrmMeLinkRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeLinkRequest" ) ; TrmMeLinkRequest msg = null ; try { msg = new TrmMeLinkRequestImpl ( ) ; } catch ( MessageDecodeFail...
Create a new empty TrmMeLinkRequest message
39,237
public TrmMeLinkReply createNewTrmMeLinkReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeLinkReply" ) ; TrmMeLinkReply msg = null ; try { msg = new TrmMeLinkReplyImpl ( ) ; } catch ( MessageDecodeFailedExceptio...
Create a new empty TrmMeLinkReply message
39,238
public TrmMeBridgeRequest createNewTrmMeBridgeRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeBridgeRequest" ) ; TrmMeBridgeRequest msg = null ; try { msg = new TrmMeBridgeRequestImpl ( ) ; } catch ( Message...
Create a new empty TrmMeBridgeRequest message
39,239
public TrmMeBridgeReply createNewTrmMeBridgeReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeBridgeReply" ) ; TrmMeBridgeReply msg = null ; try { msg = new TrmMeBridgeReplyImpl ( ) ; } catch ( MessageDecodeFail...
Create a new empty TrmMeBridgeReply message
39,240
public TrmMeBridgeBootstrapRequest createNewTrmMeBridgeBootstrapRequest ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeBridgeBootstrapRequest" ) ; TrmMeBridgeBootstrapRequest msg = null ; try { msg = new TrmMeBridg...
Create a new empty TrmMeBridgeBootstrapRequest message
39,241
public TrmMeBridgeBootstrapReply createNewTrmMeBridgeBootstrapReply ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewTrmMeBridgeBootstrapReply" ) ; TrmMeBridgeBootstrapReply msg = null ; try { msg = new TrmMeBridgeBootstr...
Create a new empty TrmMeBridgeBootstrapReply message
39,242
public TrmFirstContactMessage createInboundTrmFirstContactMessage ( byte rawMessage [ ] , int offset , int length ) throws MessageDecodeFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createInboundTrmFirstContactMessage" , new Object [ ] { rawMessage , ...
Create a TrmFirstContactMessage to represent an inbound message .
39,243
public TrmRouteData createTrmRouteData ( ) throws MessageCreateFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createTrmRouteData" ) ; TrmRouteData msg = null ; try { msg = new TrmRouteDataImpl ( MfpConstants . CONSTRUCTOR_NO_OP ) ; } catch ( MessageDec...
Create a TrmRouteData message
39,244
public void eventRestored ( ) throws SevereMessageStoreException { super . eventRestored ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "eventRestored" ) ; try { NonLockingCursor cursor = newNonLockingItemCursor ( null ) ; AbstractItem item = cursor . next (...
the message store . We build the index of any currently stored items .
39,245
void addSchema ( JMFSchema schema , Transaction tran ) throws MessageStoreException { addItem ( new SchemaStoreItem ( schema ) , tran ) ; }
Add a new schema defintion to the store
39,246
JMFSchema findSchema ( long schemaId ) throws MessageStoreException { Long storeId = schemaIndex . get ( Long . valueOf ( schemaId ) ) ; if ( storeId != null ) { AbstractItem item = findById ( storeId . longValue ( ) ) ; return ( ( SchemaStoreItem ) item ) . getSchema ( ) ; } else throw new MessageStoreException ( "Sch...
Restore a schema definition from the store
39,247
void addToIndex ( SchemaStoreItem item ) throws NotInMessageStore { schemaIndex . put ( item . getSchema ( ) . getLongID ( ) , Long . valueOf ( item . getID ( ) ) ) ; item . setStream ( this ) ; }
Add an item to our index
39,248
void removeFromIndex ( SchemaStoreItem item ) { schemaIndex . remove ( item . getSchema ( ) . getLongID ( ) ) ; item . setStream ( null ) ; }
Remove an item from our index
39,249
public synchronized WSPKCSInKeyStore insert ( String tokenType , String tokenlib , String tokenPwd , boolean askeystore , String keyStoreProvider ) throws Exception { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "insert" , new Object [ ] { tokenType , tokenlib , keyStoreProvider } ) ; WSPKCSInKeyStore pKS = inserte...
Insert a new keystore into the list .
39,250
private WSPKCSInKeyStore insertedAlready ( String tokenlib ) { WSPKCSInKeyStore pKS = null ; WSPKCSInKeyStore rc = null ; Enumeration < WSPKCSInKeyStore > e = theV . elements ( ) ; while ( null == rc && e . hasMoreElements ( ) ) { pKS = e . nextElement ( ) ; if ( tokenlib . equalsIgnoreCase ( pKS . getlibName_key ( ) )...
Lookup the keystore object that may exist in the list for the input token library value .
39,251
public InputStream openKeyStore ( String fileName ) throws MalformedURLException , IOException { InputStream fis = null ; URL urlFile = null ; File kfile = null ; try { kfile = new File ( fileName ) ; } catch ( NullPointerException e ) { throw new IOException ( ) ; } try { if ( kfile . exists ( ) ) { if ( kfile . lengt...
Open the input filename as a stream .
39,252
private void addAlternateNamedFacesConfig ( Container moduleContainer , ArrayList < String > classList ) { try { WebApp webapp = moduleContainer . adapt ( WebApp . class ) ; if ( webapp == null ) { return ; } List < ParamValue > params = webapp . getContextParams ( ) ; String configNames = null ; for ( ParamValue param...
Look at the web . xml for a context - param javax . faces . CONFIG_FILES and treat as a comma delimited list
39,253
public static QName getServiceQName ( ClassInfo classInfo , String seiClassName , String targetNamespace ) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , "Service QName" ) ; if ( annotationInfo == null ) { return null ; } return getQName ( classInfo , targetNamespace , annotationInfo . getVa...
Get serviceName s QName of Web Service
39,254
public static QName getPortQName ( ClassInfo classInfo , String seiClassName , String targetNamespace ) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , "Port QName" ) ; if ( annotationInfo == null ) { return null ; } boolean webServiceProviderAnnotation = isProvider ( classInfo ) ; String wsN...
Get portName QName of Web Service
39,255
public static boolean isProvider ( ClassInfo classInfo ) { AnnotationInfo annotationInfo = classInfo . getAnnotation ( JaxWsConstants . WEB_SERVICE_ANNOTATION_NAME ) ; if ( annotationInfo == null ) { annotationInfo = classInfo . getAnnotation ( JaxWsConstants . WEB_SERVICE_PROVIDER_ANNOTATION_NAME ) ; if ( annotationIn...
Judge if is a Web Service Provider .
39,256
public static String getImplementedTargetNamespace ( ClassInfo classInfo ) { String defaultValue = getNamespace ( classInfo , null ) ; if ( StringUtils . isEmpty ( defaultValue ) ) { defaultValue = JaxWsConstants . UNKNOWN_NAMESPACE ; } AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , JaxWsConst...
get the targetNamespace from implementation bean . if can get the targetNamespace attribute from annotation then return it otherwise return the package name as default value . Both webService and webServiceprovider has the same logic .
39,257
public static String getInterfaceTargetNamespace ( ClassInfo classInfo , String seiClassName , String implementedTargetNamespace , InfoStore infoStore ) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , JaxWsConstants . TARGETNAMESPACE_ATTRIBUTE ) ; if ( annotationInfo == null ) { return "" ; }...
get the targetNamespace from SEI . If it is webServiceProvider just return the targetNamespace attribute from annotation . If it is webService and no SEI specified return the implementedTargetNamespace ; If it is webService and SEI specified with no targetNamespace attribute should report error? If it is webService and...
39,258
public static String getWSDLLocation ( ClassInfo classInfo , String seiClassName , InfoStore infoStore ) { return getStringAttributeFromAnnotation ( classInfo , seiClassName , infoStore , JaxWsConstants . WSDLLOCATION_ATTRIBUTE , "" , "" ) ; }
First get the WSDL Location .
39,259
private static String getStringAttributeFromWebServiceProviderAnnotation ( AnnotationInfo annotationInfo , String attribute , String defaultForServiceProvider ) { if ( attribute . equals ( JaxWsConstants . ENDPOINTINTERFACE_ATTRIBUTE ) || attribute . equals ( JaxWsConstants . NAME_ATTRIBUTE ) ) { return defaultForServi...
Return the attribute value of WebServiceProvider annotation
39,260
private static String getStringAttributeFromAnnotation ( ClassInfo classInfo , String seiClassName , InfoStore infoStore , String attribute , String defaultForService , String defaultForServiceProvider ) { AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , attribute ) ; if ( annotationInfo == null...
Get the string value of attribute in WebService or WebserviceProvider annotation .
39,261
public static String getPortComponentName ( ClassInfo classInfo , String seiClassName , InfoStore infoStore ) { String defaultForServiceProvider = classInfo . getName ( ) ; String defaultForService = getClassName ( classInfo . getName ( ) ) ; return getStringAttributeFromAnnotation ( classInfo , seiClassName , infoStor...
Get the portComponentName from ClassInfo
39,262
private static QName getPortQName ( ClassInfo classInfo , String namespace , String wsName , String wsPortName , String suffix ) { String portName ; if ( wsPortName != null && ! wsPortName . isEmpty ( ) ) { portName = wsPortName . trim ( ) ; } else { if ( wsName != null && ! wsName . isEmpty ( ) ) { portName = wsName ....
Get portName . 1 . declared portName in web service annotation 2 . name in web service annotation + Port 3 . service class name + Port .
39,263
public static boolean matchesQName ( QName regQName , QName targetQName , boolean ignorePrefix ) { if ( regQName == null || targetQName == null ) { return false ; } if ( "*" . equals ( getQNameString ( regQName ) ) ) { return true ; } if ( ! ( regQName . getNamespaceURI ( ) . equals ( targetQName . getNamespaceURI ( ) ...
Check whether the regQName matches the targetQName
39,264
public static String getProtocolByToken ( String token , boolean returnDefault ) { if ( StringUtils . isEmpty ( token ) && returnDefault ) { return JaxWsConstants . SOAP11HTTP_BINDING ; } if ( JaxWsConstants . SOAP11_HTTP_TOKEN . equals ( token ) ) { return JaxWsConstants . SOAP11HTTP_BINDING ; } else if ( JaxWsConstan...
Get the protocol by token
39,265
public boolean addSync ( ) throws ResourceException { if ( tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "addSync" ) ; } UOWCoordinator uowCoord = mcWrapper . getUOWCoordinator ( ) ; if ( uowCoord == null ) { IllegalStateException e = new IllegalStateException ( "addSync: illegal state exception. uowCoord is nul...
Register the RRSGlobalTransactionWrapper as a sync object with the Transaction Manager for the current transaction .
39,266
private void taskProperties ( RESTRequest request , RESTResponse response ) { String taskID = RESTHelper . getRequiredParam ( request , APIConstants . PARAM_TASK_ID ) ; String taskPropertiesText = getMultipleRoutingHelper ( ) . getTaskProperties ( taskID ) ; OutputHelper . writeTextOutput ( response , taskPropertiesTex...
Returns the list of available properties and their corresponding URLs .
39,267
private void taskProperty ( RESTRequest request , RESTResponse response ) { String taskID = RESTHelper . getRequiredParam ( request , APIConstants . PARAM_TASK_ID ) ; String property = RESTHelper . getRequiredParam ( request , APIConstants . PARAM_PROPERTY ) ; String taskPropertyText = getMultipleRoutingHelper ( ) . ge...
Returns the value of the property . An IllegalArgument exception is thrown if the value is not an instance of java . lang . String .
39,268
public static DERUTF8String getInstance ( Object obj ) { if ( obj == null || obj instanceof DERUTF8String ) { return ( DERUTF8String ) obj ; } if ( obj instanceof ASN1OctetString ) { return new DERUTF8String ( ( ( ASN1OctetString ) obj ) . getOctets ( ) ) ; } if ( obj instanceof ASN1TaggedObject ) { return getInstance ...
return an UTF8 string from the passed in object .
39,269
public static JsMessagingEngine [ ] registerMessagingEngineListener ( final SibRaMessagingEngineListener listener , final String busName ) { final String methodName = "registerMessagingEngineListener" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , methodName , new Object [ ] { listener , busName } ) ; } ...
Registers a listener for active messaging engines on a bus .
39,270
public static void deregisterMessagingEngineListener ( final SibRaMessagingEngineListener listener , final String busName ) { final String methodName = "deregisterMessagingEngineListener" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , methodName , new Object [ ] { listener , busName } ) ; } synchronized ...
Deregisters a listener for active messaging engines on a bus .
39,271
public static JsMessagingEngine [ ] getMessagingEngines ( final String busName ) { final String methodName = "getMessagingEngines" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , methodName , busName ) ; } final JsMessagingEngine [ ] result ; synchronized ( MESSAGING_ENGINES ) { final Set messagingEngines...
Returns an array of initialized messaging engines for the given bus . If there are none an empty array is returned .
39,272
public void engineReloaded ( Object objectSent ) { final JsMessagingEngine engine = ( JsMessagingEngine ) objectSent ; final String methodName = "engineReloaded" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , engine ) ; } RELOADING_MESSAGING_ENGINES . remove ( engine . getUuid ( ) . t...
lohith liberty change
39,273
private static Set getListeners ( final String busName ) { final String methodName = "getListeners" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , methodName , busName ) ; } final Set listeners = new HashSet ( ) ; synchronized ( MESSAGING_ENGINE_LISTENERS ) { final Set busListeners = ( Set ) MESSAGING_EN...
Returns the set of listeners for the given bus .
39,274
private static boolean isTruePartitionOfTopLevelStep ( Step step ) { Partition partition = step . getPartition ( ) ; if ( partition . getMapper ( ) != null ) { if ( logger . isLoggable ( Level . FINER ) ) { logger . logp ( Level . FINER , CLASSNAME , "validatePartition" , "Found partitioned step with mapper" , step ) ;...
Need to perform this check because of the way we manipulate the model in building our subjob for the partition .
39,275
protected ClassConfigData processClassConfiguration ( final InputStream inputStream ) throws IOException { if ( introspectAnnotations == false ) { return new ClassConfigData ( inputStream ) ; } ClassReader cr = new ClassReader ( inputStream ) ; ClassWriter cw = new ClassWriter ( cr , 0 ) ; TraceConfigClassVisitor cv = ...
Introspect configuration information from the class in the provided InputStream .
39,276
protected ClassInfo mergeClassConfigInfo ( ClassInfo classInfo ) { PackageInfo packageInfo = configFileParser . getPackageInfo ( classInfo . getInternalPackageName ( ) ) ; if ( packageInfo == null ) { packageInfo = getPackageInfo ( classInfo . getInternalPackageName ( ) ) ; } classInfo . updateDefaultValuesFromPackageI...
Attempt to normalize the various levels of configuration information prior to instrumenting a class .
39,277
private static void printUsageMessage ( ) { System . out . println ( "Description:" ) ; System . out . println ( " StaticTraceInstrumentation can modify classes" ) ; System . out . println ( " in place to add calls to a trace framework that will" ) ; System . out . println ( " delegate to JSR47 logging or WebSphere ...
Gentle usage message that needs to be written .
39,278
public static LibertyVersionRange valueOf ( String versionRangeString ) { if ( versionRangeString == null ) { return null ; } Matcher versionRangeMatcher = VERSION_RANGE_PATTERN . matcher ( versionRangeString ) ; if ( versionRangeMatcher . matches ( ) ) { LibertyVersion minVersion = LibertyVersion . valueOf ( versionRa...
Attempts to parse the supplied version range string into a Liberty version range containing just numbers . If it fails to do so it will return null .
39,279
protected void detach ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "detach" ) ; getCursor . finished ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "detach" ) ; }
Detach processing for this filter
39,280
protected void discard ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "discard" ) ; if ( getCursor != null ) { getCursor . finished ( ) ; getCursor = null ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "discard" )...
Discard processing for this filter
39,281
public void registerInterceptors ( EjbDescriptor < ? > ejbDescriptor , InterceptorBindings interceptorBindings ) { if ( interceptorBindings != null ) { final Collection < Interceptor < ? > > interceptors = interceptorBindings . getAllInterceptors ( ) ; if ( interceptors != null ) { for ( Interceptor < ? > interceptor :...
Throw an exception if an interceptor for Transactional is registered
39,282
protected void updateSubjectWithTemporarySubjectContents ( ) { subject . getPrincipals ( ) . addAll ( temporarySubject . getPrincipals ( ) ) ; subject . getPublicCredentials ( ) . addAll ( temporarySubject . getPublicCredentials ( ) ) ; subject . getPrivateCredentials ( ) . addAll ( temporarySubject . getPrivateCredent...
Sets the subject with the temporary subject contents that was not set already from the shared state .
39,283
public int size ( boolean includeDiskCache ) { int mappings = 0 ; mappings = cache . getNumberCacheEntries ( ) ; if ( includeDiskCache ) { if ( cache instanceof CacheProviderWrapper ) { CacheProviderWrapper cpw = ( CacheProviderWrapper ) cache ; if ( cpw . featureSupport . isDiskCacheSupported ( ) ) mappings = mappings...
Returns number of key - value mappings in this map .
39,284
public void addAlias ( Object key , Object [ ] aliasArray ) { final String methodName = "addAlias(key, aliasArray)" ; functionNotAvailable ( methodName ) ; }
Adds one or more aliases for the given key in the cache s mapping table . If the alias is already associated with another key it will be changed to associate with the new key .
39,285
public void invalidate ( Object key , boolean wait , boolean checkPreInvalidationListener ) { final String methodName = "invalidate(key, wait, checkPreInvalidationListener)" ; functionNotAvailable ( methodName ) ; }
invalidate - invalidates the given key . If the key is for a specific cache entry then only that object is invalidated . If the key is for a dependency id then all objects that share that dependency id will be invalidated .
39,286
public void setWsLogHandler ( String id , WsLogHandler ref ) { if ( id != null && ref != null ) { RERWLOCK . writeLock ( ) . lock ( ) ; try { wsLogHandlerServices . put ( id , ref ) ; if ( earlierMessages == null ) { return ; } for ( RoutedMessage earlierMessage : earlierMessages . toArray ( new RoutedMessage [ earlier...
Add the WsLogHandler ref . 1 or more LogHandlers may be set .
39,287
public long getByteBufferAddress ( ByteBuffer byteBuffer ) { if ( ! byteBuffer . isDirect ( ) ) { throw new IllegalArgumentException ( "The specified byte buffer is not direct" ) ; } try { return svAddrField . getLong ( byteBuffer ) ; } catch ( IllegalAccessException exception ) { throw new RuntimeException ( exception...
Get the native address for the specified DirectByteBuffer
39,288
public long getSocketChannelHandle ( SocketChannel socketChannel ) { StartPrivilegedThread privThread = new StartPrivilegedThread ( socketChannel ) ; return AccessController . doPrivileged ( privThread ) ; }
Get the socket channel handle .
39,289
public void cleanThreadLocals ( Thread thread ) { try { svThreadLocalsField . set ( thread , null ) ; } catch ( IllegalAccessException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Unable to clear java.lang.ThreadLocals: " , e ) ; } }
Clean up the thread locals for the specified Thread .
39,290
private boolean hasConfigChanged ( Document newConfig ) { NodeList list = newConfig . getElementsByTagName ( "*" ) ; int currentHash = nodeListHashValue ( list ) ; if ( this . previousConfigHash == null || currentHash != this . previousConfigHash ) { this . previousConfigHash = currentHash ; return true ; } else { retu...
Check to see if the current config has the same information as the previously written config . If this config has no new information return false .
39,291
public URLConnection openConnection ( URL url ) throws IOException { String path = url . getPath ( ) ; int resourceDelimiterIndex = path . indexOf ( "!/" ) ; URLConnection conn ; if ( resourceDelimiterIndex == - 1 ) { conn = Utils . newURL ( path ) . openConnection ( ) ; } else { String urlString = ParserUtils . decode...
begin 408408 . 2
39,292
public void reconstitute ( int startMode , HashMap < String , Object > durableSubscriptionsTable ) throws SIIncorrectCallException , SIDiscriminatorSyntaxException , SISelectorSyntaxException , MessageStoreException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr...
There will only be one such proxy reference stream .
39,293
public ConsumerDispatcher createSubscriptionConsumerDispatcher ( ConsumerDispatcherState subState ) throws SIDiscriminatorSyntaxException , SISelectorSyntaxException , SIResourceException , SISelectorSyntaxException , SIDiscriminatorSyntaxException , SINonDurableSubscriptionMismatchException { if ( TraceComponent . isA...
however nobody is calling this thru AbstractAliasDestinationHandler in Liberty .
39,294
public ConsumableKey attachToLocalDurableSubscription ( LocalConsumerPoint consumerPoint , ConsumerDispatcherState subState ) throws SIDurableSubscriptionMismatchException , SIDurableSubscriptionNotFoundException , SIDestinationLockedException , SISelectorSyntaxException , SIDiscriminatorSyntaxException , SINotPossible...
Attaches to a created DurableSubscription which is homed on the local ME .
39,295
public SubscriptionIndex getSubscriptionIndex ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getSubscriptionIndex" ) ; SibTr . exit ( tc , "getSubscriptionIndex" , _subscriptionIndex ) ; } return _subscriptionIndex ; }
Retrieve the subscription index for this destination .
39,296
private boolean checkDurableSubStillValid ( DurableSubscriptionItemStream durableSub ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkDurableSubStillValid" , durableSub ) ; boolean valid = false ; ConsumerDispatcherState cdState = durab...
Ensure that if the durable sub was made through an alias then the alias still exists
39,297
public MessageItem retrieveMessageFromItemStream ( long msgStoreID ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "retrieveMessageFromItemStream" , new Long ( msgStoreID ) ) ; MessageItem msgItem = null ; try { msgItem = ( MessageItem ) _pu...
Retrieve the message from the non - persistent ItemStream
39,298
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) public static Object getRegisterableMBean ( ServiceReference < ? > serviceReference , Object mBean ) throws NotCompliantMBeanException { if ( mBean instanceof DynamicMBean ) { return mBean ; } else if ( mBean instanceof ConfigurationAdminMBean ) { Object readOnlyMBean...
Register an object as a managed bean . Wrapper the object if necessary .
39,299
private void traceJndiBegin ( String methodname , Object ... objs ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { String providerURL = "UNKNOWN" ; try { providerURL = ( String ) getEnvironment ( ) . get ( Context . PROVIDER_URL ) ; } catch ( NamingException ne ) { } Tr . debug ( tc , JN...
Trace a message with JNDI_CALL that includes the parameters sent to the JNDI call .