idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
162,700
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 .
162,701
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 .
162,702
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 .
162,703
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 .
162,704
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 .
162,705
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 .
162,706
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...
162,707
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 .
162,708
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 .
162,709
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 .
162,710
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 .
162,711
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 .
162,712
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 .
162,713
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 .
162,714
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
162,715
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 .
162,716
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 .
162,717
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 .
162,718
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 .
162,719
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
162,720
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 .
162,721
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
162,722
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 .
162,723
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
162,724
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 .
162,725
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
162,726
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 .
162,727
@ 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
162,728
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...
162,729
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
162,730
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 .
162,731
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
162,732
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 .
162,733
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 .
162,734
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
162,735
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
162,736
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 .
162,737
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 .
162,738
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 .
162,739
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
162,740
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 .
162,741
public void setXidImpl ( XidImpl xid ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setXidImpl" , new Object [ ] { xid , this } ) ; _xid = xid ; }
For recovery only
162,742
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
162,743
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 .
162,744
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 .
162,745
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 .
162,746
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 .
162,747
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 .
162,748
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 .
162,749
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 .
162,750
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
162,751
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 .
162,752
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
162,753
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
162,754
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 .
162,755
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 .
162,756
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 .
162,757
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
162,758
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 .
162,759
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 .
162,760
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 .
162,761
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 .
162,762
@ 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 .
162,763
@ 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 .
162,764
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
162,765
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 .
162,766
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
162,767
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 .
162,768
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 .
162,769
public void setEnumerators ( String [ ] val ) { enumerators = val ; enumeratorCount = ( enumerators != null ) ? enumerators . length : 0 ; }
Set the enumerators in the order of their assigned codes
162,770
public void encodeType ( byte [ ] frame , int [ ] limits ) { setByte ( frame , limits , ( byte ) ENUM ) ; setCount ( frame , limits , enumeratorCount ) ; }
propagate the enumeratorCount .
162,771
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 .
162,772
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 .
162,773
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 .
162,774
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
162,775
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 .
162,776
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 .
162,777
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
162,778
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
162,779
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 .
162,780
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
162,781
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
162,782
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
162,783
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
162,784
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
162,785
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
162,786
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
162,787
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
162,788
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
162,789
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 .
162,790
protected void updateTranLogServiceData ( ) throws Exception { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "updateTranLogServiceData" ) ; try { if ( _tranlogServiceData == null ) { _tranlogServiceData = _tranLog . createRecoverableUnit ( ) ; _tranlogServerSection = _tranlogServiceData . createSection ( Transaction...
Update service data in the tran log files
162,791
protected void updatePartnerServiceData ( ) throws Exception { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "updatePartnerServiceData" ) ; try { if ( _partnerServiceData == null ) { if ( _recoverXaLog != null ) _partnerServiceData = _recoverXaLog . createRecoverableUnit ( ) ; else _partnerServiceData = _xaLog . cre...
Update service data in the partner log files
162,792
public void waitForRecoveryCompletion ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "waitForRecoveryCompletion" ) ; if ( ! _recoveryCompleted ) { try { if ( tc . isEventEnabled ( ) ) Tr . event ( tc , "starting to wait for recovery completion" ) ; _recoveryInProgress . waitEvent ( ) ; if ( tc . isEventEnabled ...
Blocks the current thread until initial recovery has completed .
162,793
public void recoveryComplete ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "recoveryComplete" ) ; if ( ! _recoveryCompleted ) { _recoveryCompleted = true ; _recoveryInProgress . post ( ) ; } if ( _agent != null ) { try { RecoveryDirectorFactory . recoveryDirector ( ) . initialRecoveryComplete ( _agent , _failu...
Marks recovery as completed and signals the recovery director to this effect .
162,794
public boolean shutdownInProgress ( ) { synchronized ( _recoveryMonitor ) { if ( _shutdownInProgress ) { if ( ! _recoveryCompleted ) { if ( tc . isEventEnabled ( ) ) Tr . event ( tc , "Shutdown is in progress, stopping recovery processing" ) ; recoveryComplete ( ) ; if ( _failureScopeController . localFailureScope ( ) ...
examine the boolean return value and not proceed with recovery if its true .
162,795
protected TransactionImpl [ ] getRecoveringTransactions ( ) { TransactionImpl [ ] recoveredTransactions = new TransactionImpl [ _recoveringTransactions . size ( ) ] ; _recoveringTransactions . toArray ( recoveredTransactions ) ; return recoveredTransactions ; }
This method should only be called from the recover thread else ConcurretModificationException may arise
162,796
protected void closeLogs ( boolean closeLeaseLog ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "closeLogs" , new Object [ ] { this , closeLeaseLog } ) ; if ( ( _tranLog != null ) && ( _tranLog instanceof DistributedRecoveryLog ) ) { try { ( ( DistributedRecoveryLog ) _tranLog ) . closeLogImmediate ( ) ; } catch ...
Close the loggs without any keypoint - to be called on a failure to leave the logs alone and ensure distributed shutdown code does not update them .
162,797
public void registerTransaction ( TransactionImpl tran ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "registerTransaction" , new Object [ ] { this , tran } ) ; _recoveringTransactions . add ( tran ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "registerTransaction" , _recoveringTransactions . size ( ) ) ; }
Registers a recovered transactions existance . This method is triggered from the FailureScopeController . registerTransaction for all transactions that have been created during a recovery process .
162,798
public void deregisterTransaction ( TransactionImpl tran ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "deregisterTransaction" , new Object [ ] { this , tran } ) ; _recoveringTransactions . remove ( tran ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "deregisterTransaction" , _recoveringTransactions . size ...
Deregisters a recovered transactions existance . This method is triggered from the FailureScopeController . deregisterTransaction for recovered transactions .
162,799
protected boolean recoveryModeTxnsComplete ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "recoveryModeTxnsComplete" ) ; if ( _recoveringTransactions != null ) { for ( TransactionImpl tx : _recoveringTransactions ) { if ( tx != null && ! tx . isRAImport ( ) ) { if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "r...
This does not include JCA inbound txns