idx
int64
0
41.2k
question
stringlengths
83
4.15k
target
stringlengths
5
715
39,000
protected void updateConfiguration ( Map < String , Object > properties ) { if ( properties != null ) { this . properties . clear ( ) ; this . properties . putAll ( properties ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Current Properties: " + this . properties ...
Updates the current configuration properties
39,001
public boolean isImplicitBeanArchivesScanningDisabled ( ) { boolean enableImplicitBeanArchivesValue = ( Boolean ) this . properties . get ( "enableImplicitBeanArchives" ) ; if ( tc . isWarningEnabled ( ) && ! hasLoggedNoImplicitMsg && ! enableImplicitBeanArchivesValue ) { hasLoggedNoImplicitMsg = true ; Tr . warning ( ...
Get the Container level configuration about whether to disable the scanning for implicit bean archives . If the value is true it means CDI Container will not scan archives without beans . xml to see whether they are implicit archives .
39,002
@ FFDCIgnore ( InjectionException . class ) private void processPostConstruct ( ) { ApplicationClient appClient = ( ( ClientModuleMetaData ) cmd . getModuleMetaData ( ) ) . getAppClient ( ) ; boolean isMetadataComplete = appClient . isMetadataComplete ( ) ; LifecycleCallbackHelper helper = new LifecycleCallbackHelper (...
Process PostContruct annotation or metadata for Main class or Login Callback class .
39,003
@ FFDCIgnore ( InjectionException . class ) private void processPreDestroy ( ) { ApplicationClient appClient = ( ( ClientModuleMetaData ) cmd . getModuleMetaData ( ) ) . getAppClient ( ) ; boolean isMetadataComplete = appClient . isMetadataComplete ( ) ; LifecycleCallbackHelper helper = new LifecycleCallbackHelper ( is...
Process PreDestroy annotation or metadata for Login Callback class .
39,004
public void introspect ( final PrintWriter writer ) throws Exception { writer . println ( "Network Interface Information" ) ; writer . println ( "-----------------------------" ) ; try { AccessController . doPrivileged ( new PrivilegedExceptionAction < Void > ( ) { public Void run ( ) throws IOException { Enumeration <...
Introspect all network interfaces for diagnostic information .
39,005
private void getInterfaceInfo ( NetworkInterface networkInterface , PrintWriter out ) throws IOException { final String indent = " " ; out . println ( ) ; out . append ( "Interface: " ) . append ( networkInterface . getDisplayName ( ) ) . println ( ) ; out . append ( indent ) . append ( " loopback: " ) . ap...
Capture interface specific information and write it to the provided writer .
39,006
private Object invoke ( Method method , Object [ ] args ) throws IllegalAccessException , InvocationTargetException { ArrayList < ThreadContext > contextAppliedToThread = threadContextDescriptor . taskStarting ( ) ; try { return method . invoke ( object , args ) ; } finally { threadContextDescriptor . taskStopping ( co...
Apply context invoke the method then remove the context from the thread .
39,007
private synchronized void initialize ( ) { if ( ! _initialized ) { FacesContext context = FacesContext . getCurrentInstance ( ) ; if ( isFacelets2Enabled ( context ) ) { logWarningIfLegacyFaceletViewHandlerIsPresent ( context ) ; if ( MyfacesConfig . getCurrentInstance ( context . getExternalContext ( ) ) . isSupportJS...
Initialize the supported view declaration languages .
39,008
private boolean isFacelets2Enabled ( FacesContext context ) { String param = context . getExternalContext ( ) . getInitParameter ( PARAM_DISABLE_JSF_FACELET ) ; boolean facelets2ParamDisabled = ( param != null && Boolean . parseBoolean ( param . toLowerCase ( ) ) ) ; return ! facelets2ParamDisabled ; }
Determines if the current application uses Facelets - 2 . To accomplish that it looks at the init param javax . faces . DISABLE_FACELET_JSF_VIEWHANDLER
39,009
@ FFDCIgnore ( { MissingResourceException . class , IllegalArgumentException . class } ) protected static Logger createLogger ( final Class < ? > cls , String name , String loggerName ) { ClassLoader orig = getContextClassLoader ( ) ; ClassLoader n = getClassLoader ( cls ) ; if ( n != null ) { setContextClassLoader ( n...
Create a logger
39,010
public static void log ( Logger logger , Level level , String message , Throwable throwable , Object parameter ) { if ( logger . isLoggable ( level ) ) { final String formattedMessage = MessageFormat . format ( localize ( logger , message ) , parameter ) ; doLog ( logger , level , formattedMessage , throwable ) ; } }
Allows both parameter substitution and a typed Throwable to be logged .
39,011
private static String localize ( Logger logger , String message ) { ResourceBundle bundle = logger . getResourceBundle ( ) ; try { return bundle != null ? bundle . getString ( message ) : message ; } catch ( MissingResourceException ex ) { return message ; } }
Retrieve localized message retrieved from a logger s resource bundle .
39,012
public synchronized int add ( Object value ) throws IdTableFullException { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "add" , value ) ; if ( value == null ) throw new SIErrorException ( nls . getFormattedMessage ( "IDTABLE_INTERNAL_SICJ0050" , null , "IDTABLE_INTERNAL_SICJ0050" ) ) ; int id = 0 ; if ( h...
Adds an object to the table and returns the ID associated with the object in the table . The object will never be assigned an ID which clashes with another object .
39,013
public synchronized Object remove ( int id ) throws IllegalArgumentException { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "remove" , "" + id ) ; Object returnValue = get ( id ) ; if ( returnValue != null ) table [ id ] = null ; if ( id < lowestPossibleFree ) lowestPossibleFree = id ; if ( ( id + 1 ) == ...
Removes an object from the table .
39,014
public synchronized Object get ( int id ) throws IllegalArgumentException { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "get" , "" + id ) ; if ( ( id < 1 ) || ( id > maxSize ) ) throw new SIErrorException ( nls . getFormattedMessage ( "IDTABLE_INTERNAL_SICJ0050" , null , "IDTABLE_INTERNAL_SICJ0050" ) ) ;...
Gets an object from the table by ID . Returns the object associated with the specified ID . It is valid to specify an ID which does not have an object associated with it . In this case a value of null is returned .
39,015
private void growTable ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "growTable" ) ; int newSize = Math . min ( table . length + TABLE_GROWTH_INCREMENT , maxSize ) ; if ( tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "existing size=" + table . length + " new size=" + newSize ) ; Object [ ] ne...
Helper method which increases the size of the table by a factor of TABLE_GROWTH_INCREMENT until the maximum size for the table is achieved .
39,016
private int findFreeSlot ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "findFreeSlot" ) ; boolean foundFreeSlot = false ; int index = lowestPossibleFree ; int largestIndex = Math . min ( highWaterMark , table . length - 1 ) ; while ( ( ! foundFreeSlot ) && ( index <= largestIndex ) ) { foundFreeSlot ...
Helper method which attempts to locate a free slot in the table . The algorithm used is to scan from the lowest possible free value looking for an entry with a null value . If more than half the table is scanned before a free slot is found then the code also attempts to move the high watermark back towards the beginnin...
39,017
public void init ( HttpInboundConnection conn , SessionManager sessMgr ) { this . connection = conn ; this . request = conn . getRequest ( ) ; this . sessionData = new SessionInfo ( this , sessMgr ) ; }
Initialize this request with the input link .
39,018
public void clear ( ) { this . attributes . clear ( ) ; this . queryParameters = null ; this . inReader = null ; this . streamActive = false ; this . inStream = null ; this . encoding = null ; this . sessionData = null ; this . strippedURI = null ; this . srvContext = null ; this . srvPath = null ; this . pathInfo = nu...
Clear all the temporary variables of this request .
39,019
private void parseQueryFormData ( ) throws IOException { int size = getContentLength ( ) ; if ( 0 == size ) { this . queryParameters = new HashMap < String , String [ ] > ( ) ; return ; } else if ( - 1 == size ) { size = 1024 ; } StringBuilder sb = new StringBuilder ( size ) ; char [ ] data = new char [ size ] ; Buffer...
Read and parse the POST body data that represents query data .
39,020
private Map < String , String [ ] > parseQueryString ( String data ) { Map < String , String [ ] > map = new Hashtable < String , String [ ] > ( ) ; if ( null == data ) { return map ; } String valArray [ ] = null ; char [ ] chars = data . toCharArray ( ) ; int key_start = 0 ; for ( int i = 0 ; i < chars . length ; i ++...
Parse a string of query parameters into a Map representing the values stored using the name as the key .
39,021
private void mergeQueryParams ( Map < String , String [ ] > urlParams ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "mergeQueryParams: " + urlParams ) ; } for ( Entry < String , String [ ] > entry : urlParams . entrySet ( ) ) { String key = entry . getKey ( ) ; Strin...
In certain cases the URL will contain query string information and the POST body will as well . This method merges the two maps together .
39,022
private String getCipherSuite ( ) { String suite = null ; SSLContext ssl = this . connection . getSSLContext ( ) ; if ( null != ssl ) { suite = ssl . getSession ( ) . getCipherSuite ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "getCipherSuite [" + suite + "]" ) ...
Access the SSL cipher suite used in this connection .
39,023
private X509Certificate [ ] getPeerCertificates ( ) { X509Certificate [ ] rc = null ; SSLContext ssl = this . connection . getSSLContext ( ) ; if ( null != ssl && ( ssl . getNeedClientAuth ( ) || ssl . getWantClientAuth ( ) ) ) { try { Object [ ] objs = ssl . getSession ( ) . getPeerCertificates ( ) ; if ( null != objs...
Access any client SSL certificates for this connection .
39,024
public void removeTarget ( Object key ) throws MatchingException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeTarget" , new Object [ ] { key } ) ; synchronized ( _targets ) { Target targ = ( Target ) _targets . get ( key ) ; if ( targ == null ) throw new Match...
Remove a target from the MatchSpace
39,025
public void removeConsumerPointMatchTarget ( DispatchableKey consumerPointData ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeConsumerPointMatchTarget" , consumerPointData ) ; try { removeTarget ( consumerPointData ) ; } catch ( MatchingException e ) { FFDCFil...
Method removeConsumerPointMatchTarget Used to remove a ConsumerPoint from the MatchSpace .
39,026
public ControllableProxySubscription addPubSubOutputHandlerMatchTarget ( PubSubOutputHandler handler , SIBUuid12 topicSpace , String discriminator , boolean foreignSecuredProxy , String MESubUserId ) throws SIDiscriminatorSyntaxException , SISelectorSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc ...
Used to add a PubSubOutputHandler for ME - ME comms to the MatchSpace .
39,027
public void removeConsumerDispatcherMatchTarget ( ConsumerDispatcher consumerDispatcher , SelectionCriteria selectionCriteria ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeConsumerDispatcherMatchTarget" , new Object [ ] { consumerDispatcher , selectionCriteri...
Method removeConsumerDispatcherMatchTarget Used to remove a ConsumerDispatcher from the MatchSpace .
39,028
public void removePubSubOutputHandlerMatchTarget ( ControllableProxySubscription sub ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removePubSubOutputHandlerMatchTarget" , sub ) ; try { removeTarget ( sub ) ; } catch ( MatchingException e ) { FFDCFilter . processExc...
Method removePubSubOutputHandlerMatchTarget Used to remove a PubSubOutputHandler from the MatchSpace .
39,029
private String buildSendTopicExpression ( String destName , String discriminator ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "buildSendTopicExpression" , new Object [ ] { destName , discriminator } ) ; String combo = null ; if ( discriminator == null || discrimina...
Concatenates topicspace and a topic expression with a level separator between
39,030
public String buildAddTopicExpression ( String destName , String discriminator ) throws SIDiscriminatorSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "buildAddTopicExpression" , new Object [ ] { destName , discriminator } ) ; String combo = null ; if ( ...
Concatenates topicspace and a topic expression with a level separator between .
39,031
public ArrayList getAllCDMatchTargets ( ) { ArrayList consumerDispatcherList ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getAllCDMatchTargets" ) ; synchronized ( _targets ) { consumerDispatcherList = new ArrayList ( _targets . size ( ) ) ; Iterator itr = _targets ....
Method getAllCDMatchTargets Used to return a list of all ConsumerDispatchers stored in the matchspace
39,032
public ArrayList getAllCDMatchTargetsForTopicSpace ( String tSpace ) { ArrayList consumerDispatcherList ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getAllCDMatchTargetsForTopicSpace" ) ; synchronized ( _targets ) { consumerDispatcherList = new ArrayList ( _targets ...
Method getAllCDMatchTargetsForTopicSpace Used to return a list of all ConsumerDispatchers stored in the matchspace for a specific topicspace .
39,033
public ArrayList getAllPubSubOutputHandlerMatchTargets ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getAllPubSubOutputHandlerMatchTargets" ) ; ArrayList outputHandlerList ; synchronized ( _targets ) { outputHandlerList = new ArrayList ( _targets . size ( ) ) ; I...
Method getAllPubSubOutputHandlerMatchTargets Used to return a list of all PubSubOutputHandlers stored in the matchspace
39,034
public void addTopicAcl ( SIBUuid12 destName , TopicAcl acl ) throws SIDiscriminatorSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addTopicAcl" , new Object [ ] { destName , acl } ) ; String discriminator = null ; String theTopic = "" ; if ( destName !...
Method addTopicAcl Used to add a TopicAcl to the MatchSpace .
39,035
public void removeAllTopicAcls ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeAllTopicAcls" ) ; ArrayList topicAclList = null ; try { synchronized ( _targets ) { topicAclList = new ArrayList ( _targets . size ( ) ) ; Iterator itr = _targets . keySet ( ) . it...
Method removeAllTopicAcls Used to remove all TopicAcls stored in the matchspace
39,036
public void removeApplicationSignatureMatchTarget ( ApplicationSignature appSignature ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeApplicationSignatureMatchTarget" , appSignature ) ; try { removeTarget ( appSignature ) ; } catch ( MatchingException e ) { FFD...
Method removeApplicationSignatureMatchTarget Used to remove a ApplicationSignature from the MatchSpace .
39,037
@ Reference ( policy = DYNAMIC , policyOption = GREEDY , cardinality = MANDATORY ) protected void setProvider ( MetricRecorderProvider provider ) { metricProvider = provider ; }
Require a provider update dynamically if a new one becomes available
39,038
synchronized public void recover ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "recover" , this ) ; final int state = _status . getState ( ) ; if ( _subordinate ) { switch ( state ) { case TransactionState . STATE_HEURISTIC_ON_COMMIT : case TransactionState . STATE_COMMITTED : case TransactionState . STATE_COM...
Directs the TransactionImpl to perform recovery actions based on its reconstructed state after a failure or after an in - doubt timeout has occurred . This method is called by the RecoveryManager during recovery in which case there is no terminator object or during normal operation if the transaction commit retry inter...
39,039
public void commit ( ) throws RollbackException , HeuristicMixedException , HeuristicRollbackException , SecurityException , IllegalStateException , SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "commit (SPI)" ) ; try { processCommit ( ) ; } catch ( HeuristicHazardException hhe ) { final HeuristicM...
Commit the transation associated with the target Transaction object
39,040
public void commit_one_phase ( ) throws RollbackException , HeuristicMixedException , HeuristicHazardException , HeuristicRollbackException , SecurityException , IllegalStateException , SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "commit_one_phase" ) ; _subordinate = false ; try { processCommit (...
Commit the transation associated with a subordinate which received a commit_one_phase request from the superior . Any other subordinate requests should call the internal methods directly .
39,041
public void rollback ( ) throws IllegalStateException , SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "rollback (SPI)" ) ; final int state = _status . getState ( ) ; if ( state == TransactionState . STATE_ACTIVE ) { cancelAlarms ( ) ; try { _status . setState ( TransactionState . STATE_ROLLING_BACK...
Rollback the transaction associated with the target Transaction Object
39,042
protected void setPrepareXAFailed ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "setPrepareXAFailed" ) ; setRBO ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "setPrepareXAFailed" ) ; }
Indicate that the prepare XA phase failed .
39,043
protected boolean prePrepare ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "prePrepare" ) ; cancelAlarms ( ) ; if ( ! _rollbackOnly ) { if ( _syncs != null ) { _syncs . distributeBefore ( ) ; } } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "prePrepare" , ! _rollbackOnly ) ; return ! _rollbackOnly ; }
Drive beforeCompletion against sync objects registered with this transaction .
39,044
protected boolean distributeEnd ( ) throws SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "distributeEnd" ) ; if ( ! getResources ( ) . distributeEnd ( XAResource . TMSUCCESS ) ) { setRBO ( ) ; } if ( _rollbackOnly ) { try { _status . setState ( TransactionState . STATE_ROLLING_BACK ) ; } catch ( Sy...
Distribute end to all XA resources
39,045
public Throwable getOriginalException ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getOriginalException" ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getOriginalException" , _originalException ) ; return _originalException ; }
returns the exception stored by RegisteredSyncs
39,046
public void setRollbackOnly ( ) throws IllegalStateException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "setRollbackOnly (SPI)" ) ; final int state = _status . getState ( ) ; if ( state == TransactionState . STATE_NONE || state == TransactionState . STATE_COMMITTED || state == TransactionState . STATE_ROLLED_BA...
Modify the transaction such that the only possible outcome of the transaction is to rollback .
39,047
public void enlistResource ( JTAResource remoteRes ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "enlistResource (SPI): args: " , remoteRes ) ; getResources ( ) . addRes ( remoteRes ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "enlistResource (SPI)" ) ; }
Enlist a remote resouce with the transaction associated with the target TransactionImpl object . Typically this remote resource represents a downstream suborindate server .
39,048
protected void logHeuristic ( boolean commit ) throws SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "logHeuristic" , commit ) ; if ( _subordinate && _status . getState ( ) != TransactionState . STATE_PREPARING ) { getResources ( ) . logHeuristic ( commit ) ; } if ( tc . isEntryEnabled ( ) ) Tr . ex...
Log the fact that we have encountered a heuristic outcome .
39,049
public int getStatus ( ) { int state = Status . STATUS_UNKNOWN ; switch ( _status . getState ( ) ) { case TransactionState . STATE_NONE : state = Status . STATUS_NO_TRANSACTION ; break ; case TransactionState . STATE_ACTIVE : if ( _rollbackOnly ) state = Status . STATUS_MARKED_ROLLBACK ; else state = Status . STATUS_AC...
Obtain the status of the transaction associated with the target object
39,050
public XidImpl getXidImpl ( boolean createIfAbsent ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getXidImpl" , new Object [ ] { this , createIfAbsent } ) ; if ( createIfAbsent && ( _xid == null ) ) { _xid = new XidImpl ( new TxPrimaryKey ( _localTID , Configuration . getCurrentEpoch ( ) ) ) ; } if ( tc . isEntr...
Returns a global identifier that represents the TransactionImpl s transaction .
39,051
public void setXidImpl ( XidImpl xid ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setXidImpl" , new Object [ ] { xid , this } ) ; _xid = xid ; }
For recovery only
39,052
public boolean isJCAImportedAndPrepared ( String providerId ) { return _JCARecoveryData != null && _status . getState ( ) == TransactionState . STATE_PREPARED && _JCARecoveryData . getWrapper ( ) . getProviderId ( ) . equals ( providerId ) ; }
Returns true if this tx was imported by the given RA and is prepared
39,053
public void loadKeyStores ( Map < String , WSKeyStore > config ) { for ( Entry < String , WSKeyStore > current : config . entrySet ( ) ) { try { String name = current . getKey ( ) ; WSKeyStore keystore = current . getValue ( ) ; addKeyStoreToMap ( name , keystore ) ; } catch ( Exception e ) { FFDCFilter . processExcept...
Load the provided list of keystores from the configuration .
39,054
public InputStream getInputStream ( String fileName , boolean create ) throws MalformedURLException , IOException { try { GetKeyStoreInputStreamAction action = new GetKeyStoreInputStreamAction ( fileName , create ) ; return AccessController . doPrivileged ( action ) ; } catch ( PrivilegedActionException e ) { Exception...
Open the provided filename as a keystore creating if it doesn t exist and the input create flag is true .
39,055
public OutputStream getOutputStream ( String fileName ) throws MalformedURLException , IOException { try { GetKeyStoreOutputStreamAction action = new GetKeyStoreOutputStreamAction ( fileName ) ; return AccessController . doPrivileged ( action ) ; } catch ( PrivilegedActionException e ) { Exception ex = e . getException...
Open the provided filename as an outputstream .
39,056
public static String stripLastSlash ( String inputString ) { if ( null == inputString ) { return null ; } String rc = inputString . trim ( ) ; int len = rc . length ( ) ; if ( 0 < len ) { char lastChar = rc . charAt ( len - 1 ) ; if ( '/' == lastChar || '\\' == lastChar ) { rc = rc . substring ( 0 , len - 1 ) ; } } ret...
Remove the last slash if present from the input string and return the result .
39,057
public KeyStore getJavaKeyStore ( String keyStoreName ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getJavaKeyStore: " + keyStoreName ) ; if ( keyStoreName == null || keyStoreName . trim ( ) . isEmpty ( ) ) { throw new SSLException ( "No keystore name...
Returns the java keystore object based on the keystore name passed in .
39,058
public WSKeyStore getWSKeyStore ( String keyStoreName ) throws SSLException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getWSKeyStore: " + keyStoreName ) ; if ( keyStoreName == null ) { throw new SSLException ( "No keystore name provided." ) ; } WSKeyStore ks = keySto...
Returns the java keystore object based on the keystore name passed in . A null value is returned if no existing store matchs the provided name .
39,059
public Set < String > getDependentApplications ( ) { Set < String > appsToStop = new HashSet < String > ( applications ) ; applications . clear ( ) ; return appsToStop ; }
Returns the list of applications that have used this resource so that the applications can be stopped by the application recycle code in response to a configuration change .
39,060
private < T extends Object > void set ( Class < ? > clazz , Object clientBuilder , String name , Class < T > type , T value ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , name + '(' + ( name . endsWith ( "ssword" ) ? "***" : value ) + ')' ) ; Met...
Method to reflectively invoke setters on the cloudant client builder
39,061
public void libraryNotification ( ) { if ( ! applications . isEmpty ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "recycle applications" , applications ) ; ApplicationRecycleCoordinator appRecycleCoord = ( ApplicationRecycleCoordinator ) componentContext . l...
Received when library is changed for example by altering the files in the library .
39,062
public Object getCloudantClient ( int resAuth , List < ? extends ResourceInfo . Property > loginPropertyList ) throws Exception { AuthData containerAuthData = null ; if ( resAuth == ResourceInfo . AUTH_CONTAINER ) { containerAuthData = getContainerAuthData ( loginPropertyList ) ; } String userName = containerAuthData =...
Return the cloudant client object used for a particular username and password
39,063
public synchronized void waitOn ( ) throws InterruptedException { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "waitOn" , "" + count ) ; ++ count ; if ( count > 0 ) { try { wait ( ) ; } catch ( InterruptedException e ) { -- count ; throw e ; } } if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "waitOn" ) ; }
Wait for the semaphore to be posted
39,064
public synchronized void post ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "post" , "" + count ) ; -- count ; if ( count >= 0 ) notify ( ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "post" ) ; }
Post the semaphore waking up at most one waiter . If there are no waiters then the next thread issuing a waitOn call will not be suspended . In fact if post is invoked n times then the next n waitOn calls will not block .
39,065
public synchronized void waitOnIgnoringInterruptions ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "waitOnIgnoringInterruptions" ) ; boolean interrupted ; do { interrupted = false ; try { waitOn ( ) ; } catch ( InterruptedException e ) { interrupted = true ; } } while ( interrupted ) ; if ( tc . isEntryEnab...
Wait on the semaphore ignoring any attempt to interrupt the thread .
39,066
protected void setMemberFactories ( FaceletCache . MemberFactory < V > faceletFactory , FaceletCache . MemberFactory < V > viewMetadataFaceletFactory , FaceletCache . MemberFactory < V > compositeComponentMetadataFaceletFactory ) { if ( compositeComponentMetadataFaceletFactory == null ) { throw new NullPointerException...
Set the factories used for create Facelet instances .
39,067
public void close ( ) throws IOException { if ( this . in != null && this . inStream != null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "close" , "close called->" + this ) ; } this . in . close ( ) ; } else { super . close ( ...
Following needed to support MultiRead
39,068
public ArtifactContainer createContainer ( File cacheDir , Object containerData ) { if ( ! ( containerData instanceof File ) ) { return null ; } File fileContainerData = ( File ) containerData ; if ( ! FileUtils . fileIsFile ( fileContainerData ) ) { return null ; } if ( ! isZip ( fileContainerData ) ) { return null ; ...
Attempt to create a root - of - roots zip file type container .
39,069
public ArtifactContainer createContainer ( File cacheDir , ArtifactContainer enclosingContainer , ArtifactEntry entryInEnclosingContainer , Object containerData ) { if ( ( containerData instanceof File ) && FileUtils . fileIsFile ( ( File ) containerData ) ) { File fileContainerData = ( File ) containerData ; if ( isZi...
Attempt to create an enclosed root zip file type container .
39,070
private static boolean hasZipExtension ( String name ) { int nameLen = name . length ( ) ; if ( nameLen < 4 ) { return false ; } if ( nameLen >= 7 ) { if ( ( name . charAt ( nameLen - 7 ) == '.' ) && name . regionMatches ( IGNORE_CASE , nameLen - 6 , ZIP_EXTENSION_SPRING , 0 , 6 ) ) { return true ; } } if ( name . char...
Tell if a file name has a zip file type extension .
39,071
private static boolean isZip ( ArtifactEntry artifactEntry ) { if ( ! hasZipExtension ( artifactEntry . getName ( ) ) ) { return false ; } boolean validZip = false ; InputStream entryInputStream = null ; try { entryInputStream = artifactEntry . getInputStream ( ) ; if ( entryInputStream == null ) { return false ; } Zip...
Tell if an artifact entry is valid to be interpreted as a zip file container .
39,072
@ SuppressWarnings ( "deprecation" ) private static String getPhysicalPath ( ArtifactEntry artifactEntry ) { String physicalPath = artifactEntry . getPhysicalPath ( ) ; if ( physicalPath != null ) { return physicalPath ; } String entryPath = artifactEntry . getPath ( ) ; String rootPath = artifactEntry . getRoot ( ) . ...
Answer they physical path of an artifact entry .
39,073
@ FFDCIgnore ( { IOException . class , FileNotFoundException . class } ) private static boolean isZip ( File file ) { if ( ! hasZipExtension ( file . getName ( ) ) ) { return false ; } InputStream inputStream = null ; try { inputStream = new FileInputStream ( file ) ; ZipInputStream zipInputStream = new ZipInputStream ...
Tell if a file is valid to used to create a zip file container .
39,074
public static UpdatedFile fromNode ( Node n ) { String id = n . getAttributes ( ) . getNamedItem ( "id" ) == null ? null : n . getAttributes ( ) . getNamedItem ( "id" ) . getNodeValue ( ) ; long size = n . getAttributes ( ) . getNamedItem ( "size" ) == null ? null : Long . parseLong ( n . getAttributes ( ) . getNamedIt...
needs to support both hash and MD5hash as attributes
39,075
public void serverStopping ( ) { BundleContext bundleContext = componentContext . getBundleContext ( ) ; Collection < ServiceReference < EndpointActivationService > > refs ; try { refs = bundleContext . getServiceReferences ( EndpointActivationService . class , null ) ; } catch ( InvalidSyntaxException x ) { FFDCFilter...
Invoked when server is quiescing . Deactivate all endpoints .
39,076
public boolean filterMatches ( AbstractItem item ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "filterMatches" , item ) ; SIMPReferenceStream rstream ; if ( item instanceof SIMPReferenceStream ) { rstream = ( SIMPReferenceStream ) item ; if ( rstream == consumerDisp...
Filter method . Checks whether the given item is a consumerDispatcher and matches the one associated with this filter
39,077
private ValidatorFactory createValidatorFactory ( FacesContext context ) { Map < String , Object > applicationMap = context . getExternalContext ( ) . getApplicationMap ( ) ; Object attr = applicationMap . get ( VALIDATOR_FACTORY_KEY ) ; if ( attr instanceof ValidatorFactory ) { return ( ValidatorFactory ) attr ; } els...
This method creates ValidatorFactory instances or retrieves them from the container .
39,078
private void postSetValidationGroups ( ) { if ( this . validationGroups == null || this . validationGroups . matches ( EMPTY_VALIDATION_GROUPS_PATTERN ) ) { this . validationGroupsArray = DEFAULT_VALIDATION_GROUPS_ARRAY ; } else { String [ ] classes = this . validationGroups . split ( VALIDATION_GROUPS_DELIMITER ) ; Li...
Fully initialize the validation groups if needed . If no validation groups are specified the Default validation group is used .
39,079
public void setEnumerators ( String [ ] val ) { enumerators = val ; enumeratorCount = ( enumerators != null ) ? enumerators . length : 0 ; }
Set the enumerators in the order of their assigned codes
39,080
public void encodeType ( byte [ ] frame , int [ ] limits ) { setByte ( frame , limits , ( byte ) ENUM ) ; setCount ( frame , limits , enumeratorCount ) ; }
propagate the enumeratorCount .
39,081
public void format ( StringBuffer fmt , Set done , Set todo , int indent ) { formatName ( fmt , indent ) ; fmt . append ( "Enum" ) ; if ( enumerators != null ) { fmt . append ( "{{" ) ; String delim = "" ; for ( int i = 0 ; i < enumerators . length ; i ++ ) { fmt . append ( delim ) . append ( enumerators [ i ] ) ; deli...
Format for printing .
39,082
public static _ValueReferenceWrapper resolve ( ValueExpression valueExpression , final ELContext elCtx ) { _ValueReferenceResolver resolver = new _ValueReferenceResolver ( elCtx . getELResolver ( ) ) ; ELContext elCtxDecorator = new _ELContextDecorator ( elCtx , resolver ) ; valueExpression . getValue ( elCtxDecorator ...
This method can be used to extract the ValueReferenceWrapper from the given ValueExpression .
39,083
public Object getValue ( final ELContext context , final Object base , final Object property ) { lastObject = new _ValueReferenceWrapper ( base , property ) ; return resolver . getValue ( context , base , property ) ; }
This method is the only one that matters . It keeps track of the objects in the EL expression .
39,084
private boolean isApplicationException ( Throwable ex , EJBMethodInfoImpl methodInfo ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "isApplicationException : " + ex . getClass ( ) . getName ( ) + ", " + methodInfo ) ; if ( ex instan...
F743 - 761
39,085
synchronized protected void addMessagingEngine ( final JsMessagingEngine messagingEngine ) { final String methodName = "addMessagingEngine" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , messagingEngine ) ; } SibRaMessagingEngineConnection c...
Connects to the given messaging engine . Registers a destination listener and creates listeners for each of the current destinations .
39,086
public void addNotfication ( Notification notification ) { Object source = notification . getSource ( ) ; NotificationRecord nr ; if ( source instanceof ObjectName ) { nr = new NotificationRecord ( notification , ( ObjectName ) source ) ; } else { nr = new NotificationRecord ( notification , ( source != null ) ? source...
This method will be called by the NotificationListener once the MBeanServer pushes a notification .
39,087
public void addClientNotificationListener ( RESTRequest request , NotificationRegistration notificationRegistration , JSONConverter converter ) { String objectNameStr = notificationRegistration . objectName . getCanonicalName ( ) ; NotificationTargetInformation nti = toNotificationTargetInformation ( request , objectNa...
Fetch or create a new listener for the given object name
39,088
public void updateClientNotificationListener ( RESTRequest request , String objectNameStr , NotificationFilter [ ] filters , JSONConverter converter ) { NotificationTargetInformation nti = toNotificationTargetInformation ( request , objectNameStr ) ; ClientNotificationListener listener = listeners . get ( nti ) ; if ( ...
Update the listener for the given object name with the provided filters
39,089
private Object removeObject ( Integer key ) { if ( key == null ) { return null ; } return objectLibrary . remove ( key ) ; }
Only to be used by removal coming from direct - http calls because calls from the jmx client can still reference this key for other notifications .
39,090
public void removeClientNotificationListener ( RESTRequest request , ObjectName name ) { NotificationTargetInformation nti = toNotificationTargetInformation ( request , name . getCanonicalName ( ) ) ; ClientNotificationListener listener = listeners . remove ( nti ) ; if ( nti . getRoutingInformation ( ) == null ) { MBe...
Remove the given NotificationListener
39,091
public void addServerNotificationListener ( RESTRequest request , ServerNotificationRegistration serverNotificationRegistration , JSONConverter converter ) { NotificationTargetInformation nti = toNotificationTargetInformation ( request , serverNotificationRegistration . objectName . getCanonicalName ( ) ) ; Notificatio...
Add the server notification to our internal list so we can cleanup afterwards
39,092
public synchronized void remoteClientRegistrations ( RESTRequest request ) { Iterator < Entry < NotificationTargetInformation , ClientNotificationListener > > clientListeners = listeners . entrySet ( ) . iterator ( ) ; try { while ( clientListeners . hasNext ( ) ) { Entry < NotificationTargetInformation , ClientNotific...
Remove all the client notifications
39,093
public synchronized void remoteServerRegistrations ( RESTRequest request ) { Iterator < Entry < NotificationTargetInformation , List < ServerNotification > > > serverNotificationsIter = serverNotifications . entrySet ( ) . iterator ( ) ; while ( serverNotificationsIter . hasNext ( ) ) { Entry < NotificationTargetInform...
Remove all the server notifications
39,094
public void copyHeader ( LogRepositoryWriter writer ) throws IllegalArgumentException { if ( writer == null ) { throw new IllegalArgumentException ( "Parameter writer can't be null" ) ; } writer . setHeader ( headerBytes ) ; }
Copy header into provided writer
39,095
final Integer getCcsid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getCcsid" ) ; Integer value = ( Integer ) jmo . getPayloadPart ( ) . getField ( JsPayloadAccess . CCSID_DATA ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) )...
Get the contents of the ccsid field from the payload part . d395685
39,096
final Integer getEncoding ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getEncoding" ) ; Integer value = ( Integer ) jmo . getPayloadPart ( ) . getField ( JsPayloadAccess . ENCODING_DATA ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnab...
Get the contents of the encoding field from the payload part . d395685
39,097
final void setCcsid ( Object value ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setCcsid" , value ) ; if ( value == null ) { jmo . getPayloadPart ( ) . setField ( JsPayloadAccess . CCSID , JsPayloadAccess . IS_CCSID_EMPTY ) ; } else if ( value instanceof In...
Set the contents of the ccsid field in the message payload part . d395685
39,098
final void setEncoding ( Object value ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setEncoding" , value ) ; if ( ( value == null ) || ! ( value instanceof Integer ) ) { jmo . getPayloadPart ( ) . setField ( JsPayloadAccess . ENCODING , JsPayloadAccess . IS_...
Set the contents of the encoding field in the message payload part . d395685
39,099
public void preShutdown ( boolean transactionsLeft ) throws Exception { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "preShutdown" , transactionsLeft ) ; try { getPartnerLogTable ( ) . terminate ( ) ; if ( _tranLog != null ) { if ( ! transactionsLeft ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "There is no...
Informs the RecoveryManager that the transaction service is being shut down .