idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
160,500
private Object executeBatch ( Object implObject , Method method , Object [ ] args ) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException , SQLException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "ex...
Invokes executeBatch and after closing any previous result sets and ensuring statement properties are up - to - date .
160,501
private Object getReturnResultSet ( Object implObject , Method method ) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException , SQLException { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getReturnResultSet" , ...
Invokes getReturnResultSet and wraps the result set .
160,502
public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Throwable { if ( ! haveStatementPropertiesChanged && VENDOR_PROPERTY_SETTERS . contains ( method . getName ( ) ) ) { haveStatementPropertiesChanged = true ; } if ( sqljSection != null && "getSection" . equals ( method . getName ( ) ) ) { ret...
Intercept the proxy handler to detect changes to statement properties that must be reset on cached statements .
160,503
public void nextRangeMaximumAvailable ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "nextRangeMaximumAvailable" ) ; synchronized ( _globalUniqueLock ) { _globalUniqueThreshold = _globalUniqueLimit + _midrange ; _globalUniqueLimit = _globalUniqueLimit + _range ; } ...
Callback to inform the generator that the current range of available unique keys has now grown .
160,504
public byte [ ] transform ( ClassLoader loader , String className , Class < ? > classBeingRedefined , ProtectionDomain protectionDomain , byte [ ] classfileBuffer ) throws IllegalClassFormatException { if ( className . startsWith ( Transformer . class . getPackage ( ) . getName ( ) . replaceAll ( "\\." , "/" ) ) ) { re...
Instrument the classes .
160,505
public String resolveString ( String value , boolean ignoreWarnings ) throws ConfigEvaluatorException { value = variableEvaluator . resolveVariables ( value , this , ignoreWarnings ) ; return value ; }
Tries to resolve variables .
160,506
@ SuppressWarnings ( "unchecked" ) public void init ( ) throws ServletException { String servlets = getRequiredInitParameter ( PARAM_SERVLET_PATHS ) ; StringTokenizer sTokenizer = new StringTokenizer ( servlets ) ; Vector servletChainPath = new Vector ( ) ; while ( sTokenizer . hasMoreTokens ( ) == true ) { String path...
Initialize the servlet chainer .
160,507
public void service ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { ServletChain chain = new ServletChain ( ) ; try { String path = null ; for ( int index = 0 ; index < this . chainPath . length ; ++ index ) { path = this . chainPath [ index ] ; RequestDispatcher rD...
Handle a servlet request by chaining the configured list of servlets . Only the final response in the chain will be sent back to the client . This servlet does not actual generate any content . This servlet only constructs and processes the servlet chain .
160,508
String getRequiredInitParameter ( String name ) throws ServletException { String value = getInitParameter ( name ) ; if ( value == null ) { throw new ServletException ( MessageFormat . format ( nls . getString ( "Missing.required.initialization.parameter" , "Missing required initialization parameter: {0}" ) , new Objec...
Retrieve a required init parameter by name .
160,509
private void initializePermissions ( ) { int count = 0 ; if ( tc . isDebugEnabled ( ) ) { if ( isServer ) { Tr . debug ( tc , "running on server " ) ; } else { Tr . debug ( tc , "running on client " ) ; } } if ( isServer ) { count = DEFAULT_SERVER_RESTRICTABLE_PERMISSIONS . length ; originationFile = SERVER_XML ; } els...
InvocationTargetException . class NoSuchMethodException . class SecurityException . class } )
160,510
public PermissionCollection getCombinedPermissions ( PermissionCollection staticPolicyPermissionCollection , CodeSource codesource ) { Permissions effectivePermissions = new Permissions ( ) ; List < Permission > staticPolicyPermissions = Collections . list ( staticPolicyPermissionCollection . elements ( ) ) ; String co...
Combine the static permissions with the server . xml and permissions . xml permissions removing any restricted permission . This is called back from the dynamic policy to obtain the permissions for the JSP classes .
160,511
private boolean isRestricted ( Permission permission ) { for ( Permission restrictedPermission : restrictablePermissions ) { if ( restrictedPermission . implies ( permission ) ) { return true ; } } return false ; }
Check if this is a restricted permission .
160,512
public void addPermissionsXMLPermission ( CodeSource codeSource , Permission permission ) { ArrayList < Permission > permissions = null ; String codeBase = codeSource . getLocation ( ) . getPath ( ) ; if ( ! isRestricted ( permission ) ) { if ( permissionXMLPermissionMap . containsKey ( codeBase ) ) { permissions = per...
Adds a permission from the permissions . xml file for the given CodeSource .
160,513
public NonDelayedClassInfo getClassInfo ( ) { String useName = getName ( ) ; NonDelayedClassInfo useClassInfo = this . classInfo ; if ( useClassInfo != null ) { if ( ! useClassInfo . isJavaClass ( ) && ! ( useClassInfo . isAnnotationPresent ( ) || useClassInfo . isFieldAnnotationPresent ( ) || useClassInfo . isMethodAn...
Assignments to the extra data of the log parms may not be held across other method calls .
160,514
protected void intialiseNonPersistent ( MultiMEProxyHandler proxyHandler , Neighbours neighbours ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "intialiseNonPersistent" ) ; iProxyHandler = proxyHandler ; iNeighbours = neighbours ; iDestinationManager = iProxyHandler ...
Setup the non persistent state .
160,515
public final SIBUuid8 getUUID ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getUUID" ) ; SibTr . exit ( tc , "getUUID" , iMEUuid ) ; } return iMEUuid ; }
Gets the UUID for this Neighbour
160,516
public final String getBusId ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getBusId" ) ; SibTr . exit ( tc , "getBusId" , iBusId ) ; } return iBusId ; }
Get the Bus name for this Neighbour
160,517
BusGroup getBus ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getBus" ) ; SibTr . exit ( tc , "getBus" , iBusGroup ) ; } return iBusGroup ; }
Gets the Bus for this Neighbour
160,518
void setBus ( BusGroup busGroup ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setBus" ) ; iBusGroup = busGroup ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setBus" ) ; }
Sets the Bus for this Neighbour
160,519
private synchronized void createProducerSession ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createProducerSession" ) ; if ( iProducerSession == null ) { try { iProducerSession = ( ProducerSessionImpl ) iProxyHandler . getMessageProces...
Creates a producer session for sending the proxy messages to the Neighbours
160,520
MESubscription proxyRegistered ( SIBUuid12 topicSpaceUuid , String localTopicSpaceName , String topic , String foreignTSName , Transaction transaction , boolean foreignSecuredProxy , String MESubUserId ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entr...
proxyRegistered is called on this Neighbour object when a proxy subscription is received from a Neighbour .
160,521
protected void removeSubscription ( SIBUuid12 topicSpace , String topic ) { final String key = BusGroup . subscriptionKey ( topicSpace , topic ) ; iProxies . remove ( key ) ; }
Remove the subscription in the case of a rollback
160,522
MESubscription proxyDeregistered ( SIBUuid12 topicSpace , String topic , Transaction transaction ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "proxyDeregistered" , new Object [ ] { topicSpace , topic , transaction } ) ; final String key =...
proxyDeregistered is called on this Neighbour object when a delete proxy subscription is received from a Neighbour .
160,523
protected void addSubscription ( SIBUuid12 topicSpace , String topic , MESubscription subscription ) { final String key = BusGroup . subscriptionKey ( topicSpace , topic ) ; iProxies . put ( key , subscription ) ; }
Adds the rolled back subscription to the list .
160,524
protected MESubscription getSubscription ( SIBUuid12 topicSpace , String topic ) { return ( MESubscription ) iProxies . get ( BusGroup . subscriptionKey ( topicSpace , topic ) ) ; }
Gets the MESubscription represented from this topicSpace and topic
160,525
void markAllProxies ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "markAllProxies" ) ; final Enumeration enu = iProxies . elements ( ) ; while ( enu . hasMoreElements ( ) ) { final MESubscription sub = ( MESubscription ) enu . nextElement ( ) ; sub . mark ( ) ; } ...
Marks all the proxies from this Neighbour .
160,526
void sweepMarkedProxies ( List topicSpaces , List topics , Transaction transaction , boolean okToForward ) throws SIResourceException , SIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sweepMarkedProxies" , new Object [ ] { topicSpaces , topics , transaction...
Removes all Subscriptions that are no longer registered
160,527
void sendToNeighbour ( JsMessage message , Transaction transaction ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendToNeighbour" , new Object [ ] { message , transaction } ) ; if ( iProducerSession == null ) createProducerSession ( ) ; t...
Forwards the message given onto this Neighbours Queue .
160,528
protected void recoverSubscriptions ( MultiMEProxyHandler proxyHandler ) throws MessageStoreException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "recoverSubscriptions" , proxyHandler ) ; iProxyHandler = proxyHandler ; iProxies = new Hashtable ...
Recovers the Neighbours subscriptions that it had registered .
160,529
protected void deleteDestination ( ) throws SIConnectionLostException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteDestination" ) ; synchronized ( this ) { if ( iProducerSession != null ) iProducerSession . close ( ) ; ...
Deletes the Queue that would be used for sending proxy update messages to this remote ME .
160,530
protected void addPubSubOutputHandler ( PubSubOutputHandler handler ) { if ( iPubSubOutputHandlers == null ) iPubSubOutputHandlers = new HashSet ( ) ; iPubSubOutputHandlers . add ( handler ) ; }
Add a PubSubOutputHandler to the list of PubSubOutputHandlers that this neighbour knows about .
160,531
void setRequestedProxySubscriptions ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setRequestedProxySubscriptions" ) ; MPAlarmManager manager = iProxyHandler . getMessageProcessor ( ) . getAlarmManager ( ) ; iAlarm = manager . create ( REQUEST_TIMER , this ) ; syn...
Indicate that we have sent a request message to this neighbour .
160,532
void setRequestedProxySubscriptionsResponded ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setRequestedProxySubscriptionsResponded" ) ; synchronized ( this ) { iRequestSent = false ; if ( ! iAlarmCancelled ) iAlarm . cancel ( ) ; iAlarmCancelled = true ; } String...
The request for proxy subscriptions was responded to .
160,533
boolean wasProxyRequestSent ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "wasProxyRequestSent" ) ; SibTr . exit ( tc , "wasProxyRequestSent" , new Boolean ( iRequestSent ) ) ; } return iRequestSent ; }
If a request message was sent to this neighbour for the proxy subscriptions
160,534
protected void deleteSystemDestinations ( ) throws SIConnectionLostException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteSystemDestinations" ) ; synchronized ( this ) { if ( iProducerSession != null ) iProducerSession ...
Deletes all remote system destinations that are on referencing the me that this neighbour is referenced too .
160,535
private boolean checkForeignSecurityAttributesChanged ( MESubscription sub , boolean foreignSecuredProxy , String MESubUserId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkForeignSecurityAttributesChanged" , new Object [ ] { sub , new Boolean ( foreignSecuredP...
checkForeignSecurityAttributesChanged is called in order to determine whether security attributes have changed .
160,536
synchronized void resetListFailed ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "resetListFailed" ) ; iRequestFailed = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "resetListFailed" ) ; }
Method indicates that the reset list failed - update the alarm to indicate that this failed .
160,537
public boolean isDeclaredAnnotationWithin ( Collection < String > annotationNames ) { if ( declaredAnnotations != null ) { for ( AnnotationInfo annotation : declaredAnnotations ) { if ( annotationNames . contains ( annotation . getAnnotationClassName ( ) ) ) { return true ; } } } return false ; }
Optimized to iterate across the declared annotations first .
160,538
private void readObject ( ObjectInputStream s ) throws IOException , ClassNotFoundException { ObjectInputStream . GetField getField = s . readFields ( ) ; version = getField . get ( "version" , 1 ) ; resourceAdapterKey = ( String ) getField . get ( "resourceAdapterKey" , null ) ; }
Overrides the default deserialization .
160,539
private void writeObject ( ObjectOutputStream s ) throws IOException { ObjectOutputStream . PutField putField = s . putFields ( ) ; putField . put ( "version" , version ) ; putField . put ( "resourceAdapterKey" , resourceAdapterKey ) ; s . writeFields ( ) ; }
Overrides the default serialization .
160,540
static void notifyTimeout ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "notifyTimeout" ) ; synchronized ( SUSPEND_LOCK ) { if ( _tokenManager . isResumable ( ) ) { if ( tc . isEventEnabled ( ) ) Tr . event ( tc , "Resuming recovery log service following a suspension timeout" ) ; _isSuspended = false ; Tr . in...
Called by the RLSSuspendTokenManager in the event of a suspension timeout occurring
160,541
protected synchronized final Transaction getExternalTransaction ( ) { final String methodName = "getExternalTransaction" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName ) ; Transaction transaction = null ; if ( transactionReference != null ) transactio...
Create the extrnal transaction for use by the public interface from this InternalTransaction .
160,542
protected synchronized void requestCallback ( Token token , Transaction transaction ) throws ObjectManagerException { final String methodName = "requestCallback" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { token , transaction } )...
Note a request for the Token in the transaction to be called at prePrepare preCommit preBackout postCommit and postBackout .
160,543
protected synchronized void addFromCheckpoint ( ManagedObject managedObject , Transaction transaction ) throws ObjectManagerException { final String methodName = "addFromCheckpoint" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { man...
Recover an Add operation from a checkpoint .
160,544
protected synchronized void replaceFromCheckpoint ( ManagedObject managedObject , byte [ ] serializedBytes , Transaction transaction ) throws ObjectManagerException { final String methodName = "replaceFromCheckpoint" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass ...
Recover a Replace operation from a checkpoint .
160,545
protected synchronized void prepare ( Transaction transaction ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "prepare" , "transaction=" + transaction + "(Trasnaction)" ) ; if ( transaction . internalTransaction != this ) { if ( Tr...
Prepare the transaction . After execution of this method the users of this transaction shall not perform any further work as part of the logical unit of work or modify any of the objects that are referenced by the transaction .
160,546
protected void commit ( boolean reUse , Transaction transaction ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "commit" , new Object [ ] { new Boolean ( reUse ) , transaction } ) ; boolean persistentWorkDone = false ; ManagedObjec...
Commit the transaction . Fore write a commit record to the log . Unlock the objects that are part of this logical unit of work .
160,547
protected void backout ( boolean reUse , Transaction transaction ) throws ObjectManagerException { final String methodName = "backout" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Boolean ( reUse ) , transaction } ) ; boolean ...
Rollback the transacion . Force a backout record to the log .
160,548
void preBackout ( Transaction transaction ) throws ObjectManagerException { final String methodName = "preBackout" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { transaction } ) ; for ( java . util . Iterator tokenIterator = callbac...
Before the transaction is backed out give the ManagedObjects a chance to adjust their transient state to reflect the final outcome . It is too late for them to adjust persistent state as that is already written to the log assuming an outcome of Commit .
160,549
private final void complete ( boolean reUse , Transaction transaction ) throws ObjectManagerException { final String methodName = "complete" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Boolean ( reUse ) , transaction } ) ; re...
Tidy up after Commit or Backout have finished all work for this InternalTransaction .
160,550
protected synchronized void terminate ( int reason ) throws ObjectManagerException { final String methodName = "terminate" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Integer ( reason ) } ) ; if ( transactionReference != null...
Permanently disable use of this transaction . reason the Transaction . terininatedXXX reason
160,551
protected synchronized void shutdown ( ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "shutDown" ) ; setState ( nextStateForShutdown ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , ...
Run at shutdown of the ObjectManager to close activity .
160,552
protected final void setRequiresCheckpoint ( ) { final String methodName = "setRequiresCheckpoint" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Boolean ( requiresPersistentCheckpoint ) } ) ; final boolean checkpointRequired [ ...
Mark this InternalTransaction as requiring a Checkpoint in the current checkpoint cycle .
160,553
protected synchronized void checkpoint ( long forcedLogSequenceNumber ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "checkpoint" , new Object [ ] { new Long ( forcedLogSequenceNumber ) , new Boolean ( requiresPersistentCheckpoint...
Called by the ObjectManager when it has written a checkpointStartLogRecord . The Transaction can assume that all log records up to and including logSequenceNumber are now safely hardened to disk . On this assumption it calls includedObjects so that they can write after images to the ObjectStores .
160,554
public void afterCompletion ( int status ) { if ( status == Status . STATUS_COMMITTED ) { Boolean previous = persistentExecutor . inMemoryTaskIds . put ( taskId , Boolean . TRUE ) ; if ( previous == null ) { long delay = expectedExecTime - new Date ( ) . getTime ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc...
Upon successful transaction commit automatically schedules a task for execution in the near future .
160,555
@ FFDCIgnore ( Throwable . class ) private byte [ ] serializeResult ( Object result , ClassLoader loader ) throws IOException { try { return persistentExecutor . serialize ( result ) ; } catch ( Throwable x ) { return persistentExecutor . serialize ( new TaskFailure ( x , loader , persistentExecutor , TaskFailure . NON...
Utility method that serializes a task result or the failure that occurred when attempting to serialize the task result .
160,556
protected Converter createConverter ( FaceletContext ctx ) throws FacesException , ELException , FaceletException { return ctx . getFacesContext ( ) . getApplication ( ) . createConverter ( NumberConverter . CONVERTER_ID ) ; }
Returns a new NumberConverter
160,557
public void queueDataReceivedInvocation ( Connection connection , ReceiveListener listener , WsByteBuffer data , int segmentType , int requestNumber , int priority , boolean allocatedFromBufferPool , boolean partOfExchange , Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnab...
Queues the invocation of a data received method into the dispatcher .
160,558
public static ReceiveListenerDispatcher getInstance ( Conversation . ConversationType convType , boolean isOnClientSide ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getInstance" , new Object [ ] { "" + convType , "" + isOnClientSide } ) ; ReceiveListenerDispatcher...
Return a reference to the instance of this class . Used to implement the singleton design pattern .
160,559
public static boolean isCommandLine ( ) { String output = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { public String run ( ) { return System . getProperty ( "wlp.process.type" ) ; } } ) ; boolean value = true ; if ( output != null && ( "server" . equals ( output ) || "client" . equals ( outpu...
Returns true when the value of wlp . process . type is neither server nor client . false otherwise .
160,560
public static String getInstallRoot ( ) { return AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { public String run ( ) { String output = System . getProperty ( "wlp.install.dir" ) ; if ( output == null ) { output = System . getenv ( "WLP_INSTALL_DIR" ) ; } if ( output == null ) { URL url = CLASS...
Returns the installation root . If it wasn t detected use current directory .
160,561
public static ResourceBundle getResourceBundle ( File location , String name , Locale locale ) { File [ ] files = new File [ ] { new File ( location , name + "_" + locale . toString ( ) + RESOURCE_FILE_EXT ) , new File ( location , name + "_" + locale . getLanguage ( ) + RESOURCE_FILE_EXT ) , new File ( location , name...
find the best matching resouce bundle of the specified resouce file name .
160,562
public static List < CustomManifest > findCustomEncryption ( String extension ) throws IOException { List < File > dirs = listRootAndExtensionDirectories ( ) ; return findCustomEncryption ( dirs , TOOL_EXTENSION_DIR + extension ) ; }
Find the URL of the jar file which includes specified class . If there is none return empty array .
160,563
protected static List < CustomManifest > findCustomEncryption ( List < File > rootDirs , String path ) throws IOException { List < CustomManifest > list = new ArrayList < CustomManifest > ( ) ; for ( File dir : rootDirs ) { dir = new File ( dir , path ) ; if ( exists ( dir ) ) { File [ ] files = listFiles ( dir ) ; if ...
Find the custom encryption manifest files from the specified list of root directories and path name . The reason why there are multiple root directories is that the product extensions which will allow to add the additional root directory anywhere .
160,564
public NetworkTransportFactory getNetworkTransportFactory ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getNetworkTransportFactory" ) ; NetworkTransportFactory factory = new RichClientTransportFactory ( framework ) ; if ( TraceComponent . isAnyTracingEnabl...
This method is our entry point into the Channel Framework implementation of the JFap Framework interfaces .
160,565
public Map getOutboundConnectionProperties ( String outboundTransportName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getOutboundConnectionProperties" , outboundTransportName ) ; ChainData chainData = framework . getChain ( outboundTransportName ) ; Channe...
This method will retrieve the property bag on the named chain so that it can be determined what properties have been set on it .
160,566
public Map getOutboundConnectionProperties ( Object ep ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getOutboundConnectionProperties" , ep ) ; Map properties = null ; if ( ep instanceof CFEndPoint ) { OutboundChannelDefinition [ ] channelDefinitions = ( Outb...
This method will retrieve the property bag on the outbound chain that will be used by the specified end point . This method is only valid for CFEndPoints .
160,567
public InetAddress getHostAddress ( Object endPoint ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getHostAddress" , endPoint ) ; InetAddress address = null ; if ( endPoint instanceof CFEndPoint ) { address = ( ( CFEndPoint ) endPoint ) . getAddress ( ) ; } i...
Retrieves the host address from the specified CFEndPoint .
160,568
public int getHostPort ( Object endPoint ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getHostPort" , endPoint ) ; int port = 0 ; if ( endPoint instanceof CFEndPoint ) { port = ( ( CFEndPoint ) endPoint ) . getPort ( ) ; } if ( TraceComponent . isAnyTracingE...
Retrieves the host port from the specified CFEndPoint .
160,569
public boolean areEndPointsEqual ( Object ep1 , Object ep2 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "areEndPointsEqual" , new Object [ ] { ep1 , ep2 } ) ; boolean isEqual = false ; if ( ep1 instanceof CFEndPoint && ep2 instanceof CFEndPoint ) { CFEndPoin...
The channel framework EP s don t have their own equals method - so one is implemented here by comparing the various parts of the EP .
160,570
public int getEndPointHashCode ( Object ep ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getEndPointHashCode" , ep ) ; int hashCode = 0 ; if ( ep instanceof CFEndPoint ) { CFEndPoint cfEndPoint = ( CFEndPoint ) ep ; if ( cfEndPoint . getAddress ( ) != null )...
The channel framework EP s don t have their own hashCode method - so one is implemented here using the various parts of the EP .
160,571
private CFEndPoint cloneEndpoint ( final CFEndPoint originalEndPoint ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "cloneEndpoint" , originalEndPoint ) ; CFEndPoint endPoint ; ByteArrayOutputStream baos = null ; ObjectOutputStream out = null ; ObjectInputStre...
Creates a copy of originalEndPoint . This is to prevent us causing problems when we change it . As there is no exposed way to do this we will use serialization . It may be a bit slow but it is implementation safe as the implementation of CFEndPoint is designed to be serialized by WLM . Plus we only need to do this when...
160,572
private Throwable getCause ( Throwable t ) { Throwable cause = t . getCause ( ) ; if ( t . getCause ( ) != null ) { return cause ; } else { return t ; } }
get if cause exists else return the original exception
160,573
public String traceLogFormat ( LogRecord logRecord , Object id , String formattedMsg , String formattedVerboseMsg ) { final String txt ; if ( formattedVerboseMsg == null ) { txt = formatVerboseMessage ( logRecord , formattedMsg , false ) ; } else { txt = formattedVerboseMsg ; } return createFormattedString ( logRecord ...
Format a detailed record for trace . log . Previously formatted messages may be provided and may be reused if possible .
160,574
private Object formatVerboseObj ( Object obj ) { if ( obj instanceof TruncatableThrowable ) { TruncatableThrowable truncatable = ( TruncatableThrowable ) obj ; final Throwable wrappedException = truncatable . getWrappedException ( ) ; return DataFormatHelper . throwableToString ( wrappedException ) ; } else if ( obj in...
Format an object for a verbose message .
160,575
protected String formatStreamOutput ( GenericData genData ) { String txt = null ; String loglevel = null ; KeyValuePair kvp = null ; KeyValuePair [ ] pairs = genData . getPairs ( ) ; for ( KeyValuePair p : pairs ) { if ( p != null && ! p . isList ( ) ) { kvp = p ; if ( kvp . getKey ( ) . equals ( "message" ) ) { txt = ...
Outputs filteredStream of genData
160,576
private void createTimeout ( IAbstractAsyncFuture future , long delay , boolean isRead ) { if ( AsyncProperties . disableTimeouts ) { return ; } long timeoutTime = ( System . currentTimeMillis ( ) + delay + Timer . timeoutRoundup ) & Timer . timeoutResolution ; synchronized ( future . getCompletedSemaphore ( ) ) { if (...
Create the delayed timeout work item for this request .
160,577
public void refresh ( ) { this . productProperties = new Properties ( ) ; FileInputStream fis = null ; try { fis = new FileInputStream ( new File ( this . installDir , PRODUCT_PROPERTIES_PATH ) ) ; this . productProperties . load ( fis ) ; } catch ( Exception e ) { } finally { InstallUtils . close ( fis ) ; } featureDe...
Resets productProperties featureDefs installFeatureDefs and mfp .
160,578
public static RequestMetadata getRequestMetadata ( ) { RequestMetadata metadata = threadLocal . get ( ) ; if ( metadata == null ) metadata = getNoMetadata ( ) ; return metadata ; }
Gets the metadata for the current request
160,579
public void initialize ( int [ ] bufferEntrySizes , int [ ] bufferEntryDepths ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "initialize" ) ; } int len = bufferEntrySizes . length ; int [ ] bSizes = new int [ len ] ; int [ ] bDepths = new int [ len ] ; int sizeCompare...
Initialize the pool manager with the number of pools the entry sizes for each pool and the maximum depth of the free pool .
160,580
public void setLeakDetectionSettings ( int interval , String output ) throws IOException { this . leakDetectionInterval = interval ; this . leakDetectionOutput = TrConfigurator . getLogLocation ( ) + File . separator + output ; if ( ( interval > - 1 ) && ( output != null ) ) { FileWriter outFile = new FileWriter ( this...
Set the memory leak detection parameters . If the interval is 0 or greater then the detection code will enabled .
160,581
public WsByteBuffer allocateFileChannelBuffer ( FileChannel fc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "allocateFileChannelBuffer" ) ; } return new FCWsByteBufferImpl ( fc ) ; }
Allocate a buffer which will use tha FileChannel until the buffer needs to be used in a non - FileChannel way .
160,582
protected WsByteBufferImpl allocateBufferDirect ( WsByteBufferImpl buffer , int size , boolean overrideRefCount ) { DirectByteBufferHelper directByteBufferHelper = this . directByteBufferHelper . get ( ) ; ByteBuffer byteBuffer ; if ( directByteBufferHelper != null ) { byteBuffer = directByteBufferHelper . allocateDire...
Allocate the direct ByteBuffer that will be wrapped by the input WsByteBuffer object .
160,583
protected void releasing ( ByteBuffer buffer ) { if ( buffer != null && buffer . isDirect ( ) ) { DirectByteBufferHelper directByteBufferHelper = this . directByteBufferHelper . get ( ) ; if ( directByteBufferHelper != null ) { directByteBufferHelper . releaseDirectByteBuffer ( buffer ) ; } } }
Method called when a buffer is being destroyed to allow any additional cleanup that might be required .
160,584
public String debug ( ) { String data = null ; StringBuffer sb = new StringBuffer ( ) ; sb . append ( "ConsumerProperties" ) ; sb . append ( "\n" ) ; sb . append ( "------------------" ) ; sb . append ( "\n" ) ; sb . append ( "Destination: " ) ; sb . append ( getJmsDestination ( ) ) ; sb . append ( "\n" ) ; sb . append...
Returns a printable form of the information stored in this object .
160,585
private Pattern loadAcceptPattern ( ExternalContext context ) { assert context != null ; String mappings = context . getInitParameter ( ViewHandler . FACELETS_VIEW_MAPPINGS_PARAM_NAME ) ; if ( mappings == null ) { return null ; } mappings = mappings . trim ( ) ; if ( mappings . length ( ) == 0 ) { return null ; } retur...
Load and compile a regular expression pattern built from the Facelet view mapping parameters .
160,586
private String toRegex ( String mappings ) { assert mappings != null ; mappings = mappings . replaceAll ( "\\s" , "" ) ; mappings = mappings . replaceAll ( "\\." , "\\\\." ) ; mappings = mappings . replaceAll ( "\\*" , ".*" ) ; mappings = mappings . replaceAll ( ";" , "|" ) ; return mappings ; }
Convert the specified mapping string to an equivalent regular expression .
160,587
protected void prepareConduitSelector ( Message message , URI currentURI , boolean proxy ) { try { cfg . prepareConduitSelector ( message ) ; } catch ( Fault ex ) { LOG . warning ( "Failure to prepare a message from conduit selector" ) ; } message . getExchange ( ) . put ( ConduitSelector . class , cfg . getConduitSele...
or web client invocation has returned
160,588
public boolean isCorruptOrIndoubt ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isCorruptOrIndoubt" ) ; boolean isCorruptOrIndoubt = _targetDestinationHandler . isCorruptOrIndoubt ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Si...
Is a real target destination corrupt?
160,589
public void delete ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "delete" ) ; _targetDestinationHandler . removeTargettingAlias ( this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "delete" ) ; }
This destination handler is being deleted and should perform any processing required .
160,590
protected void setLayoutToPrimary ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int segmentType , SendListener sendListener ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToPrimary" , new Object [ ] { "" + segmentLength , "" + priority , "" + i...
Sets the layout to use for this transmission to be a primary header only .
160,591
protected void setLayoutToConversation ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int segmentType , int conversationId , int requestNumber , Conversation conversation , SendListener sendListener ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayou...
Set layout for transmission to build to have a conversation header .
160,592
protected void setLayoutToStartSegment ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int segmentType , int conversationId , int requestNumber , long totalLength ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToStartSegment" , new Object [ ] { "...
Set next transmission being built to have a segment start layout
160,593
protected void setLayoutToMiddleSegment ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int conversationId , int requestNumber ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToMiddleSegment" , new Object [ ] { "" + segmentLength , "" + priority ,...
Set next transmission being built to have a segment middle layout
160,594
protected void setLayoutToEndSegment ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int conversationId , int requestNumber , Conversation conversation , SendListener sendListener ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToSegmentEnd" , new...
Set next transmission being built to have a segment end layout
160,595
protected boolean isPooledBuffers ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isPooledBuffers" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isPooledBuffers" , "" + primaryHeaderFields . isPooled ) ; return primaryHeaderFields . isPooled ; }
Returns true iff this transmission should be received into pooled buffers .
160,596
protected boolean isUserRequest ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isUserRequest" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isUserRequest" , "" + isUserRequest ) ; return isUserRequest ; }
Returns true iff this transmission is a user request .
160,597
protected boolean isTerminal ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isTermainl" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isTermainl" , "" + isTerminal ) ; return isTerminal ; }
Returns true if this transmission should stop this connection from writing any more data to the socket .
160,598
private boolean buildHeader ( HeaderFields headerFields , WsByteBuffer xmitBuffer ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "buildHeader" , new Object [ ] { headerFields , xmitBuffer } ) ; if ( tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWsByteBufferInfo ( this , tc , xmitBuffer , "xmitBuffer" ...
Builds a header from a description of the header fields . The header is incrementally built into the supplied transmission buffer . This may require use of a scratch space in the event that there is insufficient room in the transmission buffer on the first attempt .
160,599
private boolean buildPayload ( WsByteBuffer xmitBuffer ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "buildPayload" , xmitBuffer ) ; if ( tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWsByteBufferInfo ( this , tc , xmitBuffer , "xmitBuffer" ) ; boolean payloadFinished = false ; int amountCopied , amo...
Builds a transmission payload into the supplied buffer . This may be done incrementally by multiple invocations in the case that the supplied buffer is smaller than the payload being built .