idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
162,900
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 .
162,901
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 .
162,902
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
162,903
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 .
162,904
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 .
162,905
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 .
162,906
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 .
162,907
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 .
162,908
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 .
162,909
public boolean isPostback ( FacesContext context ) { return context . getExternalContext ( ) . getRequestParameterMap ( ) . containsKey ( ResponseStateManager . VIEW_STATE_PARAM ) ; }
Checks if the current request is a postback
162,910
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
162,911
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 .
162,912
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
162,913
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 .
162,914
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 .
162,915
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 .
162,916
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 .
162,917
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 .
162,918
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 .
162,919
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
162,920
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
162,921
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
162,922
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
162,923
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
162,924
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
162,925
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
162,926
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
162,927
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
162,928
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
162,929
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
162,930
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
162,931
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
162,932
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 .
162,933
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
162,934
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 .
162,935
void addSchema ( JMFSchema schema , Transaction tran ) throws MessageStoreException { addItem ( new SchemaStoreItem ( schema ) , tran ) ; }
Add a new schema defintion to the store
162,936
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
162,937
void addToIndex ( SchemaStoreItem item ) throws NotInMessageStore { schemaIndex . put ( item . getSchema ( ) . getLongID ( ) , Long . valueOf ( item . getID ( ) ) ) ; item . setStream ( this ) ; }
Add an item to our index
162,938
void removeFromIndex ( SchemaStoreItem item ) { schemaIndex . remove ( item . getSchema ( ) . getLongID ( ) ) ; item . setStream ( null ) ; }
Remove an item from our index
162,939
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 .
162,940
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 .
162,941
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 .
162,942
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
162,943
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
162,944
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
162,945
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 .
162,946
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 .
162,947
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...
162,948
public static String getWSDLLocation ( ClassInfo classInfo , String seiClassName , InfoStore infoStore ) { return getStringAttributeFromAnnotation ( classInfo , seiClassName , infoStore , JaxWsConstants . WSDLLOCATION_ATTRIBUTE , "" , "" ) ; }
First get the WSDL Location .
162,949
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
162,950
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 .
162,951
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
162,952
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 .
162,953
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
162,954
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
162,955
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 .
162,956
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 .
162,957
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 .
162,958
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 .
162,959
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 .
162,960
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 .
162,961
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 .
162,962
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
162,963
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 .
162,964
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 .
162,965
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 .
162,966
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 .
162,967
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 .
162,968
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 .
162,969
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
162,970
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
162,971
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
162,972
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 .
162,973
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 .
162,974
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 .
162,975
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 .
162,976
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 .
162,977
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
162,978
public long getSocketChannelHandle ( SocketChannel socketChannel ) { StartPrivilegedThread privThread = new StartPrivilegedThread ( socketChannel ) ; return AccessController . doPrivileged ( privThread ) ; }
Get the socket channel handle .
162,979
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 .
162,980
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 .
162,981
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
162,982
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 .
162,983
public ConsumerDispatcher createSubscriptionConsumerDispatcher ( ConsumerDispatcherState subState ) throws SIDiscriminatorSyntaxException , SISelectorSyntaxException , SIResourceException , SISelectorSyntaxException , SIDiscriminatorSyntaxException , SINonDurableSubscriptionMismatchException { if ( TraceComponent . isA...
however nobody is calling this thru AbstractAliasDestinationHandler in Liberty .
162,984
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 .
162,985
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 .
162,986
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
162,987
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
162,988
@ 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 .
162,989
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 .
162,990
private void traceJndiReturn ( String methodname , long duration , Object ... objs ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , JNDI_CALL + methodname + " [" + duration + " ms]" , objs ) ; } }
Trace a message with JNDI_CALL that includes the returned objects from that JNDI call .
162,991
private void traceJndiThrow ( String methodname , long duration , NamingException ne ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , JNDI_CALL + methodname + " [" + duration + " ms] " + ne . getMessage ( ) , ne ) ; } }
Trace a message with JNDI_CALL that includes the resulting exception from that JNDI call .
162,992
public void encodeChildren ( FacesContext context , UIComponent component ) throws IOException { if ( context == null ) { throw new NullPointerException ( "context" ) ; } if ( component == null ) { throw new NullPointerException ( "component" ) ; } if ( component . getChildCount ( ) > 0 ) { for ( int i = 0 , childCount...
Render all children if there are any .
162,993
void registerCallback ( AsynchConsumerCallback callback ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "registerCallback" , callback ) ; asynchConsumerCallback = callback ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc ,...
Register the AsynchConsumerCallback . If callback is null then this is the equivalent of deregister i . e . callbackRegistered is set to false .
162,994
void processMsgs ( LockedMessageEnumeration msgEnumeration , ConsumerSession consumerSession ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processMsgs" , new Object [ ] { msgEnumeration , consumerSession } ) ; asynchConsumerRunning = true ; try { if ( TraceComponen...
Calls the registered AsynchConsumerCallback with the given message enumeration .
162,995
boolean isAsynchConsumerRunning ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "isAsynchConsumerRunning" ) ; SibTr . exit ( tc , "isAsynchConsumerRunning" , new Boolean ( asynchConsumerRunning ) ) ; } return asynchConsumerRunning ; }
Is the callback currently running?
162,996
private long sendMessage ( SIBusMessage msg ) throws OperationFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "sendMessage" , msg ) ; long retValue = 0 ; final HandshakeProperties props = getConversation ( ) . getHandshakeProperties ( ) ; if ( pro...
Helper function . Sends an SIBusMessage to the client taking care of the myriad pesky exceptions which may get thrown . If something does go wrong then the caller is notified by a single OperationFailedException . By this point the appropriate error flow has also been transmitted to the client .
162,997
public void reset ( ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this ...
Called in response to a client requesting we reset the browse cursor for a particular broser session .
162,998
public void flush ( int requestNumber ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "flush" , "" + requestNumber ) ; BrowserSession browserSession = mainConsumer . getBrowserSession ( ) ; SIBusMessage msg = null ; try { msg = getNextMessage ( browserSession ,...
Invoked when the client sends a flush consumer . Since browser sessions do not have an activeConsumer method this translates to attempting a single browse next and sending back the result .
162,999
public void close ( int requestNumber ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "close" , "" + requestNumber ) ; BrowserSession browserSession = mainConsumer . getBrowserSession ( ) ; try { browserSession . close ( ) ; } catch ( SIException e ) { if ( ! (...
Closes the browser .