idx
int64
0
41.2k
question
stringlengths
83
4.15k
target
stringlengths
5
715
36,800
private boolean isStoppingStoppedOrFailed ( ) { BatchStatus jobBatchStatus = runtimeWorkUnitExecution . getBatchStatus ( ) ; if ( jobBatchStatus . equals ( BatchStatus . STOPPING ) || jobBatchStatus . equals ( BatchStatus . STOPPED ) || jobBatchStatus . equals ( BatchStatus . FAILED ) ) { return true ; } return false ;...
Today we know the PartitionedStepControllerImpl always runs in the JVM of the top - level job and so will be notified on the top - level stop .
36,801
private void partitionFinished ( PartitionReplyMsg msg ) { JoblogUtil . logToJobLogAndTraceOnly ( Level . FINE , "partition.ended" , new Object [ ] { msg . getPartitionPlanConfig ( ) . getPartitionNumber ( ) , msg . getBatchStatus ( ) , msg . getExitStatus ( ) , msg . getPartitionPlanConfig ( ) . getStepName ( ) , msg ...
Issue message for partition finished and add it to the finishedWork list .
36,802
private void waitForNextPartitionToFinish ( List < Throwable > analyzerExceptions , List < Integer > finishedPartitions ) throws JobStoppingException { boolean isStoppingStoppedOrFailed = false ; PartitionReplyMsg msg = null ; do { if ( isMultiJvm ) { if ( isStoppingStoppedOrFailed ( ) ) { isStoppingStoppedOrFailed = t...
Wait and process the data sent back by the partitions . This method returns as soon as the next partition sends back an i m finished message .
36,803
@ FFDCIgnore ( JobStoppingException . class ) private void executeAndWaitForCompletion ( PartitionPlanDescriptor currentPlan ) throws JobRestartException { if ( isStoppingStoppedOrFailed ( ) ) { logger . fine ( "Job already in " + runtimeWorkUnitExecution . getWorkUnitJobContext ( ) . getBatchStatus ( ) . toString ( ) ...
Spawn the partitions and wait for them to complete .
36,804
private void checkFinishedPartitions ( ) { List < String > failingPartitionSeen = new ArrayList < String > ( ) ; boolean stoppedPartitionSeen = false ; for ( PartitionReplyMsg replyMsg : finishedWork ) { BatchStatus batchStatus = replyMsg . getBatchStatus ( ) ; if ( logger . isLoggable ( Level . FINE ) ) { logger . fin...
check the batch status of each subJob after it s done to see if we need to issue a rollback start rollback if any have stopped or failed
36,805
protected void invokePreStepArtifacts ( ) { if ( stepListeners != null ) { for ( StepListenerProxy listenerProxy : stepListeners ) { listenerProxy . beforeStep ( ) ; } } if ( this . partitionReducerProxy != null ) { this . partitionReducerProxy . beginPartitionedStep ( ) ; } }
Invoke the StepListeners and PartitionReducer .
36,806
private static String getClassNameandPath ( String className , Path path ) { if ( path == null ) { return getClassNameandPath ( className , "/" ) ; } else { return getClassNameandPath ( className , path . value ( ) ) ; } }
start Liberty change
36,807
private static boolean checkMethodDispatcher ( ClassResourceInfo cr ) { if ( cr . getMethodDispatcher ( ) . getOperationResourceInfos ( ) . isEmpty ( ) ) { LOG . warning ( new org . apache . cxf . common . i18n . Message ( "NO_RESOURCE_OP_EXC" , BUNDLE , cr . getServiceClass ( ) . getName ( ) ) . toString ( ) ) ; retur...
end Liberty change
36,808
public void run ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . entry ( tc , "run" ) ; int numPools ; synchronized ( this ) { if ( ivIsCanceled ) { return ; } ivIsRunning = true ; numPools = pools . size ( ) ; if ( numPools > 0 ) { if ( numPool...
Handle the scavenger alarm . Scan the list of pools and drain all inactive ones .
36,809
private Object addBatch ( Object implObject , Method method , Object [ ] args ) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException , SQLException { Object sqljPstmt = args [ 0 ] ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled...
Invokes addBatch after replacing the parameter with the DB2 impl object if proxied .
36,810
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 .
36,811
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 .
36,812
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 .
36,813
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 .
36,814
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 .
36,815
public String resolveString ( String value , boolean ignoreWarnings ) throws ConfigEvaluatorException { value = variableEvaluator . resolveVariables ( value , this , ignoreWarnings ) ; return value ; }
Tries to resolve variables .
36,816
@ 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 .
36,817
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 .
36,818
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 .
36,819
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 } )
36,820
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 .
36,821
private boolean isRestricted ( Permission permission ) { for ( Permission restrictedPermission : restrictablePermissions ) { if ( restrictedPermission . implies ( permission ) ) { return true ; } } return false ; }
Check if this is a restricted permission .
36,822
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 .
36,823
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 .
36,824
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 .
36,825
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
36,826
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
36,827
BusGroup getBus ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getBus" ) ; SibTr . exit ( tc , "getBus" , iBusGroup ) ; } return iBusGroup ; }
Gets the Bus for this Neighbour
36,828
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
36,829
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
36,830
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 .
36,831
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
36,832
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 .
36,833
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 .
36,834
protected MESubscription getSubscription ( SIBUuid12 topicSpace , String topic ) { return ( MESubscription ) iProxies . get ( BusGroup . subscriptionKey ( topicSpace , topic ) ) ; }
Gets the MESubscription represented from this topicSpace and topic
36,835
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 .
36,836
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
36,837
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 .
36,838
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 .
36,839
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 .
36,840
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 .
36,841
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 .
36,842
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 .
36,843
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
36,844
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 .
36,845
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 .
36,846
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 .
36,847
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 .
36,848
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 .
36,849
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 .
36,850
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
36,851
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 .
36,852
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 .
36,853
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 .
36,854
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 .
36,855
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 .
36,856
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 .
36,857
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 .
36,858
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 .
36,859
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 .
36,860
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
36,861
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 .
36,862
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 .
36,863
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 .
36,864
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 .
36,865
@ 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 .
36,866
protected Converter createConverter ( FaceletContext ctx ) throws FacesException , ELException , FaceletException { return ctx . getFacesContext ( ) . getApplication ( ) . createConverter ( NumberConverter . CONVERTER_ID ) ; }
Returns a new NumberConverter
36,867
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 .
36,868
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 .
36,869
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 .
36,870
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 .
36,871
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 .
36,872
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 .
36,873
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 .
36,874
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 .
36,875
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 .
36,876
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 .
36,877
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 .
36,878
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 .
36,879
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 .
36,880
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 .
36,881
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...
36,882
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
36,883
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 .
36,884
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 .
36,885
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
36,886
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 .
36,887
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 .
36,888
public static RequestMetadata getRequestMetadata ( ) { RequestMetadata metadata = threadLocal . get ( ) ; if ( metadata == null ) metadata = getNoMetadata ( ) ; return metadata ; }
Gets the metadata for the current request
36,889
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 .
36,890
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 .
36,891
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 .
36,892
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 .
36,893
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 .
36,894
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 .
36,895
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 .
36,896
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 .
36,897
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
36,898
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?
36,899
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 .