_id
stringlengths
2
7
title
stringlengths
3
140
partition
stringclasses
3 values
text
stringlengths
73
34.1k
language
stringclasses
1 value
meta_information
dict
q152800
ProxyReferenceStream.setPubSubInputHandler
train
public void setPubSubInputHandler(PubSubInputHandler pubSubInputHandler) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setPubSubInputHandler", pubSubInputHandler); this.pubSubInputHandler = pubSubInputHandler; if (TraceComponent.isAnyTracingEnabled() && tc.isEn...
java
{ "resource": "" }
q152801
LocalTransactionWrapper.getResourceName
train
@Override public String getResourceName() { String nameString = null; nameString = mcWrapper.gConfigProps.getXpathId(); return nameString; }
java
{ "resource": "" }
q152802
SystemContextFactory.getConstructor
train
private static Constructor getConstructor() { if (_tc.isEntryEnabled()) SibTr.entry(_tc, "getConstructor"); if (_constructor == null) { try { Class clazz = Class.forName("com.ibm.ws.sib.exitpoint.systemcontext.SystemContextImpl"); _constructor = clazz.getConstructor(new Cl...
java
{ "resource": "" }
q152803
BatchUpdateDaemon.invalidateByTemplate
train
public void invalidateByTemplate(String template, boolean waitOnInvalidation, DCache cache) { synchronized (this) { BatchUpdateList bul = getUpdateList(cache); bul.invalidateByTemplateEvents.put(template, new InvalidateByTemplateEvent(template, CachePerf.LOCAL)); } if (wa...
java
{ "resource": "" }
q152804
BatchUpdateDaemon.cacheCommand_Clear
train
public void cacheCommand_Clear(boolean waitOnInvalidation, DCache cache) { String template = cache.getCacheName(); synchronized (this) { BatchUpdateList bul = getUpdateList(cache); bul.invalidateByIdEvents.clear(); bul.invalidateByTemplateEvents.clear(); b...
java
{ "resource": "" }
q152805
BatchUpdateDaemon.invalidateById
train
public void invalidateById(Object id, boolean waitOnInvalidation, DCache cache) { invalidateById(id, CachePerf.DIRECT, waitOnInvalidation, cache, Cache.CHECK_PREINVALIDATION_LISTENER); }
java
{ "resource": "" }
q152806
BatchUpdateDaemon.pushExternalCacheFragment
train
public synchronized void pushExternalCacheFragment(ExternalInvalidation externalCacheFragment, DCache cache) { BatchUpdateList bul = getUpdateList(cache); bul.pushECFEvents.add(externalCacheFragment); }
java
{ "resource": "" }
q152807
CommsServerByteBuffer.getMEMEMessage
train
public synchronized AbstractMessage getMEMEMessage() throws Exception { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getMEMEMessage"); // GRRRRRRRRRRRR Read the FAP Clifford int messageLength = getInt(); boolean isControlMessage = get() == CommsConstants.MEME_CONTROLMESSA...
java
{ "resource": "" }
q152808
CommsServerByteBuffer.putMEMEMessageWithoutEncode
train
public synchronized int putMEMEMessageWithoutEncode(AbstractMessage memeMessage, List<DataSlice> messageParts) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "putMEMEMessageWithoutEncode", new Object...
java
{ "resource": "" }
q152809
ConfigRetriever.lookupPid
train
String lookupPid(ConfigID referenceId) { ExtendedConfiguration config = caSupport.lookupConfiguration(referenceId); String pid = (config == null) ? null : config.getPid(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "lookupPid(): Lookup of " + refe...
java
{ "resource": "" }
q152810
ConfigRetriever.getPid
train
String getPid(ConfigID configId) throws ConfigNotFoundException { ExtendedConfiguration config = getConfiguration(configId); String pid = config.getPid(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "getPid(): Lookup of " + configId + " configurati...
java
{ "resource": "" }
q152811
SchemaManager.overrideDatabaseTerminationToken
train
private void overrideDatabaseTerminationToken(Map<Object, Object> props) { String overrideTermToken = null; String platformClassName = _dbMgr.getDatabasePlatformClassName(_pui); if (platformClassName != null) { overrideTermToken = platformTerminationToken.get(platformClassName); ...
java
{ "resource": "" }
q152812
PromptX509TrustManager.generateDigest
train
private String generateDigest(String algorithmName, X509Certificate cert) { try { MessageDigest md = MessageDigest.getInstance(algorithmName); md.update(cert.getEncoded()); byte data[] = md.digest(); StringBuilder buffer = new StringBuilder(3 * data.length); ...
java
{ "resource": "" }
q152813
WSATAsyncResource.prepareOperation
train
public int prepareOperation() throws XAException, XAResourceNotAvailableException { if (tc.isEntryEnabled()) Tr.entry(tc, "prepareOperation", new Object[] { this }); final int retVal = getXAResource().prepare(_xid); if (tc.isEntryEnabled()) Tr.exit(tc, "prepareOpera...
java
{ "resource": "" }
q152814
DefaultConfigurationList.writeDefaultConfiguration
train
public void writeDefaultConfiguration(ManifestFileProcessor mfp) { try { try { // Build the list of configurations buildDefaultConfigurationList(mfp); // Write <defaultConfiguration> startDefaultConfigurationSection(); ...
java
{ "resource": "" }
q152815
DefaultConfigurationList.getFeatureString
train
private String getFeatureString(Set<String> featureNames) { StringBuilder featureBuilder = new StringBuilder(); if (featureNames != null) { Iterator<String> iter = featureNames.iterator(); while (iter.hasNext()) { featureBuilder.append(iter.next()); ...
java
{ "resource": "" }
q152816
DefaultConfigurationList.buildDefaultConfigurationList
train
private void buildDefaultConfigurationList(ManifestFileProcessor mfp) { for (Map.Entry<String, ProvisioningFeatureDefinition> entry : features.entrySet()) { ProvisioningFeatureDefinition feature = entry.getValue(); Collection<FeatureResource> featureResources = feature.getConstituents(S...
java
{ "resource": "" }
q152817
TxPrimaryKey.toBytes
train
public byte[] toBytes() { if (tc.isEntryEnabled()) Tr.entry(tc, "toBytes"); final byte[] result = new byte[16]; final int t1 = (int)(_timestamp >> 32 & 0xFFFFFFFFL); final int t2 = (int)(_timestamp & 0xFFFFFFFFL); Util.setBytesFromInt(result, 0, 4, t1); Util.setByte...
java
{ "resource": "" }
q152818
ProducerType.getProducerType
train
public final static ProducerType getProducerType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
java
{ "resource": "" }
q152819
H2Headers.decodeHeader
train
public static H2HeaderField decodeHeader(WsByteBuffer buffer, H2HeaderTable table) throws CompressionException { return decodeHeader(buffer, table, true, false, null); }
java
{ "resource": "" }
q152820
H2Headers.decodeFragment
train
private static String decodeFragment(WsByteBuffer buffer) throws CompressionException { String decodedResult = null; try { byte currentByte = buffer.get(); //Reset back position to decode the integer length of this segment. buffer.position(buffer.position() - 1); ...
java
{ "resource": "" }
q152821
H2Headers.checkIsValidH2Header
train
private static void checkIsValidH2Header(H2HeaderField header, boolean isTrailerField) throws CompressionException { if (!header.getName().startsWith(":")) { String headerName = header.getName(); String headerValue = header.getValue(); for (String name : HpackConstants.conne...
java
{ "resource": "" }
q152822
H2Headers.getContentLengthValue
train
public static int getContentLengthValue(H2HeaderField header) { if ("content-length".equalsIgnoreCase(header.getName())) { return Integer.parseInt(header.getValue()); } return -1; }
java
{ "resource": "" }
q152823
PrepareJspHelper.createListOfEntries
train
protected synchronized void createListOfEntries(Container container) { listOfEntries = new ArrayList<String>(); for (Entry entry : container) { String entryName = entry.getName(); try { Container dirContainer = entry.adapt(Container.class); if (dir...
java
{ "resource": "" }
q152824
PrepareJspHelper.getJsp
train
protected synchronized File getJsp() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINER)) { logger.logp(Level.FINER, CLASS_NAME, "getJsp", "enter"); } File[] children; try { if (_counter % _notify == 0) { i...
java
{ "resource": "" }
q152825
CATSyncAsynchReader.setRequestNumber
train
public void setRequestNumber(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setRequestNumber", requestNumber); this.requestNumber = requestNumber; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
{ "resource": "" }
q152826
CATSyncAsynchReader.setComplete
train
public synchronized void setComplete(boolean completed) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setComplete", completed); this.completed = completed; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.e...
java
{ "resource": "" }
q152827
CATSyncAsynchReader.setCATTimer
train
public void setCATTimer(Alarm alarm) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setCATTimer", alarm); this.alarm = alarm; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setCATTimer"); ...
java
{ "resource": "" }
q152828
CATSyncAsynchReader.stopSession
train
public void stopSession() throws SIException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "stopSession"); mainConsumer.getConsumerSession().stop(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this...
java
{ "resource": "" }
q152829
CATSyncAsynchReader.setTransaction
train
public void setTransaction(int tran) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setTransaction", tran); this.transaction = tran; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setTransa...
java
{ "resource": "" }
q152830
CATSyncAsynchReader.sendEntireMessage
train
private void sendEntireMessage(JsMessage jsMessage, List<DataSlice> messageSlices) throws UnsupportedEncodingException, MessageCopyFailedException, IncorrectMessageTypeException, MessageEncodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled(...
java
{ "resource": "" }
q152831
CATSyncAsynchReader.sendNoMessageToClient
train
protected void sendNoMessageToClient() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "sendNoMessageToClient"); // Ensure that we set the flag that we have done all we can setCurrentlyDoingReceiveWithWait(false); setComplete(true); ...
java
{ "resource": "" }
q152832
CATSyncAsynchReader.sendErrorToClient
train
protected void sendErrorToClient(Throwable e, String probeId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "sendErrorToClient", new Object[] { e, probeId }); setComplete(true); setCurrentlyDoingReceiveWithWait(false); StaticCATHel...
java
{ "resource": "" }
q152833
CATSyncAsynchReader.deliverAsynchExceptionToClient
train
private void deliverAsynchExceptionToClient(Throwable throwable, String probeId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "deliverAsynchExceptionToClient", throwable); if (!isComplete()) { if (alarm != null) { if (T...
java
{ "resource": "" }
q152834
CATSyncAsynchReader.hasMETerminated
train
public boolean hasMETerminated() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "hasMETerminated"); final boolean hasMETerminated = ((ConversationState) mainConsumer.getConversation().getAttachment()).hasMETerminated(); if (TraceComponent.isA...
java
{ "resource": "" }
q152835
FeatureDependencyChecker.isUninstallable
train
public Collection<ProvisioningFeatureDefinition> isUninstallable(UninstallAsset uninstallAsset, Collection<ProvisioningFeatureDefinition> installedFeatureDefinitions, Collection<String> uninstallInstallFeatures, boolean isChecking) { Collectio...
java
{ "resource": "" }
q152836
FeatureDependencyChecker.determineOrder
train
public List<UninstallAsset> determineOrder(List<UninstallAsset> list) { Map<String, Integer> visited = new HashMap<String, Integer>(); Map<String, UninstallAsset> assetsMap = new HashMap<String, UninstallAsset>(); for (UninstallAsset ua : list) { assetsMap.put(ua.getProvisioningFeatu...
java
{ "resource": "" }
q152837
EJSHome.homeEnabled
train
protected final void homeEnabled() { if (!enabled) { // Provide some meaningful message text. d350987 String msgTxt = "The referenced version of the " + j2eeName.getComponent() + " ...
java
{ "resource": "" }
q152838
EJSHome.preLoadBeanPool
train
private void preLoadBeanPool() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.debug(tc, "preLoadBeanPool: " + j2eeName); synchronized (beanPool) { Object oldClassLoader = ThreadContextAccessor.UNCHANGED; ...
java
{ "resource": "" }
q152839
EJSHome.destroy
train
public synchronized void destroy() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(tc, "Destroying home ", new Object[] { this, j2eeName }); if (!enabled) { return; } // F743-1751 - Explicitly destroy singletons since they are not...
java
{ "resource": "" }
q152840
EJSHome.getWrapperSet
train
public final HomeWrapperSet getWrapperSet() // d648522, d739542 throws CSIException, RemoteException { EJSWrapperCommon w = getWrapper(); Remote remote = beanMetaData.homeRemoteImplClass == null ? null : w.getRemoteWrapper(); Object local = beanMetaData.homeLocalImplC...
java
{ "resource": "" }
q152841
EJSHome.createBeanO
train
@Override public BeanO createBeanO(EJBThreadData threadData, ContainerTx tx, BeanId id) throws RemoteException { homeEnabled(); BeanO result = createBeanO(threadData, tx, true, null); // d630940 result.setId(id); return result; }
java
{ "resource": "" }
q152842
EJSHome.createBusinessObject
train
public Object createBusinessObject(String businessInterfaceName, boolean useSupporting) throws CreateException, RemoteException, ClassNotFoundException, EJBConfigurationException { final bo...
java
{ "resource": "" }
q152843
EJSHome.createRemoteBusinessObject
train
public Object createRemoteBusinessObject(int interfaceIndex, ManagedObjectContext context) throws RemoteException, CreateException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc,...
java
{ "resource": "" }
q152844
EJSHome.createHandle
train
@Override public final Handle createHandle(BeanId id) throws RemoteException { EJSWrapper wrapper = null; homeEnabled(); wrapper = getWrapper(id).getRemoteWrapper(); // f111627; //p116577 if (!statelessSessionHome && !statefulSessionHome) { ...
java
{ "resource": "" }
q152845
EJSHome.activateBean
train
public EJSWrapperCommon activateBean(BeanId beanId, ContainerTx currentTx) throws CSIException, RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d532639.2 if (isTraceOn && tc.isEntry...
java
{ "resource": "" }
q152846
EJSHome.discard
train
@Override public void discard(Object o) { BeanO beanO = (BeanO) o; beanO.destroy(); }
java
{ "resource": "" }
q152847
EJSHome.WASInternal_copyPrimaryKey
train
protected final Object WASInternal_copyPrimaryKey(Object obj) { // Make a "deep copy" of the primarykey object if the noPriaryKeyMutation // property is false. if (!noPrimaryKeyMutation && !statefulSessionHome) { //PK34120: start Object copy = null; //Get the...
java
{ "resource": "" }
q152848
UserInfoHelper.getUserInfo
train
public boolean getUserInfo(ProviderAuthenticationResult oidcResult, SSLSocketFactory sslSocketFactory, String accessToken, String subjectFromIdToken) { if (!willRetrieveUserInfo() || accessToken == null) { return false; } String userInfoStr = getUserInfoFromURL(clientCon...
java
{ "resource": "" }
q152849
UserInfoHelper.isUserInfoValid
train
protected boolean isUserInfoValid(String userInfoStr, String subClaim) { String userInfoSubClaim = getUserInfoSubClaim(userInfoStr); if (userInfoSubClaim == null || subClaim == null || userInfoSubClaim.compareTo(subClaim) != 0) { Tr.error(tc, "USERINFO_INVALID", new Object[] { userInfoStr, s...
java
{ "resource": "" }
q152850
UserInfoHelper.getUserInfoFromURL
train
protected String getUserInfoFromURL(ConvergedClientConfig config, SSLSocketFactory sslsf, String accessToken) { String url = config.getUserInfoEndpointUrl(); boolean hostnameVerification = config.isHostNameVerificationEnabled(); // https required by spec, use of http is not spec compliant ...
java
{ "resource": "" }
q152851
WsLocationAdminImpl.createLocations
train
public static WsLocationAdminImpl createLocations(final BundleContext ctx) { if (instance.get() == null) { SymbolRegistry.getRegistry().clear(); Callable<WsLocationAdminImpl> initializer = new Callable<WsLocationAdminImpl>() { @Override public WsLocationAd...
java
{ "resource": "" }
q152852
MessageDigestUtility.processMessageDigestForData
train
public static String processMessageDigestForData(MessageDigest messageDigest, byte[] data) { String output = ""; //$NON-NLS-1$ if (messageDigest != null) { // Get the digest for the given data messageDigest.update(data); byte[] digest = messageDigest.digest(); o...
java
{ "resource": "" }
q152853
TokenBuilder.createTokenString
train
public String createTokenString(String builderConfigId) { try { return createTokenString(builderConfigId, WSSubject.getRunAsSubject(), null, null); // JwtBuilder builder = JwtBuilder.create(builderConfigId); // // // all the "normal" stuff like issuer, aud, etc. is handled // // by the builder, we onl...
java
{ "resource": "" }
q152854
TokenBuilder.getUserName
train
public String getUserName(Subject subject) { // Subject subject = null; try { // subject = WSSubject.getRunAsSubject(); WSCredential wsCred = getWSCredential(subject); if (wsCred == null) { wsCred = getPrivateWSCredential(subject); } return wsCred != null ? wsCred.getSecurityName() : null; } ca...
java
{ "resource": "" }
q152855
MatchParserImpl.getSelector
train
public Selector getSelector(String selector) { Selector ans; try { ans = QueryExpr(); if (!ans.mayBeBoolean()) ans.setType(Selector.INVALID); } catch (ParseException e) { // No FFDC code needed Object obj = null; ans = new LiteralImpl(obj); ans.setType(Selector.IN...
java
{ "resource": "" }
q152856
MatchParserImpl.Expression
train
final public Selector Expression() throws ParseException { Selector left, right=null; int op = -1; left = Term(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 7: case 8: op = PlusMinus(); right = Expression(); break; default: jj_la1[5] = jj_gen; ...
java
{ "resource": "" }
q152857
MatchParserImpl.Term
train
final public Selector Term() throws ParseException { Selector left, right=null; int op = -1; left = Primary(false); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 9: case 10: op = TimesDiv(); right = Term(); break; default: jj_la1[7] = jj_gen; ; } ...
java
{ "resource": "" }
q152858
ELProcessor.defineFunction
train
public void defineFunction(String prefix, String function, Method method) throws java.lang.NoSuchMethodException { if (prefix == null || function == null || method == null) { throw new NullPointerException(Util.message( context, "elProcessor.defineFunctionNullParams"...
java
{ "resource": "" }
q152859
BuilderImpl.create
train
@Override public Builder create() throws InvalidBuilderException { if (!active) { // Tr.error(tc, "JWT_BUILDER_NOT_ACTIVE", new Object[] { // "defaultJWT" }); // return null; String err = Tr.formatMessage(tc, "JWT_BUILDER_NOT_ACTIVE", new Object[] { "defaultJW...
java
{ "resource": "" }
q152860
BuilderImpl.create
train
@Override public synchronized Builder create(String builderConfigId) throws InvalidBuilderException { if (builderConfigId == null || builderConfigId.isEmpty()) { String err = Tr.formatMessage(tc, "JWT_BUILDER_INVALID", new Object[] { builderConfigId }); throw new InvalidBuilderExcept...
java
{ "resource": "" }
q152861
PostParameterHelper.restore
train
public void restore(HttpServletRequest req, HttpServletResponse res, boolean anyMethod) { if (!(req instanceof IExtendedRequest)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "It is not an IExtendedRequest object"); } return; } if (!anyMethod && !req.getMethod().e...
java
{ "resource": "" }
q152862
PostParameterHelper.restoreFromSession
train
private void restoreFromSession(IExtendedRequest extRequest, HttpServletRequest req, String reqURL) { HttpSession postparamsession = req.getSession(false); if (postparamsession == null) { return; } String previousReq = (String) postparamsession.getAttribute(INITIAL_URL); if (previousReq != null && previous...
java
{ "resource": "" }
q152863
PostParameterHelper.restoreFromCookie
train
@SuppressWarnings("rawtypes") private void restoreFromCookie(IExtendedRequest extRequest, HttpServletResponse res, String reqURL) { byte[] cookieValueBytes = extRequest.getCookieValueAsBytes(POSTPARAM_COOKIE); if (cookieValueBytes == null || cookieValueBytes.length <= 2) { return; } if (TraceComponent.isAny...
java
{ "resource": "" }
q152864
PostParameterHelper.deserializePostParam
train
private HashMap deserializePostParam(IExtendedRequest req, byte[] cookieValueBytes, String reqURL) throws IOException, UnsupportedEncodingException, IllegalStateException { HashMap output = null; List<byte[]> data = splitBytes(cookieValueBytes, (byte) '.'); int total = data.size(); if (total > OFFSET_DATA) { ...
java
{ "resource": "" }
q152865
PostParameterHelper.splitBytes
train
private List<byte[]> splitBytes(byte[] array, byte delimiter) { List<byte[]> byteArrays = new ArrayList<byte[]>(); int begin = 0; for (int i = 0; i < array.length; i++) { // first find delimiter. while (i < array.length && array[i] != delimiter) { i++; } byteArrays.add(Arrays.copyOfRange(array, b...
java
{ "resource": "" }
q152866
OutboundVirtualConnectionFactoryImpl.incrementRefCount
train
public void incrementRefCount() { synchronized (this.cf) { this.refCount++; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Increased refcount; " + this); } } }
java
{ "resource": "" }
q152867
OutboundVirtualConnectionFactoryImpl.destroyInternal
train
public void destroyInternal() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "destroyInternal; " + this); } // Stop and destroy the chain. Ignore exceptions try { this.cf.stopChainInternal(getChain(), 0); this.cf.dest...
java
{ "resource": "" }
q152868
ServerAsset.generateTempServerName
train
private static String generateTempServerName() { String serverName = TEMP_SERVER_NAME; while (InstallUtils.serverExists(serverName)) { int randomNumber = random.nextInt(); while (randomNumber == Integer.MIN_VALUE) { randomNumber = random.nextInt(); ...
java
{ "resource": "" }
q152869
InfoVisitor_Annotation.visit
train
@Override public void visit(String name, Object value) { if (tc.isDebugEnabled()) { Tr.debug(tc, MessageFormat.format("visit [ {0} ] Name [ {1} ] Value [ 2 ]", getHashText(), name, value)); } if (value instanceof Type) { ...
java
{ "resource": "" }
q152870
InfoVisitor_Annotation.visitEnum
train
@Override public void visitEnum(String targetMethodName, String enumerationTypeDescription, String enumerationLiteral) { if (tc.isDebugEnabled()) { Tr.debug(tc, MessageFormat.format("visitEnum [ {0} ] Name [ {1} ] Description [ {2} ] Value [ {...
java
{ "resource": "" }
q152871
InfoVisitor_Annotation.visitAnnotation
train
@Override public AnnotationVisitor visitAnnotation(String targetMethodName, String annotationClassDescription) { if (tc.isDebugEnabled()) { Tr.debug(tc, MessageFormat.format("visitAnnotation [ {0} ] Annotation Class [ {1} ] Description [ 2 ]", getHas...
java
{ "resource": "" }
q152872
InfoVisitor_Annotation.visitArray
train
@Override public AnnotationVisitor visitArray(String name) { if (tc.isDebugEnabled()) { Tr.debug(tc, MessageFormat.format("[ {0} ] Name [ {1} ]", getHashText(), name)); } final AnnotationValueImpl arrayValue = new AnnotationValueImpl...
java
{ "resource": "" }
q152873
ItemStorageManager.register
train
public final IndirectionCache register(int storageStrategy) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "register", "StorageStrategy="+storageStrategy); IndirectionCache cache = null; if (AbstractItem.STORE_NEVER == storageStrategy) { ...
java
{ "resource": "" }
q152874
RichByteBufferPool.wrap
train
public WsByteBuffer wrap(com.ibm.wsspi.bytebuffer.WsByteBuffer realBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "wrap", realBuffer); RichByteBufferImpl returnBuffer = null; // Ensure here that if a null realBuffer was passed in we do not wrap tha...
java
{ "resource": "" }
q152875
RichByteBufferPool.getFromPool
train
RichByteBufferImpl getFromPool() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getFromPool"); RichByteBufferImpl buffer = (RichByteBufferImpl) byteBufferWrapperPool.remove(); if (buffer == null) { buffer = new RichByteBufferImpl(); }...
java
{ "resource": "" }
q152876
InjectionSimpleProcessor.createInjectionBinding
train
public InjectionBinding<A> createInjectionBinding(A annotation, Class<?> instanceClass, Member member) throws InjectionException { return new InjectionSimpleBinding<A>(annotation, ivNameSpaceConfig); // F50309.3 }
java
{ "resource": "" }
q152877
GlobalHandlerServiceImpl.unsetHandler
train
protected synchronized void unsetHandler(ServiceReference<Handler> handlerRef) { jaxwsInFlowClientSideGlobalHandlers.removeReference(handlerRef); jaxwsOutFlowClientSideGlobalHandlers.removeReference(handlerRef); jaxwsInFlowServerSideGlobalHandlers.removeReference(handlerRef); jaxwsOutFl...
java
{ "resource": "" }
q152878
DERUniversalString.getInstance
train
public static DERUniversalString getInstance( Object obj) { if (obj == null || obj instanceof DERUniversalString) { return (DERUniversalString)obj; } if (obj instanceof ASN1OctetString) { return new DERUniversalString(((ASN1OctetString)obj).g...
java
{ "resource": "" }
q152879
ExecutionContextImpl.onRetry
train
public void onRetry(Throwable t) { try { this.retries++; debugRelativeTime("onRetry: " + this.retries); metricRecorder.incrementRetriesCount(); if (timeout != null) { timeout.restart(); attemptStartTime = System.nanoTime(); ...
java
{ "resource": "" }
q152880
ExecutionContextImpl.onAttemptComplete
train
private void onAttemptComplete(Throwable t) { try { if (circuitBreaker != null) { if (t instanceof CircuitBreakerOpenException) { metricRecorder.incrementCircuitBreakerCallsCircuitOpenCount(); } else if (circuitBreaker.isFailure(null, t)) { ...
java
{ "resource": "" }
q152881
ExecutionContextImpl.setNested
train
public void setNested() { // If using fallback or retry, stop the timeout and restart in synchronous mode if (timeout != null && (retry.getMaxRetries() != 0 || fallbackPolicy != null)) { timeout.runSyncOnNewThread(Thread.currentThread()); } int retriesRemaining = this.retry....
java
{ "resource": "" }
q152882
ELSupport.coerceToEnum
train
@SuppressWarnings("unchecked") public static final Enum<?> coerceToEnum(final ELContext ctx, final Object obj, @SuppressWarnings("rawtypes") Class type) { if (ctx != null) { boolean originalIsPropertyResolved = ctx.isPropertyResolved(); try { Object result = ctx.getE...
java
{ "resource": "" }
q152883
ELSupport.coerceToString
train
public static final String coerceToString(final ELContext ctx, final Object obj) { if (ctx != null) { boolean originalIsPropertyResolved = ctx.isPropertyResolved(); try { Object result = ctx.getELResolver().convertToType(ctx, obj, String.class); if (ctx.isPropertyResolved()...
java
{ "resource": "" }
q152884
InjectionRuntimeContextHelper.initSingletonEJBCDIProvider
train
public static <T> void initSingletonEJBCDIProvider(AbstractResourceInfo resource, Message message, T resourceObject) { /* * Only @Provider will use logic here. * As EJB can only be default constructor, CDI can be default constructor or 1 param with @Inject constructor * And a provide...
java
{ "resource": "" }
q152885
BeanOFactory.create
train
public final BeanO create(EJSContainer c, EJSHome h, boolean reactivate) // d623673.1 throws RemoteException, InvocationTargetException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "create: " + h); BeanO...
java
{ "resource": "" }
q152886
MethodExpressionImpl.getMethodInfo
train
@Override public MethodInfo getMethodInfo(ELContext context) throws PropertyNotFoundException, MethodNotFoundException, ELException { Node n = this.getNode(); EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); ctx.no...
java
{ "resource": "" }
q152887
MethodExpressionImpl.invoke
train
@Override public Object invoke(ELContext context, Object[] params) throws PropertyNotFoundException, MethodNotFoundException, ELException { EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); ctx.notifyBeforeEvaluation(getExp...
java
{ "resource": "" }
q152888
DirectoryJobXMLLoaderServiceImpl.loadJSL
train
@Override public IJobXMLSource loadJSL(String id) { IJobXMLSource jobXML = loadJobFromDirectory(JOB_XML_PATH, id); return jobXML; }
java
{ "resource": "" }
q152889
DatabaseIdentityStoreDefinitionWrapper.evaluateDataSourceLookup
train
@FFDCIgnore(IllegalArgumentException.class) private String evaluateDataSourceLookup(boolean immediateOnly) { try { return elHelper.processString("dataSourceLookup", idStoreDefinition.dataSourceLookup(), immediateOnly); } catch (IllegalArgumentException e) { if (TraceComponent...
java
{ "resource": "" }
q152890
DatabaseIdentityStoreDefinitionWrapper.evaluateHashAlgorithmParameters
train
@FFDCIgnore(IllegalArgumentException.class) private List<String> evaluateHashAlgorithmParameters() { List<String> parameters = new ArrayList<String>(); String[] rawArray = idStoreDefinition.hashAlgorithmParameters(); if (rawArray == null || rawArray.length == 0) { return paramet...
java
{ "resource": "" }
q152891
MPGroup.isMember
train
public boolean isMember(Principal member) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isMember", "is: " + member + ", a member of: " + this); boolean result = false; if(member instanceof MPPrincipal) { List theGroups = ((MPPrincipal)m...
java
{ "resource": "" }
q152892
NotificationManager.createNotificationArea
train
public NotificationArea createNotificationArea(RESTRequest request, String basePath, NotificationSettings notificationSettings) { //Cleanup old clients cleanUp(request); //Fetch a new ID int clientID = getNewClientID(); //Make the new inbox and insert into map ClientNot...
java
{ "resource": "" }
q152893
NotificationManager.addClientNotification
train
public String addClientNotification(RESTRequest request, int clientID, NotificationRegistration notificationRegistration, JSONConverter converter) { //Grab the client inbox ClientNotificationArea clientArea = getInboxIfAvailable(clientID, converter); //Create the client notification cli...
java
{ "resource": "" }
q152894
NotificationManager.removeClientNotification
train
public void removeClientNotification(RESTRequest request, ObjectName objectName, int clientID) { //Get the client area ClientNotificationArea clientArea = getInboxIfAvailable(clientID, null); //Remove the corresponding listener (will also remove from MBeanServer) clientArea.removeClien...
java
{ "resource": "" }
q152895
NotificationManager.getClientInbox
train
public NotificationRecord[] getClientInbox(int clientID) { //Fetch the inbox ClientNotificationArea inbox = getInboxIfAvailable(clientID, null); //Fetch the notifications (may wait if empty) return inbox.fetchNotifications(); }
java
{ "resource": "" }
q152896
NotificationManager.handleServerNotificationRegistration
train
public void handleServerNotificationRegistration(RESTRequest request, int clientID, ServerNotificationRegistration serverNotificationRegistration, JSONConverter converter) { //Get the client area ClientNotificationArea clientArea = getInboxIfAvailable...
java
{ "resource": "" }
q152897
NotificationManager.addServerNotificationHTTP
train
public String addServerNotificationHTTP(RESTRequest request, int clientID, ServerNotificationRegistration serverNotificationRegistration, JSONConverter converter) { //Get the client area ClientNotificationArea clientArea = getInboxIfAvailable(clientID, convert...
java
{ "resource": "" }
q152898
NotificationManager.deleteRegisteredListeners
train
public void deleteRegisteredListeners(RESTRequest request, int clientID, ObjectName source_objName, JSONConverter converter) { //Get the client area ClientNotificationArea clientArea = getInboxIfAvailable(clientID, null); clientArea.removeAllListeners(request, source_objName, converter); }
java
{ "resource": "" }
q152899
NotificationManager.cleanUp
train
public void cleanUp(RESTRequest request, int clientID) { ClientNotificationArea inbox = inboxes.get(clientID); //If somehow the inbox timed out before we came here, then just exit, because the end result is the same. if (inbox != null) { inbox.cleanUp(request); inboxes.re...
java
{ "resource": "" }