_id
stringlengths
2
7
title
stringlengths
3
140
partition
stringclasses
3 values
text
stringlengths
73
34.1k
language
stringclasses
1 value
meta_information
dict
q152400
ControlMessageFactoryImpl.createNewControlResetRequestAckAck
train
public final ControlResetRequestAckAck createNewControlResetRequestAckAck() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlResetRequestAckAck"); ControlResetRequestAckAck msg = null; try { msg = new ControlResetRe...
java
{ "resource": "" }
q152401
ControlMessageFactoryImpl.createNewControlBrowseGet
train
public final ControlBrowseGet createNewControlBrowseGet() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlBrowseGet"); ControlBrowseGet msg = null; try { msg = new ControlBrowseGetImpl(MfpConstants.CONSTRUCTOR_NO_O...
java
{ "resource": "" }
q152402
ControlMessageFactoryImpl.createNewControlBrowseEnd
train
public final ControlBrowseEnd createNewControlBrowseEnd() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlBrowseEnd"); ControlBrowseEnd msg = null; try { msg = new ControlBrowseEndImpl(MfpConstants.CONSTRUCTOR_NO_O...
java
{ "resource": "" }
q152403
ControlMessageFactoryImpl.createNewControlBrowseStatus
train
public final ControlBrowseStatus createNewControlBrowseStatus() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlBrowseStatus"); ControlBrowseStatus msg = null; try { msg = new ControlBrowseStatusImpl(MfpConstants.C...
java
{ "resource": "" }
q152404
ControlMessageFactoryImpl.createNewControlCompleted
train
public final ControlCompleted createNewControlCompleted() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlCompleted"); ControlCompleted msg = null; try { msg = new ControlCompletedImpl(MfpConstants.CONSTRUCTOR_NO_O...
java
{ "resource": "" }
q152405
ControlMessageFactoryImpl.createNewControlDecisionExpected
train
public final ControlDecisionExpected createNewControlDecisionExpected() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlDecisionExpected"); ControlDecisionExpected msg = null; try { msg = new ControlDecisionExpecte...
java
{ "resource": "" }
q152406
ControlMessageFactoryImpl.createNewControlCreateStream
train
public final ControlCreateStream createNewControlCreateStream() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlCreateStream"); ControlCreateStream msg = null; try { msg = new ControlCreateStreamImpl(MfpConstants.C...
java
{ "resource": "" }
q152407
ControlMessageFactoryImpl.createNewControlAreYouFlushed
train
public final ControlAreYouFlushed createNewControlAreYouFlushed() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlAreYouFlushed"); ControlAreYouFlushed msg = null; try { msg = new ControlAreYouFlushedImpl(MfpConsta...
java
{ "resource": "" }
q152408
ControlMessageFactoryImpl.createNewControlFlushed
train
public final ControlFlushed createNewControlFlushed() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlFlushed"); ControlFlushed msg = null; try { msg = new ControlFlushedImpl(MfpConstants.CONSTRUCTOR_NO_OP); } ...
java
{ "resource": "" }
q152409
ControlMessageFactoryImpl.createNewControlNotFlushed
train
public final ControlNotFlushed createNewControlNotFlushed() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlNotFlushed"); ControlNotFlushed msg = null; try { msg = new ControlNotFlushedImpl(MfpConstants.CONSTRUCTOR...
java
{ "resource": "" }
q152410
ControlMessageFactoryImpl.createNewControlRequestFlush
train
public final ControlRequestFlush createNewControlRequestFlush() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlRequestFlush"); ControlRequestFlush msg = null; try { msg = new ControlRequestFlushImpl(MfpConstants.C...
java
{ "resource": "" }
q152411
ControlMessageFactoryImpl.createNewControlRequestCardinalityInfo
train
public final ControlRequestCardinalityInfo createNewControlRequestCardinalityInfo() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlRequestCardinalityInfo"); ControlRequestCardinalityInfo msg = null; try { msg = ne...
java
{ "resource": "" }
q152412
ControlMessageFactoryImpl.createNewControlCardinalityInfo
train
public final ControlCardinalityInfo createNewControlCardinalityInfo() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlCardinalityInfo"); ControlCardinalityInfo msg = null; try { msg = new ControlCardinalityInfoImpl...
java
{ "resource": "" }
q152413
ControlMessageFactoryImpl.createNewControlCreateDurable
train
public final ControlCreateDurable createNewControlCreateDurable() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlCreateDurable"); ControlCreateDurable msg = null; try { msg = new ControlCreateDurableImpl(MfpConsta...
java
{ "resource": "" }
q152414
ControlMessageFactoryImpl.createNewControlDeleteDurable
train
public final ControlDeleteDurable createNewControlDeleteDurable() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlDeleteDurable"); ControlDeleteDurable msg = null; try { msg = new ControlDeleteDurableImpl(MfpConsta...
java
{ "resource": "" }
q152415
ControlMessageFactoryImpl.createNewControlDurableConfirm
train
public final ControlDurableConfirm createNewControlDurableConfirm() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlDurableConfirm"); ControlDurableConfirm msg = null; try { msg = new ControlDurableConfirmImpl(MfpC...
java
{ "resource": "" }
q152416
LibertyJaxWsServlet.service
train
@Override public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException { HttpServletRequest request; HttpServletResponse response; try { request = (HttpServletRequest) req; if (collaborator != null) { ...
java
{ "resource": "" }
q152417
LibertyJaxWsServlet.reportAvailableService
train
private void reportAvailableService(HttpServletRequest request, HttpServletResponse response) throws IOException { PrintWriter writer = response.getWriter(); response.setContentType(HTML_CONTENT_TYPE); writer.println("<h2>" + request.getServletPath() + "</h2>"); writer.println("<h3>Hello...
java
{ "resource": "" }
q152418
AbstractInputHandler.registerForEvents
train
public void registerForEvents(SIMPMessage msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "registerForEvents", msg); msg.registerMessageEventListener(MessageEvents.PRE_PREPARE_TRANSACTION, this); //183715.1 // If COD reports required, register for the prePrepare ca...
java
{ "resource": "" }
q152419
AbstractInputHandler.remoteToLocalPut
train
protected void remoteToLocalPut(MessageItem msgItem) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "remoteToLocalPut", new Object[] { msgItem }); _targetStreamManager.handleMessage(msgItem); if (TraceComponent...
java
{ "resource": "" }
q152420
AbstractInputHandler.reconstituteTargetStreams
train
public void reconstituteTargetStreams(StreamSet streamSet) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "reconstituteTargetStreams", streamSet); _targetStreamManager.reconstituteStreamSet(streamSet); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable...
java
{ "resource": "" }
q152421
AbstractInputHandler.handleMessage
train
public OutputHandler handleMessage(MessageItem msg) throws SIMPNotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "handleMessage", msg); //Set the current arrival time for the msg msg.setCurrentMEArrivalTimestamp(System.cu...
java
{ "resource": "" }
q152422
AbstractInputHandler.registerMessage
train
public void registerMessage(MessageItem msg, TransactionCommon tran) throws SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "registerMessage", new Object[] { msg, tran }); if (tran != null && !tran.isAlive()) { SIMPIncorrectCallExcep...
java
{ "resource": "" }
q152423
ProcessControlHelper.dump
train
public ReturnCode dump() { System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverDumping"), serverName)); Set<JavaDumpAction> javaDumpActions = new LinkedHashSet<JavaDumpAction>(); parseJavaDumpInclude(javaDumpActions); ServerDumpPackager sdp = new S...
java
{ "resource": "" }
q152424
ProcessControlHelper.readJavaDumpLocations
train
public static Map<JavaDumpAction, String> readJavaDumpLocations(File javaDumpLocationFile) { Map<JavaDumpAction, String> fileLocations = new EnumMap<JavaDumpAction, String>(JavaDumpAction.class); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(n...
java
{ "resource": "" }
q152425
ProcessControlHelper.createDumps
train
private ReturnCode createDumps(Set<JavaDumpAction> javaDumpActions, boolean introspect, String dumpTimestamp) { ServerLock serverLock = ServerLock.createTestLock(bootProps); ReturnCode dumpRc = ReturnCode.OK; // The lock file may have been (erroneously) deleted: this can happen on linux ...
java
{ "resource": "" }
q152426
ProcessControlHelper.pause
train
public ReturnCode pause() { // Use initialized bootstrap configuration to find the server lock file. ServerLock serverLock = ServerLock.createTestLock(bootProps); // we can not pre-test the server: on some platforms, the server lock file // can be deleted, which means waiting to see if ...
java
{ "resource": "" }
q152427
JspVisitor.shouldSkipChildren
train
protected boolean shouldSkipChildren (Element jspElement) throws JspCoreException { if (!shouldSkipChildrenForThisVisitor()) { return false; } String uri = jspElement.getNamespaceURI(); String name = jspElement.getLocalName(); NodeList children; ...
java
{ "resource": "" }
q152428
AsynchConsumerQueue.put
train
public void put(QueueData queueData, short msgBatch) // f200337 { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", new Object[] {queueData, ""+msgBatch}); synchronized(this) { if (!ordered && batchesReady == 1) { // A non-o...
java
{ "resource": "" }
q152429
AsynchConsumerQueue.appendToLastMessage
train
public void appendToLastMessage(CommsByteBuffer msgBuffer, boolean lastChunk) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "appendToLastMessage", new Object[]{msgBuffer, lastChunk}); synchronized (this) { ...
java
{ "resource": "" }
q152430
AsynchConsumerQueue.purge
train
public synchronized void purge(short sessionId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "purge", ""+sessionId); // We have to travese the queue and look at all the entries for this int[] indexsToDelete = new int[queue.size()]; int indexCount =...
java
{ "resource": "" }
q152431
AsynchConsumerQueue.getBatch
train
private synchronized JsMessage[] getBatch(int batchSize, ConversationHelper convHelper) throws SIResourceException, SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getBatch", new Object[]{bat...
java
{ "resource": "" }
q152432
ConnectorServiceImpl.setAuthDataService
train
protected void setAuthDataService(ServiceReference<AuthDataService> ref) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setAuthDataService", ref); authDataServiceRef.setReference(ref); }
java
{ "resource": "" }
q152433
ConnectorServiceImpl.setDeferrableScheduledExecutor
train
protected void setDeferrableScheduledExecutor(ServiceReference<ScheduledExecutorService> ref) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setDeferrableScheduledExecutor", ref); deferrableSchedXSvcRef.setReference(ref); }
java
{ "resource": "" }
q152434
ConnectorServiceImpl.setExecutor
train
protected void setExecutor(ServiceReference<ExecutorService> ref) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setExecutor", ref); execSvcRef.setReference(ref); }
java
{ "resource": "" }
q152435
ConnectorServiceImpl.setNonDeferrableScheduledExecutor
train
protected void setNonDeferrableScheduledExecutor(ServiceReference<ScheduledExecutorService> ref) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setNonDeferrableScheduledExecutor", ref); nonDeferrableSchedXSvcRef.setReference(ref); }
java
{ "resource": "" }
q152436
ConnectorServiceImpl.unsetAuthDataService
train
protected void unsetAuthDataService(ServiceReference<AuthDataService> ref) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "unsetAuthDataService", ref); authDataServiceRef.unsetReference(ref); }
java
{ "resource": "" }
q152437
ConnectorServiceImpl.unsetDeferrableScheduledExecutor
train
protected void unsetDeferrableScheduledExecutor(ServiceReference<ScheduledExecutorService> ref) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "unsetDeferrableScheduledExecutor", ref); deferrableSchedXSvcRef.unsetReference(ref); }
java
{ "resource": "" }
q152438
ConnectorServiceImpl.unsetExecutor
train
protected void unsetExecutor(ServiceReference<ExecutorService> ref) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "unsetExecutor", ref); execSvcRef.unsetReference(ref); }
java
{ "resource": "" }
q152439
ConnectorServiceImpl.unsetNonDeferrableScheduledExecutor
train
protected void unsetNonDeferrableScheduledExecutor(ServiceReference<ScheduledExecutorService> ref) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "unsetNonDeferrableScheduledExecutor", ref); nonDeferrableSchedXSvcRef.unsetReference(ref); }
java
{ "resource": "" }
q152440
ConnectorServiceImpl.unsetRRSXAResourceFactory
train
protected void unsetRRSXAResourceFactory(ServiceReference<Object> ref) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "unsetRRSXAResourceFactory", ref); rrsXAResFactorySvcRef.unsetReference(ref); }
java
{ "resource": "" }
q152441
SocialWebUtils.saveRequestUrlAndParameters
train
public void saveRequestUrlAndParameters(HttpServletRequest request, HttpServletResponse response) { String cookieName = ReferrerURLCookieHandler.REFERRER_URL_COOKIENAME; ReferrerURLCookieHandler referrerURLCookieHandler = getCookieHandler(); Cookie c = referrerURLCookieHandler.createCookie(cooki...
java
{ "resource": "" }
q152442
SocialWebUtils.removeRequestUrlAndParameters
train
public void removeRequestUrlAndParameters(HttpServletRequest request, HttpServletResponse response) { ReferrerURLCookieHandler referrerURLCookieHandler = getCookieHandler(); referrerURLCookieHandler.invalidateReferrerURLCookie(request, response, ReferrerURLCookieHandler.REFERRER_URL_COOKIENAME); ...
java
{ "resource": "" }
q152443
SocialWebUtils.deleteCookie
train
public void deleteCookie(HttpServletRequest request, HttpServletResponse response, String cookieName, WebAppSecurityConfig webAppSecConfig) { ReferrerURLCookieHandler referrerURLCookieHandler = getCookieHandler(); referrerURLCookieHandler.clearReferrerURLCookie(request, response, cookieName); C...
java
{ "resource": "" }
q152444
ManagedObjectFactoryImpl.getConstructor
train
@Override public Constructor<T> getConstructor() { if (this.constructor == null) { try { this.constructor = this.managedClass.getConstructor((Class<?>[]) null); } catch (NoSuchMethodException e) { throw new IllegalStateException(e); } ...
java
{ "resource": "" }
q152445
VirtualHostConfiguration.setConfiguration
train
public void setConfiguration(VirtualHost config) { this.config = config; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setConfiguration", "config set ->"+ this.config); } }
java
{ "resource": "" }
q152446
StaticCATBrowser.rcvResetBrowse
train
public static void rcvResetBrowse(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.en...
java
{ "resource": "" }
q152447
URLMatchingUtils.getLongestUrlPattern
train
public static String getLongestUrlPattern(String firstUrlPattern, String secondUrlPattern) { if (secondUrlPattern == null || (firstUrlPattern != null && firstUrlPattern.length() >= secondUrlPattern.length())) { return firstUrlPattern; } else { return secondUrlPattern;...
java
{ "resource": "" }
q152448
URLMatchingUtils.isPathNameMatch
train
public static boolean isPathNameMatch(String uri, String urlPattern) { if (urlPattern.startsWith("/") && urlPattern.endsWith("/*")) { String s = urlPattern.substring(0, urlPattern.length() - 1); /** * First case,urlPattern * /a/b/c/ matches /a/b/c/* ...
java
{ "resource": "" }
q152449
URLMatchingUtils.isExtensionMatch
train
public static boolean isExtensionMatch(String uriName, String urlPattern) { if (urlPattern.startsWith("*.")) { String ext = urlPattern.substring(1); if (uriName.endsWith(ext)) { return true; } } return false; }
java
{ "resource": "" }
q152450
AppliesToProcessor.validateEditions
train
public static void validateEditions(AppliesToFilterInfo info, String appliesToHeader) throws RepositoryResourceCreationException { if (info.getRawEditions() != null) { for (String rawEdition : info.getRawEditions()) { List<String> mappedEditions = mapRawEditionToHumanReadable(rawEdit...
java
{ "resource": "" }
q152451
AppliesToProcessor.parseAppliesToEntries
train
public static List<AppliesToEntry> parseAppliesToEntries(String appliesTo) { List<AppliesToEntry> result = new ArrayList<AppliesToEntry>(); List<List<String>> parsedProducts = doParse(appliesTo); for (List<String> parsedProduct : parsedProducts) { AppliesToEntry entry = new AppliesTo...
java
{ "resource": "" }
q152452
WebContainerLogger.getLogger
train
public static Logger getLogger(final String name, final String resourceBundleName){ WebContainerLogger tempLogger = map.get(name); if (tempLogger==null){ tempLogger = (WebContainerLogger) AccessController.doPrivileged( new PrivilegedAction<WebContainerLogger>() { public WebContainerLogger run() { ...
java
{ "resource": "" }
q152453
WebContainerLogger.logp
train
public void logp(Level level, String sourceClass, String sourceMethod,String msg) { delegateLogger.logp(level,sourceClass,sourceMethod,msg); }
java
{ "resource": "" }
q152454
WebContainerLogger.throwableToString
train
public static String throwableToString(Throwable t) { StringWriter s = new StringWriter(); PrintWriter p = new PrintWriter(s); t.printStackTrace(p); return s.toString(); }
java
{ "resource": "" }
q152455
ServerCache.getJspCache
train
public static JSPCache getJspCache(String cacheName) { final String methodName = "getJspCache()"; JSPCache cacheOut = null; if (servletCacheEnabled == false) { // DYNA1059W=DYNA1059W: WebSphere Dynamic Cache instance named {0} cannot be used because of Dynamic Servlet // ...
java
{ "resource": "" }
q152456
ServerCache.getCommandCache
train
public static CommandCache getCommandCache(String cacheName) { final String methodName = "getCommandCache()"; CommandCache cacheOut = null; if (servletCacheEnabled == false) { // DYNA1059W=DYNA1059W: WebSphere Dynamic Cache instance named {0} cannot be used because of Dynamic Servlet...
java
{ "resource": "" }
q152457
ServerCache.getCache
train
@Trivial public static DCache getCache(String cacheName) { final String methodName = "getCache()"; DCache cacheOut = ServerCache.cache; if (cacheName != null) { cacheName = normalizeCacheName(cacheName, null); } if (cacheName != null && !cacheName.equalsIgnoreC...
java
{ "resource": "" }
q152458
ServerCache.getConfiguredCache
train
public static DCache getConfiguredCache(String cacheName) { final String methodName = "getConfiguredCache()"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, methodName + " input cacheName=" + cacheName); } DCache cacheOut = null; if (c...
java
{ "resource": "" }
q152459
ServerCache.normalizeCacheName
train
@Trivial public static String normalizeCacheName(String cacheName, CacheConfig cacheConfig) { String tempCacheName = cacheName; if (cacheName.equalsIgnoreCase(DCacheBase.DEFAULT_BASE_JNDI_NAME)) { tempCacheName = DCacheBase.DEFAULT_CACHE_NAME; } else if (cacheName.equalsIgnore...
java
{ "resource": "" }
q152460
LocalTIDTable.getLocalTID
train
public static int getLocalTID(TransactionImpl tran) { if (tc.isEntryEnabled()) Tr.entry(tc, "getLocalTID", tran); int id; while (true) { // Capture the current seed value. Do another increment // and shift by the difference of current seed. Due to ...
java
{ "resource": "" }
q152461
LocalTIDTable.removeLocalTID
train
public static void removeLocalTID(int localTID) { if (tc.isEntryEnabled()) Tr.entry(tc, "removeLocalTID", localTID); localTIDMap.remove(localTID); if (tc.isEntryEnabled()) Tr.exit(tc, "removeLocalTID"); }
java
{ "resource": "" }
q152462
LocalTIDTable.getAllTransactions
train
public static TransactionImpl[] getAllTransactions() { if (tc.isEntryEnabled()) Tr.entry(tc, "getAllTransactions"); final Collection<TransactionImpl> txns = localTIDMap.values(); if (txns != null) { if (tc.isEntryEnabled()) Tr.exit(tc, "getAllTransactions", txns); ...
java
{ "resource": "" }
q152463
WSJdbcCallableStatement.createWrapper
train
protected WSJdbcResultSet createWrapper(ResultSet rsetImpl) { // If the childWrapper is null, and the childWrappers is null or // empty, set the result set to childWrapper; // Otherwise, add the result set to childWrappers WSJdbcResultSet rsetWrapper; if (childWrapper == null &&...
java
{ "resource": "" }
q152464
WSJdbcCallableStatement.getCursor
train
private Object getCursor(Object implObject, Method method, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled(...
java
{ "resource": "" }
q152465
WSJdbcCallableStatement.getObject
train
public Object getObject(String parameterName, java.util.Map<String, Class<?>> map) throws SQLException { try { return cstmtImpl.getObject(parameterName, map); } catch (SQLException ex) { FFDCFilter.processException(ex, "...
java
{ "resource": "" }
q152466
TAIUtil.processTAIUserFeatureProps
train
public void processTAIUserFeatureProps(ConcurrentServiceReferenceMap<String, TrustAssociationInterceptor> interceptorServiceRef, String interceptorId) { invokeBeforeSSO = false; invokeAfterSSO = false; addLtpaCookieToResponse = true; ServiceRef...
java
{ "resource": "" }
q152467
TopicAclTraversalResults.consolidate
train
public void consolidate(List targets) { if (tc.isEntryEnabled()) SibTr.entry(tc, "consolidate", targets); Iterator itr = targets.iterator(); // Reset the lists for this level levelUsersAllowedToSubscribe.clear(); levelUsersAllowedToPublish.clear(); levelGroupAllowedToSubscribe.clea...
java
{ "resource": "" }
q152468
TopicAclTraversalResults.checkPermission
train
public boolean checkPermission(Principal user, int operation) { if (tc.isEntryEnabled()) SibTr.entry(tc, "checkPermission", new Object[]{user, new Integer(operation)}); boolean allowed = false; if(operation == 1) // a publish operation { // check whether permission has been grante...
java
{ "resource": "" }
q152469
CapturedOutputHolder.captureSystemStreams
train
@Override protected void captureSystemStreams() { PrintStream sysOut = System.out; PrintStream sysErr = System.err; PrintStream trSysOut = systemOut.getOriginalStream(); PrintStream trSysErr = systemErr.getOriginalStream(); if (sysOut != trSysOut) { throw new Co...
java
{ "resource": "" }
q152470
CapturedOutputHolder.echo
train
@Override public void echo(SystemLogHolder holder, LogRecord logRecord) { TraceWriter detailLog = traceLog; // Tee to messages.log (always) String message = formatter.messageLogFormat(logRecord, logRecord.getMessage()); messagesLog.writeRecord(message); invokeMessageRouters...
java
{ "resource": "" }
q152471
CapturedOutputHolder.publishTraceLogRecord
train
@Override protected void publishTraceLogRecord(TraceWriter detailLog, LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) { if (formattedVerboseMsg == null) { formattedVerboseMsg = formatter.formatVerboseMessage(logRecord, formattedMsg, false); } Leve...
java
{ "resource": "" }
q152472
JSPrimitive.setXSDTypeName
train
public void setXSDTypeName(String name) { this.xsdTypeName = name; Integer code = (Integer)JSBaseTypes.xsdTypeNames.get(name); if (code == null) throw new IllegalArgumentException("XSDTypeName=" + name); setTypeCode(code.intValue()); }
java
{ "resource": "" }
q152473
JSPrimitive.setTypeCode
train
public void setTypeCode(int typeCode) { if (typeCode <= 0 || typeCode >= JSBaseTypes.baseTypes.length) throw new IllegalArgumentException("TypeCode=" + typeCode); this.typeCode = typeCode; baseType = JSBaseTypes.baseTypes[typeCode]; }
java
{ "resource": "" }
q152474
OperatingSystem.executeProgramWithInput
train
@FFDCIgnore({ IOException.class, InterruptedException.class }) public static List<String> executeProgramWithInput(String input, String... commandLine) throws OperatingSystemException { try { ProcessBuilder builder = new ProcessBuilder(); builder.command(commandLine); Pr...
java
{ "resource": "" }
q152475
WSJdbcDataSource.getConnection
train
protected Connection getConnection(ConnectionRequestInfo connInfo) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getConnection", AdapterUtil.toString(connInfo)); // Perform wrapper i...
java
{ "resource": "" }
q152476
WSJdbcDataSource.getDefaultIsolationLevel
train
private final int getDefaultIsolationLevel() { int defaultIsolationLevel = resRefInfo == null ? Connection.TRANSACTION_NONE : resRefInfo.getIsolationLevel(); if (defaultIsolationLevel == Connection.TRANSACTION_NONE) defaultIsolationLevel = dsConfig.get().isolationLevel; if (defaultIs...
java
{ "resource": "" }
q152477
WSJdbcDataSource.replaceObject
train
Object replaceObject(ResourceRefConfigFactory resRefConfigFactory) { DSConfig config = dsConfig.get(); String filter = config.jndiName == null || config.jndiName.startsWith("java:") ? FilterUtils.createPropertyFilter("config.displayId", config.id) : Filter...
java
{ "resource": "" }
q152478
JPAPUnitInjectionBinding.newPersistenceUnit
train
private static PersistenceUnit newPersistenceUnit(final String fJndiName, final String fUnitName) { return new PersistenceUnit() { @Override public String name() { return fJndiName; } @Override public Class<? ex...
java
{ "resource": "" }
q152479
SessionManager.processConfig
train
public void processConfig(Dictionary<?, ?> props) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Session manager configuration updated"); } this.myConfig.updated(props); String value = (String) props.get("purge.interval"); if (null...
java
{ "resource": "" }
q152480
SessionManager.startPurgeTimer
train
private void startPurgeTimer() { if (null != this.future || null == this.scheduler) { return; } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Creating repeating purge event"); } this.future = this.scheduler.schedule(Sessi...
java
{ "resource": "" }
q152481
SessionManager.startPurge
train
protected void startPurge() { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isEventEnabled()) { Tr.event(tc, "Running purge of expired sessions"); } try { List<SessionImpl> toPurge = new ArrayList<SessionImpl>(); for (Ma...
java
{ "resource": "" }
q152482
SessionManager.getSession
train
public SessionImpl getSession(SessionInfo info, boolean create) { ServletContext key = info.getContext(); Map<String, SessionImpl> sessions = this.groupings.get(key); if (null == sessions) { synchronized (this.groupings) { sessions = this.groupings.get(key); ...
java
{ "resource": "" }
q152483
URIMatcher.matchAll
train
public List matchAll(String uri) { ClauseNode currentNode = root; ArrayList<Object> returnList = new ArrayList<Object>(); // extension matching done first in the matchAll case // since it is most generic // int dot = uri.lastIndexOf("."); if (dot != -1) { ...
java
{ "resource": "" }
q152484
SibRaDestinationSession.close
train
public void close() throws SIConnectionLostException, SIResourceException, SIErrorException, SIConnectionDroppedException { final String methodName = "close"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } _delegateSession.close(); ...
java
{ "resource": "" }
q152485
SibRaDestinationSession.getDestinationAddress
train
public SIDestinationAddress getDestinationAddress() { final String methodName = "getDestinationAddress"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } final SIDestinationAddress address = _delegateSession .getDestinationAddress(); ...
java
{ "resource": "" }
q152486
SibRaDestinationSession.checkValid
train
protected void checkValid() throws SISessionUnavailableException { if (!_parentConnection.isValid()) { final SISessionUnavailableException exception = new SISessionUnavailableException( NLS.getString("INVALID_SESSION_CWSIV0200")); if (TRACE.isEventEnabled()) { ...
java
{ "resource": "" }
q152487
SibRaDispatcher.close
train
void close() { final String methodName = "close"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } /* * Cancel any ongoing dispatch */ _cancelled = true; if (TraceComponent.isAny...
java
{ "resource": "" }
q152488
SibRaDispatcher.unlockMessages
train
protected final void unlockMessages(final List messageList, boolean incrementDeliveryCount) throws ResourceException { final String methodName = "unlockMessages"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messageLi...
java
{ "resource": "" }
q152489
SibRaDispatcher.readAndDeleteMessage
train
protected final SIBusMessage readAndDeleteMessage(SIMessageHandle handle, SITransaction transaction) throws ResourceException, SIMessageNotLockedException { final String methodName = "deleteMessage"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.ent...
java
{ "resource": "" }
q152490
SibRaDispatcher.deleteMessage
train
protected final void deleteMessage(SIBusMessage message, SITransaction transaction) throws ResourceException { final String methodName = "deleteMessage"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] { mes...
java
{ "resource": "" }
q152491
SibRaDispatcher.getMessageHandles
train
protected static final SIMessageHandle[] getMessageHandles( final List messageList) { final String methodName = "getMessageIds"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(TRACE, methodName, messageList); } final SIMessageH...
java
{ "resource": "" }
q152492
SibRaDispatcher.increaseRetryCount
train
protected void increaseRetryCount (final SIMessageHandle msgHandle) { final String methodName = "increaseRetryCount"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } try { SIUncoordinatedTransaction ...
java
{ "resource": "" }
q152493
CheckpointStartLogRecord.performRecovery
train
public void performRecovery(ObjectManagerState objectManagerState) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "performRecovery", ...
java
{ "resource": "" }
q152494
Cellule.isLinkCellule
train
public boolean isLinkCellule () { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isLinkCellule"); boolean rc = (this instanceof LinkCellule); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "isLinkCellule", Boolean.valueOf(rc)); return...
java
{ "resource": "" }
q152495
Cellule.isMessagingEngine
train
public boolean isMessagingEngine () { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isMessagingEngine"); boolean rc = (this instanceof MessagingEngine); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "isMessagingEngine", Boolean.valueOf(...
java
{ "resource": "" }
q152496
DirectedAcyclicGraphVerifier.verify
train
public static <T> void verify(Vertex<T> vertex) throws CyclicDependencyException { // We need a list of vertices that contains the entire graph, so build it. List<Vertex<T>> vertices = new ArrayList<Vertex<T>>(); addDependencies(vertex, vertices); verify(vertices); }
java
{ "resource": "" }
q152497
DirectedAcyclicGraphVerifier.addDependencies
train
private static <T> void addDependencies(final Vertex<T> vertex, final List<Vertex<T>> vertices) { if (!vertices.contains(vertex)) { vertices.add(vertex); for (Vertex<T> v : vertex.getDependencies()) { addDependencies(v, vertices); } ...
java
{ "resource": "" }
q152498
DirectedAcyclicGraphVerifier.verify
train
public static <T> void verify(List<Vertex<T>> vertices) throws CyclicDependencyException { // Reset the orders of all the vertices. resetVertices(vertices); // Assert that all vertices are in the vertices list and resolve each of their orders. Iterator<Vertex<T>> it = vertices.itera...
java
{ "resource": "" }
q152499
DirectedAcyclicGraphVerifier.topologicalSort
train
public static <T> void topologicalSort(final List<Vertex<T>> vertices) throws CyclicDependencyException { // Verify the graph and set the vertex orders in the process. verify(vertices); // We now that there are no cycles and that each of the vertices has an order // tha...
java
{ "resource": "" }