idx
int64
0
41.2k
question
stringlengths
73
5.81k
target
stringlengths
5
918
25,600
public void dumpRaw ( FormattedWriter fw ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dumpRaw" ) ; try { xmlRequestWriteRawDataOnFile ( fw ) ; } catch ( IOException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) SibTr . eve...
Dump the message store persistence diagnostic information .
25,601
public void dumpAll ( FormattedWriter fw ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dumpAll" ) ; try { xmlRequestWriteOnFile ( fw ) ; xmlWriteRawOn ( fw , true ) ; fw . flush ( ) ; } catch ( IOException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) ...
Dump message store dynamic diagnostic information and the the message store persistence diagnostic information including information about the Items themselves .
25,602
public void engineReloaded ( Object messagingEngine ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "engineReloaded" ) ; initialize ( ( JsMessagingEngine ) messagingEngine , true ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Sib...
Notification that the configuration of the engine has changed .
25,603
public String [ ] listPreparedTransactions ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getPreparedTransactions" ) ; String [ ] col = null ; if ( _manager != null ) { Xid [ ] xids = null ; xids = _manager . listRemoteInDoubts ( ) ; if ( xids != null ) { c...
Obtain a list of XIDs which are in - doubt . Part of MBean interface for resolving in - doubt transactions .
25,604
private void initialize ( JsMessagingEngine engineConfiguration , boolean isReload ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "initialize" , new Object [ ] { "isReload=" + isReload , "Config=" + engineConfiguration } ) ; _messagingEngine = engineConfigurat...
Initalizes the message store using the given JetStream configuration . Copies the relevant pieces of data into a MessageStoreConfiguration object which is then used to initialize the message store . Will only initialize PMI if this is not a reload .
25,605
public final void registerLink ( final AbstractItemLink newLink , final AbstractItem item ) { register ( newLink ) ; _setMembership ( newLink , item ) ; }
register new Item link .
25,606
public final void initialize ( JsRecoveryMessagingEngine recoveryME , String mode ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "initialize" , new Object [ ] { recoveryME , mode } ) ; this . _messagingEngine = recoveryME ; if ( TraceComponent . isAnyTracingEn...
lohith liberty change these are currently dummy as MessageStore is not used as a component by Admin
25,607
private < A extends Annotation , AS extends Annotation > InjectionProcessor < A , AS > getProcessor ( int processorIndex , InjectionProcessorProvider < A , AS > provider ) throws InjectionException { if ( ivProcessors == null ) { ivProcessors = new InjectionProcessor < ? , ? > [ ivProviders . size ( ) ] ; } if ( ivProc...
Get or create a processor .
25,608
public void processXML ( ) throws InjectionException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processXML" ) ; for ( int processorIndex = 0 ; processorIndex < ivProviders . size ( ) ; processorIndex ++ ) { InjectionProcessorProv...
Process XML for all processors as needed .
25,609
private boolean isProcessXMLNeeded ( InjectionProcessorProvider < ? , ? > provider ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "isProcessXMLNeeded: " + provider ) ; List < Class < ? extends JNDIEnvironmentRef > > refClasses = pro...
Returns true if the specified processor must be created to process XML .
25,610
public void processAnnotations ( Class < ? > classHierarchy ) throws InjectionException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processAnnotations: " + classHierarchy ) ; for ( Class < ? > klass = classHierarchy ; klass != nul...
Process all class field and method annotations for the class hierarchy .
25,611
private < A extends Annotation , AS extends Annotation > void processClassAnnotations ( int processorIndex , InjectionProcessorProvider < A , AS > provider , Class < ? > klass ) throws InjectionException { Class < A > annClass = provider . getAnnotationClass ( ) ; if ( annClass != null ) { A ann = klass . getAnnotation...
Process class annotations with the specified processor .
25,612
private Field [ ] getAllDeclaredFields ( Class < ? > klass , Class < ? > classHierarchy ) { try { return klass . getDeclaredFields ( ) ; } catch ( Throwable ex ) { FFDCFilter . processException ( ex , CLASS_NAME + ".getAllDeclaredFields" , "249" , new Object [ ] { classHierarchy , klass } ) ; if ( classHierarchy != kla...
Return the declared fields for the specified class in the class hierarchy .
25,613
private static Method [ ] getAllDeclaredMethods ( Class < ? > classHierarchy ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; Collection < MethodMap . MethodInfo > methodInfos = MethodMap . getAllDeclaredMethods ( classHierarchy ) ; Method [ ] methods = new Method [ methodInfos . size ( ) ] ; in...
Return the non - overridden declared methods for the specified class .
25,614
private < A extends Annotation > void processMemberAnnotations ( int processorIndex , InjectionProcessorProvider < A , ? > provider , Member [ ] members , AnnotatedElement [ ] annotatedMembers ) throws InjectionException { Class < A > annClass = provider . getAnnotationClass ( ) ; if ( annClass != null ) { for ( int i ...
Process annotations on fields and methods .
25,615
public void processBindings ( ) throws InjectionException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processBindings" ) ; if ( ivProcessors != null ) { for ( InjectionProcessor < ? , ? > processor : ivProcessors ) { if ( processo...
Process injection bindings for all created processors .
25,616
public static IPlatformAdapter getInstance ( ) { if ( svInstance != null ) { return svInstance ; } synchronized ( PlatformAdapterAccessor . class ) { if ( svInstance != null ) { return svInstance ; } String adapterClassName = null ; try { adapterClassName = AccessController . doPrivileged ( new PrivilegedExceptionActio...
Returns the JVM - specific implementation of IPlatformAdapter . This implementation will be able to provide non - standard JVM private API calls in a standard way by using the IPlatformAdapter interface .
25,617
public Object injectAndPostConstruct ( Class < ? > Klass ) throws InjectionProviderException { Object instance = null ; ManagedObject mo = ( ManagedObject ) ( ( WASInjectionProvider ) getInjectionProvider ( ) ) . inject ( Klass , true , _externalContext ) ; instance = mo . getObject ( ) ; if ( instance instanceof Faces...
Made public for use by ClassUtils .
25,618
public void injectAndPostConstruct ( Object instance ) throws InjectionProviderException { if ( instance instanceof FacesWrapper ) { Object innerInstance = ( ( FacesWrapper ) instance ) . getWrapped ( ) ; if ( innerInstance != null ) { injectAndPostConstruct ( innerInstance ) ; } } ( ( WASInjectionProvider ) getInjecti...
when a specific constructor is used . Made public for use by ClassUtils .
25,619
String getDefaultSourcClassForSystemEvent ( Class systemEventClass ) { Constructor [ ] constructors = systemEventClass . getConstructors ( ) ; for ( Constructor constr : constructors ) { Class [ ] parms = constr . getParameterTypes ( ) ; if ( parms == null || parms . length != 1 ) { continue ; } return parms [ 0 ] . ge...
A mapper for the handful of system listener defaults since every default mapper has the source type embedded in the constructor we can rely on introspection for the default mapping
25,620
public void becomeCloneOf ( ManagedObject clone ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "becomeCloneOf" , "Clone=" + clone ) ; PersistableMetaData theOther = ( PersistableMetaData ) clone ; _uniqueID = theOther . _uniqueID ; _streamID = theOther . _stre...
Replace the state of this object with the same object in some other state . Used to restore the before image if a transaction rolls back .
25,621
@ FFDCIgnore ( NoSuchMethodException . class ) private static boolean isRRSTransactional ( Object activationSpec ) { try { return ( Boolean ) activationSpec . getClass ( ) . getMethod ( "getRRSTransactional" ) . invoke ( activationSpec ) ; } catch ( NoSuchMethodException x ) { return false ; } catch ( Exception x ) { r...
Determines whether or not an activation spec is RRS transactional .
25,622
public void deactivateEndpoint ( Object activationSpec , WSMessageEndpointFactory messageEndpointFactory ) throws ResourceException { try { if ( activationSpec instanceof ActivationSpec ) { if ( endpointActivationParams . remove ( new ActivationParams ( activationSpec , messageEndpointFactory ) ) ) endpointDeactivation...
Deactivate the endpoint corresponding to the specified activation spec instance .
25,623
void endpointDeactivation ( ActivationSpec activationSpec , WSMessageEndpointFactory messageEndpointFactory ) { ClassLoader previousClassLoader = jcasu . beginContextClassLoader ( raClassLoader ) ; try { BootstrapContextImpl bootstrapContext = bootstrapContextRef . getServiceWithException ( ) ; bootstrapContext . resou...
Utility method to perform endpoint deactivation .
25,624
private static int [ ] getFullJCAVersion ( BootstrapContextImpl bootstrapContext ) { int [ ] fullVersionIntArray = { 1 , 5 } ; ResourceAdapterMetaData raMetadata = bootstrapContext . getResourceAdapterMetaData ( ) ; if ( raMetadata != null ) { ConnectorModuleMetaData connectorMetadata = ( ConnectorModuleMetaData ) raMe...
Returns the JCA specification major and minor version with which the resource adapter declares support .
25,625
public final int registerRRSXAResourceInfo ( String actSpecId ) { RRSXAResourceFactory xaFactory = rrsXAResFactorySvcRef . getService ( ) ; if ( xaFactory == null ) { String formattedMessage = Utils . getMessage ( "J2CA8807.native.rrs.not.available" , new Object [ 0 ] ) ; throw new IllegalStateException ( formattedMess...
Registers RRS XA resource information with the transaction manager . This is used for inbound .
25,626
protected void unsetJcaRuntimeVersion ( JCARuntimeVersion ref ) { Version toUnset = ref . getVersion ( ) ; if ( runtimeVersion . getVersion ( ) . compareTo ( toUnset ) == 0 ) runtimeVersion = DEFAULT_VERSION ; }
Declarative Services method for unsetting the JCA feature version
25,627
public boolean isDeliveryTransacted ( Method method ) throws NoSuchMethodException { BeanMetaData bmd = super . beanMetaData ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "MEF.isDeliveryTransacted called for " + bmd . enterpriseBeanName + "." + method . getName ( ) ) ;...
This is used to find out whether message deliveries to a message endpoint will be transacted or not . The message delivery preferences must not change during the lifetime of a message endpoint . This information is only a hint and may be useful to perform optimizations on message delivery .
25,628
private EJBMethodInfoImpl getEJBMethodInfo ( Method method ) { String targetSignature = MethodAttribUtils . methodSignature ( method ) ; EJBMethodInfoImpl minfo = null ; int n = ivMdbMethods . length ; for ( int i = 0 ; i < n ; ++ i ) { minfo = ivMdbMethods [ i ] ; if ( targetSignature . equals ( minfo . getMethodSigna...
Get the EJBMethodInfo object associated with a specified Method object .
25,629
public void initialize ( EJSContainer ejbContainer , BeanId id , BeanMetaData bmd ) throws RemoteException { super . initialize ( ejbContainer , id , bmd ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "MEF Initializing MessageEndpointFactory for enterprise class " + b...
Extends EJSHome . initialize method with processing specific to a MessageEndpointFactory for a specified MDB .
25,630
public void returnInvocationHandler ( MessageEndpointBase endpoint , boolean reuse ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "MEF.returnInvocationHandler" ) ; if ( ivInvocationHandlerPool != null ) { if ( reuse ) { MessageEndpointBase . reset ( endpoint ) ; ivInvoc...
LI2110 . 56 - rewrote method to use new reuse parameter .
25,631
public void setRAKey ( String raKey ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "MEF.setRAKey for enterprise class " + beanMetaData . enterpriseBeanName ) ; } ivRAKey = raKey ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit (...
Set the Resource Adapter key that uniquely identifies the RA . This key is useful as a unique identifier in error messages .
25,632
protected ObjectManagerByteArrayOutputStream getSerializedBytes ( ) throws ObjectManagerException { final String methodName = "getSerializedBytes" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName ) ; ObjectManagerByteArrayOutputStream byteArrayOutputStr...
Get the serialized bytes representing this ManagedObject these will be given to the logger and potentially to the ObjectStore .
25,633
protected long getSerializedBytesLength ( ) throws ObjectManagerException { final String methodName = "getSerializedBytesLength" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName ) ; class DummyOutputStream extends java . io . OutputStream { public void ...
Get the length of the serialized bytes representing this ManagedObject .
25,634
public void preAdd ( Transaction transaction ) throws ObjectManagerException { final String methodName = "preAdd" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { transaction } ) ; testState ( nextStateForAdd ) ; lock ( transaction . ...
Driven when the transaction is getting ready to add this ManagedObject to an object store . The after image has not been captured so the ManagedObject can still be changed .
25,635
public void preReplace ( Transaction transaction ) throws ObjectManagerException { final String methodName = "preReplace" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { transaction } ) ; if ( transactionLock . getLockingTransaction ...
Driven when the transaction is getting ready to replace a ManagedObject in an object store The object must have previously been locked . The after image has not been captured so the ManagedObject can still be changed .
25,636
public void postReplace ( Transaction transaction , boolean logged ) throws ObjectManagerException { final String methodName = "postReplace" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { transaction , new Boolean ( logged ) } ) ; i...
Driven when the object is replaced in an object store within a transaction . The object must have previously been locked .
25,637
public void preOptimisticReplace ( Transaction transaction ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "preOptimisticReplace" , new Object [ ] { transaction } ) ; testState ( nextStateForOptimisticReplace ) ; updateSequence ++ ...
Driven when the object is optimistically replaced in an object store within a transaction . This differs from a standard replace in that the ManagedObject need not be locked . There is no before immage taken and it is up to the user of the optimisticReplace to perform any compensating action should the transaction back...
25,638
public void postOptimisticReplace ( Transaction transaction , boolean logged ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "postOptimisticReplace" , new Object [ ] { transaction , new Boolean ( logged ) } ) ; if ( logged ) { setS...
Driven when the object is optimistically replaced in an object store within a transaction .
25,639
public void prePrepare ( Transaction transaction ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "prePrepare" , new Object [ ] { transaction } ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ...
Driven just before the object changes to prepared state within a transaction if requested . This is only redriven at recovery time if the the ManagedObject explicitly re - requests this at recovery time . Any ManagedObject requesting this callback should override this method .
25,640
protected void commit ( Transaction transaction , ObjectManagerByteArrayOutputStream serializedBytes , long savedSequenceNumber , boolean requiresCurrentCheckpoint ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "commit" , new Obje...
Driven when the object changes to commited state within a transaction . Cannot be overriden by a subclass of ManagedObject .
25,641
protected void backout ( Transaction transaction , long savedSequenceNumber , boolean requiresCurrentCheckpoint ) throws ObjectManagerException { final String methodName = "backout" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { tra...
Driven when the object is backed out within a transaction .
25,642
protected void optimisticReplaceBackout ( Transaction transaction , ObjectManagerByteArrayOutputStream serializedBytes , long savedSequenceNumber , boolean requiresCurrentCheckpoint ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "...
Driven when the ManageObject is backed out after an optimistic replace within a transaction .
25,643
protected void checkpoint ( InternalTransaction internalTransaction , ObjectManagerByteArrayOutputStream serializedBytes , long savedSequenceNumber ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "checkpoint" , new Object [ ] { int...
Called by the Transaction after the ObjectManager when it has written a checkpointStartLogRecord . The ManagedObject can assume that all log records up to and including logSequenceNumber are now safely hardened to disk . On this assumption we can write after images to the ObjectStores .
25,644
private void setState ( int [ ] nextState ) throws StateErrorException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "setState" , new Object [ ] { nextState , new Integer ( state ) , stateNames [ state ] } ) ; synchronized ( stateLock ) { previousState = state ...
Makes a state transition .
25,645
private void readObject ( java . io . ObjectInputStream objectInputStream ) throws java . io . IOException , java . lang . ClassNotFoundException { final String methodName = "readObject" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] ...
Customized deserialization . Notice that subclasses do not have to call this method in their super class because the deserialisation of the subclass need not concern itself with restoring the state of the super class .
25,646
public static Link parseMessageDestinationLink ( String origin , String link ) { return parse ( origin , link , false ) ; }
Parse a message - destination - link
25,647
public static Link parse ( String origin , String link , boolean allowModuleName ) { String originMod = origin ; int index = link . indexOf ( '#' ) ; if ( index == - 1 ) { if ( allowModuleName ) { index = link . lastIndexOf ( '/' ) ; if ( index == - 1 ) { return new Link ( null , null , link ) ; } return new Link ( nul...
Parse a link from an ejb - link or a message - destination - link
25,648
private Object mergeReferenceAttributes ( String attributeName , EvaluationContext context , ExtendedAttributeDefinition attributeDef , ConfigElement config , Object rawValues ) { Object rawValue ; String [ ] referenceAttributes = getReferenceAttributes ( attributeName ) ; context . addProcessed ( referenceAttributes [...
Merge references and nested elements prior to evaluation .
25,649
private Object getUnconfiguredAttributeValue ( EvaluationContext context , ExtendedAttributeDefinition attributeDef ) throws ConfigEvaluatorException { Object rawValue = null ; rawValue = variableEvaluator . lookupVariableExtension ( context , attributeDef ) ; if ( rawValue == null ) { String [ ] defaultValues = attrib...
Try to determine a value from variable or defaults for the AD .
25,650
private Object convertObjectToSingleValue ( Object rawValue , ExtendedAttributeDefinition attrDef , EvaluationContext context , int index , boolean ignoreWarnings ) throws ConfigEvaluatorException { if ( rawValue instanceof String ) { return convertStringToSingleValue ( ( String ) rawValue , attrDef , context , ignoreW...
Process and evaluate a raw value .
25,651
private String resolveStringValue ( Object rawValue , ExtendedAttributeDefinition attrDef , EvaluationContext context , boolean ignoreWarnings ) throws ConfigEvaluatorException { if ( rawValue instanceof String ) { return processString ( ( String ) rawValue , attrDef , context , ignoreWarnings ) ; } else if ( rawValue ...
Resolve a raw value to a String and process it so that it can be evaluated .
25,652
private Object convertStringToSingleValue ( String rawValue , ExtendedAttributeDefinition attrDef , EvaluationContext context , boolean ignoreWarnings ) throws ConfigEvaluatorException { String value = processString ( rawValue , attrDef , context , ignoreWarnings ) ; return evaluateString ( value , attrDef , context ) ...
Process and evaluate a raw String value .
25,653
private Object evaluateString ( String strVal , ExtendedAttributeDefinition attrDef , EvaluationContext context ) throws ConfigEvaluatorException { if ( attrDef == null ) { return strVal ; } int type = attrDef . getType ( ) ; if ( type == AttributeDefinition . BOOLEAN ) { return Boolean . valueOf ( strVal ) ; } else if...
Evaluate a string to a value of the target attribute type .
25,654
private String [ ] convertListToStringArray ( List < ? > rawValues , ExtendedAttributeDefinition attrDef , EvaluationContext context , boolean ignoreWarnings ) throws ConfigEvaluatorException { @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) Collection < String > collection = ( Collection ) convertListToVector ( ra...
Converts a list of raw configuration values to a string array .
25,655
private Object convertConfigElementToSingleValue ( ConfigElement childElement , ExtendedAttributeDefinition attrDef , EvaluationContext context , int index , boolean ignoreWarnings ) throws ConfigEvaluatorException { if ( attrDef != null && attrDef . getType ( ) != MetaTypeFactory . PID_TYPE ) { return convertStringToS...
Process a raw ConfigElement value and evaluate it .
25,656
private String evaluateConfigElement ( ConfigElement childElement , final ExtendedAttributeDefinition parentAttribute , EvaluationContext context , int index ) throws ConfigEvaluatorException { RegistryEntry childRegistryEntry = null ; if ( parentAttribute != null && parentAttribute . getType ( ) == MetaTypeFactory . P...
Creates a NestedInfo object containing the service pid config element and registry entry for a nested config element . If this service pid has not been seen yet in this context the pid value will be returned . Otherwise the method returns null .
25,657
static void rcvCreateTempDestination ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvCreateTempDestination" , new Object [ ] { requ...
Creates a temporary destination for use for this connection only .
25,658
public static Expectations getJwtPrincipalExpectations ( String testAction , String user , String issuer ) { Expectations expectations = new Expectations ( ) ; expectations . addExpectation ( new JwtExpectation ( testAction , "token_type" , JwtFatConstants . TOKEN_TYPE_BEARER ) ) ; expectations . addExpectation ( new J...
Sets expectations that will check various claims within the subject JWT .
25,659
public void visitInnerClass ( String name , String outerName , String innerName , int access ) { ensureAnnotated ( ) ; if ( name . equals ( getClassInternalName ( ) ) ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( outerName ) ; sb . append ( "$" ) ; sb . append ( innerName ) ; isInnerClass = name . equals...
Visit the information about an inner class . We use this to determine whether or not the we re visiting an inner class . This callback is also used to ensure that appropriate class level annotations exist .
25,660
protected void ensureTraceObjectFieldAnnotated ( ) { if ( traceObjectFieldAnnotationVisitor == null && getTraceObjectFieldType ( ) != null ) { visitAnnotation ( TRACE_OBJECT_FIELD_TYPE . getDescriptor ( ) , true ) ; TraceObjectFieldAnnotationVisitor av = traceObjectFieldAnnotationVisitor ; traceObjectFieldAnnotationVis...
Verify that the TraceObjectField annotation exists on the instrumented class . If one does not exist add it .
25,661
public void visitEnd ( ) { if ( isInstrumentableClass ( ) ) { if ( isTraceObjectFieldDefinitionRequired ( ) ) { int access = ( Opcodes . ACC_PRIVATE | Opcodes . ACC_FINAL | Opcodes . ACC_STATIC | Opcodes . ACC_SYNTHETIC ) ; String name = getTraceObjectFieldName ( ) ; String desc = getTraceObjectFieldType ( ) . getDescr...
Visit the end of the class . All of the methods and fieldInfos defined in the class have been visited at this point . If we didn t encounter a trace state field or static initializer we ll add them now .
25,662
public TraceOptionsData getTraceOptionsData ( ) { if ( classInfo != null ) { return classInfo . getTraceOptionsData ( ) ; } if ( optionsAnnotationVisitor != null ) { return optionsAnnotationVisitor . getTraceOptionsData ( ) ; } return null ; }
Get the effective trace options for this class .
25,663
public void notificationCreated ( RuntimeUpdateManager updateManager , RuntimeUpdateNotification notification ) { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "notificationCreated" , notification . getName ( ) ) ; if ( configChecked ) ...
Perform validation checking on the sessionCache feature s configuration .
25,664
private boolean isSessionCacheBellConfigured ( ) throws IOException , InvalidSyntaxException { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; boolean sessionCacheBellFound = false ; String bellConfigFilter = FilterUtils . createPropertyFilter ( "service.factoryPid" , "com.ibm.ws.classloading.bell" ) ;...
Check if the server configuration contains a BELL that provides the javax . cache . spi . CachingProvider service .
25,665
protected void activate ( ComponentContext cc ) { Bundle usingBundle = cc . getUsingBundle ( ) ; userContext = usingBundle . getBundleContext ( ) ; }
called by DS to activate this component
25,666
public static HttpURLConnection getHttpConnectionWithAnyResponseCode ( LibertyServer server , String path ) throws IOException { int timeout = DEFAULT_TIMEOUT ; URL url = createURL ( server , path ) ; HttpURLConnection con = getHttpConnection ( url , timeout , HTTPRequestMethod . GET ) ; Log . info ( SecurityFatHttpUti...
This method creates a connection to a webpage and then returns the connection it doesn t care what the response code is .
25,667
@ SuppressWarnings ( "unchecked" ) public List getAllOutboundConversations ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getAllOutboundConversations" ) ; final List < Conversation > result = new ArrayList < Conversation > ( ) ; final HashMap < EndPointDesc...
Gets a list of all the active conversations known about by the outbound connection tracker .
25,668
public void closeConversation ( OutboundConnection connectionHostingConversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "closeConversation" , connectionHostingConversation ) ; boolean closeOnThisThread = false ; synchronized ( closeList ) { closeOnThis...
Closes a conversation for the specified connection . It is unnecessary to require a reference to the conversation being closed as by the time this method is invoked the conversation has been marked closed and all that remains is the book keeping . This method notifies the appropriate connection group that a conversatio...
25,669
public Conversation connect ( final ConversationReceiveListener receiveListener , final Conversation . ConversationType conversationType , final ConversationUsageType usageType ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "connect"...
begin F244595 D259087
25,670
public Conversation cloneConversation ( OutboundConnection connection , ConversationReceiveListener conversationReceiveListener ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "cloneConversation" , new Object [ ] { connection , conver...
Clones a conversation . The method locates the appropriate connection group and invokes it s clone method .
25,671
public void purgeFromInvalidateImpl ( OutboundConnection connection , boolean notifyPeer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "purgeFromInvalidateImpl" , new Object [ ] { connection , "" + notifyPeer } ) ; connection . getConnectionData ( ) . getConn...
Purges a conneciton from the tracker . This is invoked when an error is detected on a connection and we do not want any further conversations to attempt to use it .
25,672
public void purgeClosedConnection ( OutboundConnection connection ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "purgeClosedConnection" , connection ) ; connection . getConnectionData ( ) . getConnectionDataGroup ( ) . purgeClosedConnection ( connection ) ; i...
Purges a connection from the tracker that has been closed by the remote peer so can no longer be used .
25,673
public static JWTPayload getPayload ( String tokenString ) { JWTPayload payload = null ; String [ ] jwtParts = splitTokenString ( tokenString ) ; if ( jwtParts . length >= 2 ) { WSJsonToken token = deserialize ( jwtParts , tokenString ) ; payload = new JWTPayload ( ) ; fromJsonToken ( token , payload ) ; } return paylo...
Extract payload from token without validating .
25,674
protected static String getElement ( JWTPayload payload , String element ) { String output = null ; if ( payload != null ) { Object outObj = payload . get ( element ) ; if ( outObj instanceof String ) { output = ( String ) outObj ; } else if ( outObj instanceof List ) { if ( ( ( List < String > ) outObj ) . size ( ) ==...
Get Aud element .
25,675
public String getExceptionType ( ) { String exceptionType = null ; Throwable rootCause = this ; do { Throwable temp = ( ( ServletException ) rootCause ) . getRootCause ( ) ; if ( temp != null ) { rootCause = temp ; } else { break ; } } while ( rootCause instanceof ServletException ) ; exceptionType = rootCause . getCla...
Returns the fully - qualified class name of the exception .
25,676
public Class getExceptionClass ( ) { Class exceptionClass = null ; Throwable rootCause = this ; do { Throwable temp = ( ( ServletException ) rootCause ) . getRootCause ( ) ; if ( temp != null ) { rootCause = temp ; } else { break ; } } while ( rootCause instanceof ServletException ) ; exceptionClass = rootCause . getCl...
Returns the java . lang . Class of the root cause .
25,677
private boolean isApplicationError ( Throwable rootEx , String pkgRoot ) { if ( rootEx != null ) { StackTraceElement [ ] stackTrace = rootEx . getStackTrace ( ) ; if ( stackTrace != null && stackTrace . length > 0 ) { StackTraceElement rootThrower = stackTrace [ 0 ] ; String className = rootThrower . getClassName ( ) ;...
This method determines if the error is initiated by an application or not .
25,678
public void setLocalizationInfo ( String resourceBundleName , String resourceKey , Object [ ] formatArguments ) { exceptionInfo . setLocalizationInfo ( resourceBundleName , resourceKey , formatArguments ) ; }
Set the values to be used for finding the correct translated version of the message and formatting it .
25,679
public boolean isStarted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "isStarted" ) ; SibTr . exit ( tc , "isStarted" , new Boolean ( _started ) ) ; } return _started ; }
Indicates whether the MP has started or not .
25,680
protected SICoreConnection createConnection ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createConnection" ) ; SICoreConnection newConn = new ConnectionImpl ( this , null , null ) ; _connectionsLockManager . lock ( ) ; try { checkStart...
Connection locks are obtained on the connection lock manager .
25,681
protected void removeConnection ( ConnectionImpl connection ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeConnection" , connection ) ; synchronized ( _connections ) { _connections . remove ( connection ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc...
Removes a connection from the list of connections
25,682
void addConsumer ( ConsumerSessionImpl consumer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addConsumer" , consumer ) ; _consumerList . add ( consumer ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "addConsumer"...
Adds a consumer to the message procoessor s list of consumers .
25,683
ConsumerSessionImpl getConsumer ( long id ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getConsumer" , new Long ( id ) ) ; ConsumerSessionImpl consumer = _consumerList . get ( id ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr ....
Gets a consumer from the list of consumers on this messaging engine
25,684
void removeConsumer ( ConsumerSessionImpl consumer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeConsumer" , consumer ) ; _consumerList . remove ( consumer ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "rem...
Removes a consumer from the list of all consumers on this messaging engine .
25,685
public String getMessagingEngineBus ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMessagingEngineBus" ) ; String returnString = _engine . getBusName ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getMessag...
Gets the bus the messaging engine belongs to .
25,686
public JsBus getBus ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getBus" ) ; JsBus jsBus = ( JsBus ) _engine . getBus ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getBus" , jsBus ) ; return jsBus ; }
Gets a reference to the actual bus which this messaging engine belongs to .
25,687
public MultiMEProxyHandler getProxyHandler ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getProxyHandler" ) ; SibTr . exit ( tc , "getProxyHandler" , _multiMEProxyHandler ) ; } return _multiMEProxyHandler ; }
getProxyHandler returns the reference to the MultiMEProxyHandler for handling with proxy requests
25,688
private void checkStarted ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkStarted" ) ; synchronized ( _mpStartStopLock ) { if ( ! isStarted ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . ex...
Checks that the ME is started
25,689
public void initialize ( JsMessagingEngine engine ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initialize" , engine ) ; this . _engine = engine ; this . _engine . setMEUUID ( new SIBUuid8 ( ) ) ; _mpio = new MPIO ( this ) ; _meFactories = new HashMap < String , Ob...
Initialises the MessageProcessor class . Called by the JsEngineComponent . initialize
25,690
public void stop ( int mode ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stop" , new Integer ( mode ) ) ; try { if ( mode == JsConstants . ME_STOP_COMMS_CONNECTIONS ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc ,...
Stops the message processor
25,691
private void coldStart ( ) throws MessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "coldStart" ) ; createPersistentStore ( ) ; createDestinationManager ( ) ; _proxyHandlerDestAddr = SIMPUtils . createJsSystemDestinationAddress ( SIMPConstants . PROX...
Specific cold start procedure for the Message Processor .
25,692
private void configureNeighbours ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "configureNeighbours" ) ; try { JsAdminService service = JsMainAdminComponentImpl . getJsAdminService ( ) ; _messagingEnginesOnBus = new HashSet < SIBUuid8 > ( ) ; Set mes = null ; if (...
Loads the Neighbours from Admin
25,693
private void createProxyHandler ( ) throws MessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createProxyHandler" ) ; _multiMEProxyHandler = new MultiMEProxyHandler ( this , _txManager ) ; _persistentStore . addItemStream ( _multiMEProxyHandler , _tx...
In a cold start ME Environment the proxy handler needs to be created .
25,694
private void createDestinationManager ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createDestinationManager" ) ; _destinationManager = new DestinationManager ( this , _persistentStore ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) )...
Create this message processor s destination manager .
25,695
private void createDynamicConfigManager ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createDynamicConfigManager" ) ; _dynamicConfigManager = new DynamicConfigManager ( this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . ex...
Create this message processor s dynamic config manager .
25,696
private void createPersistentStore ( ) throws MessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createPersistentStore" ) ; _persistentStore = new MessageProcessorStore ( new SIBUuid8 ( _engine . getUuid ( ) ) , _msgStore , _txManager ) ; if ( TraceC...
Create this message processor s persistent store .
25,697
public DestinationDefinition createSystemDefaultExceptionDestination ( ) throws SIResourceException , SIMPDestinationAlreadyExistsException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createSystemDefaultExceptionDestination" ) ; DestinationDefinition defaultExcepti...
Method to create the System default exception destination . There will be a default exception destination per Messaging Engine .
25,698
public void startNewThread ( Runnable runnable ) throws InterruptedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "startNewThread" ) ; if ( _consumerThreadPool == null ) { createConsumerThreadPool ( ) ; } try { _consumerThreadPool . execute ( runnable , Threa...
Starts a new thread from the MP Consumers Thread Pool Only consumer threads should use this thread pool .
25,699
public void startNewSystemThread ( Runnable runnable ) throws InterruptedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "startNewSystemThread" , runnable ) ; if ( _systemThreadPool == null ) { createSystemThreadPool ( ) ; } try { _systemThreadPool . execute (...
Starts a new thread from the MP System Thread Pool Only system threads should start call start using this method .