_id
stringlengths
2
7
title
stringlengths
3
140
partition
stringclasses
3 values
text
stringlengths
73
34.1k
language
stringclasses
1 value
meta_information
dict
q152700
ConfigValidator.generateConflictMap
train
protected Map<String, ConfigElementList> generateConflictMap(List<? extends ConfigElement> list) { return generateConflictMap(null, list); }
java
{ "resource": "" }
q152701
ConfigValidator.generateConflictMap
train
protected Map<String, ConfigElementList> generateConflictMap(RegistryEntry registryEntry, List<? extends ConfigElement> list) { if (list.size() <= 1) { return Collections.emptyMap(); } boolean foundConflict = false; Map<String, ConfigElementList> conflictMap = new HashMap<S...
java
{ "resource": "" }
q152702
ConfigValidator.generateCollisionMessage
train
private String generateCollisionMessage(String pid, ConfigID id, RegistryEntry registryEntry, Map<String, ConfigElementList> conflictMap) { StringBuilder builder = new StringBuilder(); if (id == null) { builder.append(Tr.formatMessage(tc, "config....
java
{ "resource": "" }
q152703
EJBInterceptorRegistry.getInterceptors
train
public List<Interceptor<?>> getInterceptors(J2EEName ejbJ2EEName, Method method, InterceptionType interceptionType) { List<Interceptor<?>> interceptors = new ArrayList<Interceptor<?>>(); //find the Interceptor Bindings for the ejb InterceptorBindings ejbInterceptors = allInterceptors.get(ejbJ2E...
java
{ "resource": "" }
q152704
QueuedFuture.start
train
public void start(ExecutorService executorService, Callable<Future<R>> innerTask, ThreadContextDescriptor threadContext) { synchronized (this) { this.innerTask = innerTask; this.threadContext = threadContext; //set up the future to hold the result this.resultFutur...
java
{ "resource": "" }
q152705
SibRaStringGenerator.addField
train
void addField(final String name, final Object value) throws IllegalStateException { checkNotCompleted(); _buffer.append(" <"); _buffer.append(name); _buffer.append("="); _buffer.append(value); _buffer.append(">"); }
java
{ "resource": "" }
q152706
SibRaStringGenerator.addField
train
void addField(final String name, final boolean value) throws IllegalStateException { addField(name, Boolean.toString(value)); }
java
{ "resource": "" }
q152707
SibRaStringGenerator.addPasswordField
train
void addPasswordField(final String name, final String value) throws IllegalStateException { addField(name, (value == null) ? null : "*****"); }
java
{ "resource": "" }
q152708
SibRaStringGenerator.addField
train
void addField(final String name, final long value) throws IllegalStateException { addField(name, Long.toString(value)); }
java
{ "resource": "" }
q152709
SibRaStringGenerator.addObjectIdentity
train
private void addObjectIdentity(final Object object) { if (object == null) { _buffer.append("null"); } else { _buffer.append(object.getClass().getName()); _buffer.append("@"); _buffer .append(Integer .toHexSt...
java
{ "resource": "" }
q152710
JPAComponentImpl.addIntegrationProperties
train
@Override public void addIntegrationProperties(String xmlSchemaVersion, Map<String, Object> integrationProperties) { for (JPAEMFPropertyProvider propProvider : propProviderSRs.services()) { propProvider.updateProperties(integrationProperties); ...
java
{ "resource": "" }
q152711
LogRepositoryComponent.getBinaryHandler
train
private static synchronized LogRecordHandler getBinaryHandler() { if (binaryHandler == null) { binaryHandler = new LogRecordHandler(TRACE_THRESHOLD, LogRepositoryManagerImpl.KNOWN_FORMATTERS[0]); } return binaryHandler; }
java
{ "resource": "" }
q152712
LogRepositoryComponent.removeFiles
train
public static boolean removeFiles(String destinationType) { LogRepositoryManager destManager = getManager(destinationType) ; if (destManager instanceof LogRepositoryManagerImpl) return destManager.purgeOldFiles() ; else return false ; }
java
{ "resource": "" }
q152713
LogRepositoryComponent.addRemoteProcessFile
train
public static String addRemoteProcessFile(String destinationType, long spTimeStamp, String spPid, String spLabel) { LogRepositoryManager destManager = getManager(destinationType) ; String subProcessFileName = null ; if (destManager instanceof LogRepositoryManagerImpl) subProcessFileName = ((LogRepositoryManage...
java
{ "resource": "" }
q152714
LogRepositoryComponent.inactivateSubProcess
train
public static void inactivateSubProcess(String spPid) { LogRepositoryManager destManager = getManager(LogRepositoryBaseImpl.TRACETYPE) ; ((LogRepositoryManagerImpl)destManager).inactivateSubProcess(spPid) ; destManager = getManager(LogRepositoryBaseImpl.LOGTYPE) ; ((LogRepositoryManagerImpl)destManager).inactiv...
java
{ "resource": "" }
q152715
LogRepositoryComponent.setLogDirectoryDestination
train
public static synchronized void setLogDirectoryDestination(String location, boolean enablePurgeBySize, boolean enablePurgeByTime, boolean enableFileSwitch, boolean enableBuffering, long maxRepositorySize, long retentionTime, int fileSwitchHour, String outOfSpaceAction) { LOG_DESTINATION_CHANGER.setDirectoryDest...
java
{ "resource": "" }
q152716
LogRepositoryComponent.setTraceDirectoryDestination
train
public static synchronized void setTraceDirectoryDestination(String location, boolean enablePurgeBySize, boolean enablePurgeByTime, boolean enableFileSwitch, boolean enableBuffering, long maxRepositorySize, long retentionTime, int fileSwitchHour, String outOfSpaceAction) { TRACE_DESTINATION_CHANGER.setDirectory...
java
{ "resource": "" }
q152717
LogRepositoryComponent.setTraceMemoryDestination
train
public static synchronized void setTraceMemoryDestination(String location, long maxSize) { LogRepositoryWriter old = getBinaryHandler().getTraceWriter(); LogRepositoryWriterCBuffImpl writer; // Check if trace writer need to be changed. if (location == null && old instanceof LogRepositoryWriterCBuffImpl) { wr...
java
{ "resource": "" }
q152718
LogRepositoryComponent.dumpTraceMemory
train
public static synchronized void dumpTraceMemory() { LogRepositoryWriter writer = getBinaryHandler().getTraceWriter(); if (writer instanceof LogRepositoryWriterCBuffImpl) { ((LogRepositoryWriterCBuffImpl) writer).dumpItems(); } }
java
{ "resource": "" }
q152719
LogRepositoryComponent.setTextDestination
train
public static synchronized void setTextDestination(String location, boolean enablePurgeBySize, boolean enablePurgeByTime, boolean enableFileSwitch, boolean enableBuffering, long maxRepositorySize, long retentionTime, int fileSwitchHour, String outOfSpaceAction, String outputFormat, boolean includeTrace) { // F00...
java
{ "resource": "" }
q152720
LogRepositoryComponent.disableTextDestination
train
public static synchronized void disableTextDestination() { if (textHandler != null) { Logger.getLogger("").removeHandler(textHandler); // ManagerAdmin.getWsHandlerManager().removeWsHandler(textHandler); //735356 Before deleting textHandler, we should close the file. Otherwise file remains open and causes han...
java
{ "resource": "" }
q152721
LogRepositoryComponent.setProcessInfo
train
public static void setProcessInfo(String pid, String label, String superPid) { svPid = pid ; svLabel = label ; svSuperPid = superPid ; }
java
{ "resource": "" }
q152722
SSLLinkConfig.getEnabledCipherSuites
train
public String[] getEnabledCipherSuites(SSLEngine sslEngine) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getEnabledCipherSuites"); } String ciphers[] = null; // First check the properties object for the ciphers. Object ciphersObj...
java
{ "resource": "" }
q152723
SSLLinkConfig.getSSLProtocol
train
public String getSSLProtocol() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getSSLProtocol"); } // First check the properties object for the ciphers. String protocol = (String) this.myConfig.get(Constants.SSLPROP_PROTOCOL); // w...
java
{ "resource": "" }
q152724
LibertyFeaturesToMavenRepo.generatePom
train
private void generatePom(LibertyFeature feature, List<MavenCoordinates> featureCompileDependencies, Map<String, LibertyFeature> allFeatures, File outputDir, Constants.ArtifactType type) throws MavenRepoGeneratorException { MavenCoordinates coordinates = feature.getMavenCoordinates(); Model model = new Model(); ...
java
{ "resource": "" }
q152725
LibertyFeaturesToMavenRepo.addDependency
train
private static void addDependency(List<Dependency> dependencies, MavenCoordinates requiredArtifact, Constants.ArtifactType type, String scope) { Dependency dependency = new Dependency(); dependency.setGroupId(requiredArtifact.getGroupId()); dependency.setArtifactId(requiredArtifact.getArtifactId()); dependency....
java
{ "resource": "" }
q152726
LibertyFeaturesToMavenRepo.getFeatureCompileDependencies
train
private static List<MavenCoordinates> getFeatureCompileDependencies(File inputDir, LibertyFeature feature) throws MavenRepoGeneratorException { List<MavenCoordinates> compileDependencies = new ArrayList<MavenCoordinates>(); File esa = new File(inputDir, feature.getSymbolicName() + Constants.ArtifactType.ESA.getLib...
java
{ "resource": "" }
q152727
LibertyFeaturesToMavenRepo.findCompileDependency
train
private static MavenCoordinates findCompileDependency(String zipEntryPath, String groupId) { int apiNameIndex = zipEntryPath.indexOf(groupId); int extensionIndex = zipEntryPath.lastIndexOf(".jar"); if (apiNameIndex >= 0 && extensionIndex >= 0) { String fileNameWithoutExtension = zipEntryPath.substring(apiNameI...
java
{ "resource": "" }
q152728
LibertyFeaturesToMavenRepo.findCompileDependenciesFromManifest
train
private static List<MavenCoordinates> findCompileDependenciesFromManifest(ZipFile zipFile, ZipEntry zipEntry) throws MavenRepoGeneratorException { List<MavenCoordinates> result = new ArrayList<MavenCoordinates>(); InputStream inputStream = null; try { inputStream = zipFile.getInputStream(zipEntr...
java
{ "resource": "" }
q152729
LibertyFeaturesToMavenRepo.copyArtifact
train
private static void copyArtifact(File inputDir, File outputDir, LibertyFeature feature, Constants.ArtifactType type) throws MavenRepoGeneratorException { MavenCoordinates artifact = feature.getMavenCoordinates(); File artifactDir = new File(outputDir, Utils.getRepositorySubpath(artifact)); artifactDir.mkdirs()...
java
{ "resource": "" }
q152730
LibertyFeaturesToMavenRepo.addMavenCoordinates
train
private static void addMavenCoordinates(File modifiedJsonFile, JsonArray jsonArray, Map<String, LibertyFeature> features) throws IOException { JsonArrayBuilder jsonArrayBuilder = Json.createArrayBuilder(); for (int i = 0; i < jsonArray.size(); i++) { JsonObject jsonObject = jsonArray.getJsonObject(i); Jso...
java
{ "resource": "" }
q152731
LibertyFeaturesToMavenRepo.getRequiredFeatures
train
public List<LibertyFeature> getRequiredFeatures(LibertyFeature feature, Map<String, LibertyFeature> allFeatures) throws MavenRepoGeneratorException { List<LibertyFeature> dependencies = new ArrayList<LibertyFeature>(); Map<String, Collection<String>> requiredFeaturesWithTolerates = feature.getRequiredFeaturesWit...
java
{ "resource": "" }
q152732
CATConsumer.close
train
public void close(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close", requestNumber); try { ConsumerSession cs = getConsumerSession(); if (cs !=null) cs.close(); try { getConversation().sen...
java
{ "resource": "" }
q152733
CATConsumer.unsetAsynchConsumerCallback
train
public void unsetAsynchConsumerCallback(int requestNumber, boolean stoppable) //SIB0115d.comms { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unsetAsynchConsumerCallback", "requestNumber="+requestNumber); try { if (stoppabl...
java
{ "resource": "" }
q152734
CATConsumer.start
train
public void start(int requestNumber, boolean deliverImmediately, boolean sendReply, SendListener sendListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "start", new Object[]{""+requestNumber, ...
java
{ "resource": "" }
q152735
RecursionCounter.incrementCount
train
public int incrementCount() { // get the logging recursion stack depth for the current thread int depth = stackDepth.get(); depth = depth + 1; stackDepth.set(depth); return depth; }
java
{ "resource": "" }
q152736
ELValidator.validateFunctions
train
private static void validateFunctions(ELNode.Nodes el, ValidateResult result, Element jspElement, HashMap prefixToUriMap ) throws JspTranslationException { el.visit(new FVVisitor(jspElement, result, prefixToUriMap)); }
java
{ "resource": "" }
q152737
PropertyControl.getContextProperties
train
public List<PropertyControl.ContextProperties> getContextProperties() { if (contextProperties == null) { contextProperties = new ArrayList<PropertyControl.ContextProperties>(); } return this.contextProperties; }
java
{ "resource": "" }
q152738
ServerLock.getServerLock
train
private synchronized boolean getServerLock() { Boolean fileExists = Boolean.FALSE; final File sDir = lockFile; try { fileExists = AccessController.doPrivileged(new java.security.PrivilegedExceptionAction<Boolean>() { @Override public Boolean run() thr...
java
{ "resource": "" }
q152739
ServerLock.releaseServerLock
train
public synchronized void releaseServerLock() { if (serverLock != null) { try { serverLock.release(); } catch (IOException e) { } finally { Utils.tryToClose(lockFileChannel); } serverLock = null; lockFileChann...
java
{ "resource": "" }
q152740
ServerLock.calculateWaitCyclesFromWaitTime
train
private int calculateWaitCyclesFromWaitTime() { String serverWaitTime = System.getProperty(BootstrapConstants.SERVER_START_WAIT_TIME); if ((serverWaitTime == null) || serverWaitTime.trim().equals("")) { return BootstrapConstants.MAX_POLL_ATTEMPTS; } int waitTime = 0; ...
java
{ "resource": "" }
q152741
ServerLock.createServerRunningMarkerFile
train
public static void createServerRunningMarkerFile(BootstrapConfig bootConfig) { File serverWorkArea = bootConfig.getWorkareaFile(null); File serverRunningMarkerFile = null; try { serverRunningMarkerFile = new File(serverWorkArea, BootstrapConstants.SERVER_RUNNING_FILE); se...
java
{ "resource": "" }
q152742
LTCCallbacks.contextChange
train
public void contextChange(int typeOfChange) throws IllegalStateException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { String type = "UNKNOWN"; switch (typeOfChange) { case UOWCallback.PRE_BEGIN: type = "PRE_BEGIN...
java
{ "resource": "" }
q152743
FileLogSet.removeFile
train
private void removeFile(int index) { String file = files.remove(index); FileLogUtils.deleteFile(directory, file); }
java
{ "resource": "" }
q152744
LinkedList.newCursor
train
public Cursor newCursor(String name) { if (tc.isEntryEnabled()) SibTr.entry(tc, "newCursor", name); Cursor cursor = new Cursor(name,this,true); if (tc.isEntryEnabled()) SibTr.exit(tc, "newCursor", cursor); return cursor; }
java
{ "resource": "" }
q152745
LinkedList.newCursorAtBottom
train
public Cursor newCursorAtBottom(String name) { if (tc.isEntryEnabled()) SibTr.entry(tc, "newCursorAtBottom", name); Cursor cursor = new Cursor(name,this,false); if (tc.isEntryEnabled()) SibTr.exit(tc, "newCursorAtBottom", cursor); return cursor; }
java
{ "resource": "" }
q152746
LinkedList.insertAtBottom
train
public Entry insertAtBottom(Entry entry) { if (tc.isEntryEnabled()) SibTr.entry(tc, "insertAtBottom", new Object[] { entry }); //only add in the new entry if it is not already in a list. if(entry.parentList == null) { //if the list is empty if(last == null) { //double ...
java
{ "resource": "" }
q152747
LinkedList.insertAfter
train
public Entry insertAfter(Entry newEntry, Entry insertAfter) { if (tc.isEntryEnabled()) SibTr.entry(tc, "insertAfter", new Object[] { newEntry, insertAfter }); Entry insertedEntry = null; //check that the params are not null, if either is, there is nothing to do. if(newEntry != null && ...
java
{ "resource": "" }
q152748
LinkedList.transfer
train
public void transfer(LinkedList transferFrom) { if (tc.isEntryEnabled()) SibTr.entry(tc, "transfer", new Object[] { transferFrom }); //synchronize on the other list so that we can call the internal, //unsynchronized methods and access the entries in the list directly synchronized(transferFrom) ...
java
{ "resource": "" }
q152749
AbstractJPAComponent.startingApplication
train
protected JPAApplInfo startingApplication(JPAApplInfo applInfo) throws RuntimeWarning { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "startingApplication : " + applInfo.getApplName()); } String applName ...
java
{ "resource": "" }
q152750
AbstractJPAComponent.startedApplication
train
public void startedApplication(JPAApplInfo applInfo) throws RuntimeWarning // d406994.2 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "startedApplication : " + applInfo.getApplName()); // ...
java
{ "resource": "" }
q152751
AbstractJPAComponent.destroyingApplication
train
public void destroyingApplication(JPAApplInfo applInfo) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "destroyingApplication : " + applInfo.getApplName()); applInfo.closeAllScopeModules(); applList.re...
java
{ "resource": "" }
q152752
AbstractJPAComponent.getSortedAppNames
train
protected Set<String> getSortedAppNames() { if (applList == null) { return Collections.emptySet(); } Set<String> appNames = applList.keySet(); // Per Collections.synchronizedMap javadoc, must synchronize on map when // iterating over any of the collectio...
java
{ "resource": "" }
q152753
WebApp31.createAsyncListener
train
public <T extends EventListener> T createAsyncListener(Class<T> classToCreate) throws ServletException { return super.createListener(classToCreate); }
java
{ "resource": "" }
q152754
JNDIObjectFactory.setLibrary
train
@Reference(name = REFERENCE_LIBRARY, service = Library.class) protected void setLibrary(ServiceReference<Library> ref) { libraryRef.setReference(ref); }
java
{ "resource": "" }
q152755
MatchingStrategy.match
train
public static MatchResponse match(SecurityConstraintCollection securityConstraintCollection, String resourceName, String method) { MatchingStrategy matchingStrategy = getMatchingStrategy(method); return matchingStrategy.performMatch(securityConstraintCollection, resourceName, method); }
java
{ "resource": "" }
q152756
MatchingStrategy.getCollectionMatch
train
protected CollectionMatch getCollectionMatch(List<WebResourceCollection> webResourceCollections, String resourceName, String method) { CollectionMatch bestMatch = getInitialCollectionMatch(); for (WebResourceCollection webResourceCollection : webResourceCollections) { CollectionMatch curren...
java
{ "resource": "" }
q152757
MatchingStrategy.selectBestCollectionMatch
train
protected CollectionMatch selectBestCollectionMatch(CollectionMatch previousMatch, CollectionMatch currentMatch) { CollectionMatch bestMatch = null; if (previousMatch == null) { bestMatch = currentMatch; } else if (previousMatch.isDenyMatchByOmission()) { bestMatch = pre...
java
{ "resource": "" }
q152758
FaceletCompositionContextImpl.getFirstValidationGroupFromStack
train
@Override public String getFirstValidationGroupFromStack() { if (_validationGroupsStack != null && !_validationGroupsStack.isEmpty()) { return _validationGroupsStack.getFirst(); // top-of-stack } return null; }
java
{ "resource": "" }
q152759
FaceletCompositionContextImpl.pushValidationGroupsToStack
train
@Override public void pushValidationGroupsToStack(String validationGroups) { if (_validationGroupsStack == null) { _validationGroupsStack = new LinkedList<String>(); } _validationGroupsStack.addFirst(validationGroups); }
java
{ "resource": "" }
q152760
FaceletCompositionContextImpl.pushExcludedValidatorIdToStack
train
@Override public void pushExcludedValidatorIdToStack(String validatorId) { if (_excludedValidatorIdsStack == null) { _excludedValidatorIdsStack = new LinkedList<String>(); } _excludedValidatorIdsStack.addFirst(validatorId); }
java
{ "resource": "" }
q152761
FaceletCompositionContextImpl.increaseComponentLevelMarkedForDeletion
train
private void increaseComponentLevelMarkedForDeletion() { _deletionLevel++; if (_componentsMarkedForDeletion.size() <= _deletionLevel) { _componentsMarkedForDeletion.add(new HashMap<String, UIComponent>()); } }
java
{ "resource": "" }
q152762
FaceletCompositionContextImpl.decreaseComponentLevelMarkedForDeletion
train
private void decreaseComponentLevelMarkedForDeletion() { //The common case is this co if (!_componentsMarkedForDeletion.get(_deletionLevel).isEmpty()) { _componentsMarkedForDeletion.get(_deletionLevel).clear(); } _deletionLevel--; }
java
{ "resource": "" }
q152763
FaceletCompositionContextImpl.markComponentForDeletion
train
private void markComponentForDeletion(String id , UIComponent component) { _componentsMarkedForDeletion.get(_deletionLevel).put(id, component); }
java
{ "resource": "" }
q152764
FaceletCompositionContextImpl.removeComponentForDeletion
train
private UIComponent removeComponentForDeletion(String id) { UIComponent removedComponent = _componentsMarkedForDeletion.get(_deletionLevel).remove(id); if (removedComponent != null && _deletionLevel > 0) { _componentsMarkedForDeletion.get(_deletionLevel-1).remove(id); } ...
java
{ "resource": "" }
q152765
MSTransactionFactory.createAutoCommitTransaction
train
public ExternalAutoCommitTransaction createAutoCommitTransaction() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createAutoCommitTransaction"); ExternalAutoCommitTransaction instance = new MSAutoCommitTransaction(_ms, _persistence, getMaximumTransactionSize());...
java
{ "resource": "" }
q152766
MSTransactionFactory.createLocalTransaction
train
public ExternalLocalTransaction createLocalTransaction() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createLocalTransaction"); ExternalLocalTransaction instance; if (_persistenceSupports1PCOptimisation) { instance = new MS...
java
{ "resource": "" }
q152767
MSTransactionFactory.createXAResource
train
public ExternalXAResource createXAResource() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createXAResource"); ExternalXAResource instance = new MSDelegatingXAResource(_ms, _persistence, getMaximumTransactionSize()); if (TraceComponent.isAnyTracingEnab...
java
{ "resource": "" }
q152768
JFapOutboundConnLink.getChannelAccessor
train
public Object getChannelAccessor() // F177053 { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getChannelAccessor"); // F177053 if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getChannelAccessor", this); // F177053 return this; }
java
{ "resource": "" }
q152769
JFapOutboundConnLink.getMetaData
train
public ConversationMetaData getMetaData() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getMetaData"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getMetaData", metaData); return metaData; }
java
{ "resource": "" }
q152770
JFapOutboundConnLink.connect
train
@SuppressWarnings("unchecked") // Channel Framework implements state map... public void connect(Object address) throws Exception { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "connect", address); final JFapAddress jfapAddress = (JFapAddress) address; if ((jfapAddress != null) && (jfapAddress...
java
{ "resource": "" }
q152771
SplitControllerImpl.buildSubJobBatchWorkUnits
train
private void buildSubJobBatchWorkUnits() { List<Flow> flows = this.split.getFlows(); splitFlowWorkUnits = new ArrayList<BatchSplitFlowWorkUnit>(); for (Flow flow : flows) { // 1. First, we build the subjob JSLJob model for flows in split JSLJob splitFlowJSLJob = Parall...
java
{ "resource": "" }
q152772
PerfLevelDescriptor.getShortPath
train
public String[] getShortPath() { if (path == null || path.length == 0) return null; int index = 0; if (path[0].equals(pmiroot)) { index = 1; } if (index == 0) return path; String[] ret = new String[path.length - index]; for (in...
java
{ "resource": "" }
q152773
PerfLevelDescriptor.comparePath
train
public int comparePath(String[] otherPath) { if (path == null) return -1; else if (otherPath == null) return 1; int minLen = (path.length < otherPath.length) ? path.length : otherPath.length; for (int i = 0; i < minLen; i++) { int result = path[i].co...
java
{ "resource": "" }
q152774
PerfLevelDescriptor.isSubPath
train
public boolean isSubPath(String[] otherPath) { if (path == null || otherPath == null) return false; if (path.length >= otherPath.length) return false; for (int i = 0; i < path.length; i++) { int result = path[i].compareTo(otherPath[i]); if (resul...
java
{ "resource": "" }
q152775
PerfLevelDescriptor.getModuleName
train
public String getModuleName() { if (moduleID != null) { return moduleID; } if (path != null && path.length > MODULE_INDEX) return path[1]; else return null; }
java
{ "resource": "" }
q152776
PerfLevelDescriptor.getSubmoduleName
train
public String getSubmoduleName() { if (path != null && path.length > SUBMODULE_INDEX) return path[SUBMODULE_INDEX]; else return null; }
java
{ "resource": "" }
q152777
FormLoginExtensionProcessor.getStoredReq
train
@Sensitive private String getStoredReq(HttpServletRequest req, ReferrerURLCookieHandler referrerURLHandler) { String storedReq = referrerURLHandler.getReferrerURLFromCookies(req, ReferrerURLCookieHandler.REFERRER_URL_COOKIENAME); if (storedReq != null) { if (storedReq.equals("/")) ...
java
{ "resource": "" }
q152778
FormLoginExtensionProcessor.getCustomReloginErrorPage
train
private String getCustomReloginErrorPage(HttpServletRequest req) { String reLogin = CookieHelper.getCookieValue(req.getCookies(), ReferrerURLCookieHandler.CUSTOM_RELOGIN_URL_COOKIENAME); if (reLogin != null && reLogin.length() > 0) { if (reLogin.indexOf("?") < 0) reLogin += "...
java
{ "resource": "" }
q152779
LdapIdentityStoreDefinitionWrapper.evaluateBindDn
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateBindDn(boolean immediateOnly) { try { return elHelper.processString("bindDn", this.idStoreDefinition.bindDn(), immediateOnly); } catch (IllegalArgumentException e) { if (TraceComponent.isAnyTracingEnabled() &&...
java
{ "resource": "" }
q152780
LdapIdentityStoreDefinitionWrapper.evaluateBindDnPassword
train
@FFDCIgnore(IllegalArgumentException.class) private ProtectedString evaluateBindDnPassword(boolean immediateOnly) { String result; try { result = elHelper.processString("bindDnPassword", this.idStoreDefinition.bindDnPassword(), immediateOnly, true); } catch (IllegalArgumentExcep...
java
{ "resource": "" }
q152781
LdapIdentityStoreDefinitionWrapper.evaluateCallerBaseDn
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateCallerBaseDn(boolean immediateOnly) { try { return elHelper.processString("callerBaseDn", this.idStoreDefinition.callerBaseDn(), immediateOnly); } catch (IllegalArgumentException e) { if (TraceComponent.isAnyT...
java
{ "resource": "" }
q152782
LdapIdentityStoreDefinitionWrapper.evaluateCallerNameAttribute
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateCallerNameAttribute(boolean immediateOnly) { try { return elHelper.processString("callerNameAttribute", this.idStoreDefinition.callerNameAttribute(), immediateOnly); } catch (IllegalArgumentException e) { if (...
java
{ "resource": "" }
q152783
LdapIdentityStoreDefinitionWrapper.evaluateCallerSearchBase
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateCallerSearchBase(boolean immediateOnly) { try { return elHelper.processString("callerSearchBase", this.idStoreDefinition.callerSearchBase(), immediateOnly); } catch (IllegalArgumentException e) { if (TraceComp...
java
{ "resource": "" }
q152784
LdapIdentityStoreDefinitionWrapper.evaluateCallerSearchFilter
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateCallerSearchFilter(boolean immediateOnly) { try { return elHelper.processString("callerSearchFilter", this.idStoreDefinition.callerSearchFilter(), immediateOnly); } catch (IllegalArgumentException e) { if (Tra...
java
{ "resource": "" }
q152785
LdapIdentityStoreDefinitionWrapper.evaluateCallerSearchScope
train
@FFDCIgnore(IllegalArgumentException.class) private LdapSearchScope evaluateCallerSearchScope(boolean immediateOnly) { try { return elHelper.processLdapSearchScope("callerSearchScopeExpression", this.idStoreDefinition.callerSearchScopeExpression(), this.idStoreDefinition.callerSearchScope(), ...
java
{ "resource": "" }
q152786
LdapIdentityStoreDefinitionWrapper.evaluateGroupMemberAttribute
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateGroupMemberAttribute(boolean immediateOnly) { try { return elHelper.processString("groupMemberAttribute", this.idStoreDefinition.groupMemberAttribute(), immediateOnly); } catch (IllegalArgumentException e) { i...
java
{ "resource": "" }
q152787
LdapIdentityStoreDefinitionWrapper.evaluateGroupMemberOfAttribute
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateGroupMemberOfAttribute(boolean immediateOnly) { try { return elHelper.processString("groupMemberOfAttribute", this.idStoreDefinition.groupMemberOfAttribute(), immediateOnly); } catch (IllegalArgumentException e) { ...
java
{ "resource": "" }
q152788
LdapIdentityStoreDefinitionWrapper.evaluateGroupNameAttribute
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateGroupNameAttribute(boolean immediateOnly) { try { return elHelper.processString("groupNameAttribute", this.idStoreDefinition.groupNameAttribute(), immediateOnly); } catch (IllegalArgumentException e) { if (Tra...
java
{ "resource": "" }
q152789
LdapIdentityStoreDefinitionWrapper.evaluateGroupSearchBase
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateGroupSearchBase(boolean immediateOnly) { try { return elHelper.processString("groupSearchBase", this.idStoreDefinition.groupSearchBase(), immediateOnly); } catch (IllegalArgumentException e) { if (TraceCompone...
java
{ "resource": "" }
q152790
LdapIdentityStoreDefinitionWrapper.evaluateGroupSearchFilter
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateGroupSearchFilter(boolean immediateOnly) { try { return elHelper.processString("groupSearchFilter", this.idStoreDefinition.groupSearchFilter(), immediateOnly); } catch (IllegalArgumentException e) { if (TraceC...
java
{ "resource": "" }
q152791
LdapIdentityStoreDefinitionWrapper.evaluateGroupSearchScope
train
@FFDCIgnore(IllegalArgumentException.class) private LdapSearchScope evaluateGroupSearchScope(boolean immediateOnly) { try { return elHelper.processLdapSearchScope("groupSearchScopeExpression", this.idStoreDefinition.groupSearchScopeExpression(), this.idStoreDefinition.groupSearchScope(), ...
java
{ "resource": "" }
q152792
LdapIdentityStoreDefinitionWrapper.evaluateMaxResults
train
@FFDCIgnore(IllegalArgumentException.class) private Integer evaluateMaxResults(boolean immediateOnly) { try { return elHelper.processInt("maxResultsExpression", this.idStoreDefinition.maxResultsExpression(), this.idStoreDefinition.maxResults(), immediateOnly); } catch (IllegalArgumentExc...
java
{ "resource": "" }
q152793
LdapIdentityStoreDefinitionWrapper.evaluatePriority
train
@FFDCIgnore(IllegalArgumentException.class) private Integer evaluatePriority(boolean immediateOnly) { try { return elHelper.processInt("priorityExpression", this.idStoreDefinition.priorityExpression(), this.idStoreDefinition.priority(), immediateOnly); } catch (IllegalArgumentException e...
java
{ "resource": "" }
q152794
LdapIdentityStoreDefinitionWrapper.evaluateReadTimeout
train
@FFDCIgnore(IllegalArgumentException.class) private Integer evaluateReadTimeout(boolean immediateOnly) { try { return elHelper.processInt("readTimeoutExpression", this.idStoreDefinition.readTimeoutExpression(), this.idStoreDefinition.readTimeout(), immediateOnly); } catch (IllegalArgumen...
java
{ "resource": "" }
q152795
LdapIdentityStoreDefinitionWrapper.evaluateUrl
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateUrl(boolean immediateOnly) { try { return elHelper.processString("url", this.idStoreDefinition.url(), immediateOnly); } catch (IllegalArgumentException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isWar...
java
{ "resource": "" }
q152796
LdapIdentityStoreDefinitionWrapper.evaluateUseFor
train
@FFDCIgnore(IllegalArgumentException.class) private Set<ValidationType> evaluateUseFor(boolean immediateOnly) { try { return elHelper.processUseFor(this.idStoreDefinition.useForExpression(), this.idStoreDefinition.useFor(), immediateOnly); } catch (IllegalArgumentException e) { ...
java
{ "resource": "" }
q152797
LogRecordStack.getStack
train
public static StackInfo getStack() { StackInfo result = MDC.get(); return result == null ? new StackInfo() : result; }
java
{ "resource": "" }
q152798
LogRecordStack.getThreadID
train
public static int getThreadID() { StackInfo result = MDC.get(); return result == null ? HpelHelper.getIntThreadId() : result.threadId; }
java
{ "resource": "" }
q152799
LogRecordStack.getExtensions
train
public static Map<String,String> getExtensions() { StackInfo result = MDC.get(); if (result == null) { return StackInfo.collectExtensions(); } else { return result.extensions; } }
java
{ "resource": "" }