_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q153200 | BeanId.getBeanType | train | private static byte getBeanType(BeanMetaData bmd, boolean isHome) // d621921
{
// 621921 - Always use BeanMetaData to decide which bean type id to use.
if (isHome) // d621921
{
// Note: EJBFactory (EJBLink) does not support module versioning.
if (bmd != null && bmd._... | java | {
"resource": ""
} |
q153201 | BeanId.getJ2EENameBytes | train | protected static byte[] getJ2EENameBytes(byte[] bytes)
throws CSIException
{
// ****Important Note******: Much of this code was copied to com.ibm.ejs.oa.EJBOAKeyImpl.java
// in ecutils and modified slightly. Changes to this code may also
// ... | java | {
"resource": ""
} |
q153202 | BeanId.getPrimaryKey | train | protected static Serializable getPrimaryKey(byte[] bytes)
throws CSIException
{
int pkeyIndex;
boolean isStateful = false;
Serializable pkey = null;
byte[] j2eeNameBytes = null;
J2EEName j2eeName = null;
// Match up the header with the new format.... | java | {
"resource": ""
} |
q153203 | BeanId.useLSD | train | public final boolean useLSD() //LIDB859-4
{
if (_isHome)
{
return true;
}
else
{
BeanMetaData bmd = home.getBeanMetaData(j2eeName);
if (bmd.type == InternalConstants.TYPE_CONTAINER_MANAGED_ENTITY || // 126512
bmd.type == Int... | java | {
"resource": ""
} |
q153204 | BeanId.getByteArrayStream | train | private final ByteArrayOutputStream getByteArrayStream()
{
ByteArrayOutputStream rtnBaos = null;
// Get a ByteArrayOutputStream from the pool. Note that this must be
// synchronized as multiple threads may be accessing this pool, and the
// pool may return null if empty. ... | java | {
"resource": ""
} |
q153205 | BeanId.freeByteArrayStream | train | private final void freeByteArrayStream(ByteArrayOutputStream baos)
{
// If the pool is not full, then add to the pool. Note that this must
// be synchronized, as multiple threads may access the pool. d175235
synchronized (svBAOSs)
{
if (svBAOSsSize < svBAOSs.length)... | java | {
"resource": ""
} |
q153206 | ExceptionUtils.isCertPathBuilderException | train | public static boolean isCertPathBuilderException(Throwable cause) {
if (cause == null)
return false;
if (cause instanceof java.security.cert.CertPathBuilderException)
return true;
return isCertPathBuilderException(cause.getCause());
} | java | {
"resource": ""
} |
q153207 | ExceptionUtils.createByKey | train | static InstallException createByKey(int rc, String msgKey, Object... args) {
return create(Messages.INSTALL_KERNEL_MESSAGES.getLogMessage(msgKey, args), rc);
} | java | {
"resource": ""
} |
q153208 | ExceptionUtils.create | train | static InstallException create(String msg, Exception e) {
return create(msg, e, InstallException.RUNTIME_EXCEPTION);
} | java | {
"resource": ""
} |
q153209 | ExceptionUtils.createFailedToDownload | train | public static InstallException createFailedToDownload(RepositoryResource installResource, Exception e, File toDir) {
String target = toDir == null ? System.getProperty("java.io.tmpdir") : toDir.getAbsolutePath();
if (e instanceof IOException)
return ExceptionUtils.createByKey(InstallExceptio... | java | {
"resource": ""
} |
q153210 | ExceptionUtils.create | train | static InstallException create(Exception e) {
if (e instanceof ProductInfoParseException) {
ProductInfoParseException pipe = (ProductInfoParseException) e;
String missingKey = pipe.getMissingKey();
if (missingKey != null) {
return create(Messages.UTILITY_MESSA... | java | {
"resource": ""
} |
q153211 | ExceptionUtils.create | train | static InstallException create(RepositoryException e, Throwable cause, RestRepositoryConnectionProxy proxy, boolean defaultRepo) {
if (proxy != null && cause instanceof UnknownHostException)
return create(Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("ERROR_TOOL_UNKNOWN_PROXY_HOST", proxy.getProxy... | java | {
"resource": ""
} |
q153212 | ExceptionUtils.create | train | static InstallException create(RepositoryException e, Collection<String> featureNames, boolean installingAsset, RestRepositoryConnectionProxy proxy,
boolean defaultRepo, boolean isOpenLiberty) {
Throwable cause = e;
Throwable rootCause = e;
// Check the list o... | java | {
"resource": ""
} |
q153213 | ExceptionUtils.isNewerVersion | train | static boolean isNewerVersion(String version, String newestVersion, boolean isEarlyAccess) {
if (version == null)
return false;
String[] versionAry = version.split("\\.");
if (!!!isEarlyAccess && versionAry[0].length() == 4)
return false;
if (isEarlyAccess && v... | java | {
"resource": ""
} |
q153214 | ExceptionUtils.validateProductMatches | train | @SuppressWarnings("rawtypes")
static String validateProductMatches(String feature, List productMatchers, File installDir, boolean installingAsset) {
return validateProductMatches(feature, null, productMatchers, installDir, installingAsset);
} | java | {
"resource": ""
} |
q153215 | ExceptionUtils.create | train | private static InstallException create(String msg, Exception e, int rc) {
InstallException ie = new InstallException(msg, e, rc);
return ie;
} | java | {
"resource": ""
} |
q153216 | ExceptionUtils.stacktraceToString | train | static String stacktraceToString(Exception e) {
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
String stackTrace = sw.toString();
return stackTrace;
} | java | {
"resource": ""
} |
q153217 | CookieCacheData.getCookie | train | public HttpCookie getCookie(String name) {
if (null == name || 0 == this.parsedList.size()) {
return null;
}
for (HttpCookie cookie : this.parsedList) {
if (cookie.getName().equals(name)) {
return cookie;
}
}
return null;
} | java | {
"resource": ""
} |
q153218 | CookieCacheData.getAllCookies | train | public int getAllCookies(String name, List<HttpCookie> list) {
int added = 0;
if (0 < this.parsedList.size() && null != name) {
for (HttpCookie cookie : this.parsedList) {
if (cookie.getName().equals(name)) {
list.add(cookie.clone());
a... | java | {
"resource": ""
} |
q153219 | CookieCacheData.getAllCookies | train | public int getAllCookies(List<HttpCookie> list) {
int added = 0;
if (0 < this.parsedList.size()) {
for (HttpCookie cookie : this.parsedList) {
list.add(cookie.clone());
added++;
}
}
return added;
} | java | {
"resource": ""
} |
q153220 | CookieCacheData.getAllCookieValues | train | public int getAllCookieValues(String name, List<String> list) {
int added = 0;
if (0 < this.parsedList.size() && null != name) {
for (HttpCookie cookie : this.parsedList) {
if (name.equals(cookie.getName())) {
list.add(cookie.getValue());
}... | java | {
"resource": ""
} |
q153221 | CookieCacheData.duplicate | train | public CookieCacheData duplicate() {
// Create second instance and copy members
CookieCacheData cData = new CookieCacheData();
cData.parsedList = copyList(this.parsedList);
cData.isDirty = this.isDirty;
cData.hdrIndex = this.hdrIndex;
cData.headerType = this.headerType;
... | java | {
"resource": ""
} |
q153222 | LoggingFileUtils.showErrorMsg | train | private static void showErrorMsg(boolean showError, String msgKey, Object[] objs) {
if (showError) {
String msg = Tr.formatMessage(TraceSpecification.getTc(), msgKey, objs);
BaseTraceService.rawSystemErr.println(msg);
}
} | java | {
"resource": ""
} |
q153223 | AbstractInstrumentation.getClassFiles | train | protected List<File> getClassFiles(File root, File parent) {
if (root == null || !root.isDirectory()) {
return null;
}
List<File> fileList = new ArrayList<File>();
File[] files = root.listFiles();
for (int i = 0; files != null && i < files.length; i++) {
... | java | {
"resource": ""
} |
q153224 | AbstractInstrumentation.addPackageInfo | train | protected void addPackageInfo(PackageInfo packageInfo) {
if (packageInfo != null) {
packageInfoMap.put(packageInfo.getInternalPackageName(), packageInfo);
}
} | java | {
"resource": ""
} |
q153225 | AbstractInstrumentation.executeInstrumentation | train | public void executeInstrumentation() throws IOException {
errors.clear();
// Iterate over all entries in the classes list
for (File f : this.classFiles) {
try {
if (!f.canRead() || !f.canWrite()) {
throw new IOException(f + " can not be replaced")... | java | {
"resource": ""
} |
q153226 | AbstractInstrumentation.getClassInputStream | train | protected InputStream getClassInputStream(String classInternalName) {
if (classInternalName == null || "".equals(classInternalName)) {
return null;
}
InputStream inputStream = null;
try {
for (File jarFile : jarFiles) {
ZipFile zipFile = new ZipFi... | java | {
"resource": ""
} |
q153227 | AbstractInstrumentation.instrumentClassFile | train | public void instrumentClassFile(File classfile) throws IOException {
FileInputStream fis = new FileInputStream(classfile);
byte[] bytes = transform(fis);
fis.close();
fis = null;
// If the class was successfully transformed, rewrite it
if (bytes != null) {
Fi... | java | {
"resource": ""
} |
q153228 | AbstractInstrumentation.processPackageInfo | train | public void processPackageInfo() throws IOException {
for (File classFile : classFiles) {
if (classFile.getName().equals("package-info.class")) {
FileInputStream fis = new FileInputStream(classFile);
addPackageInfo(processPackageInfo(fis));
fis.close()... | java | {
"resource": ""
} |
q153229 | AbstractInstrumentation.processPackageInfo | train | protected PackageInfo processPackageInfo(InputStream packageInfoResource) {
if (packageInfoResource == null)
return null;
PackageInfo packageInfo = null;
try {
ClassReader cr = new ClassReader(packageInfoResource);
TraceConfigPackageVisitor packageVisitor = n... | java | {
"resource": ""
} |
q153230 | JITUtils.unbox | train | static void unbox(GeneratorAdapter mg, Type type)
{
switch (type.getSort())
{
case Type.VOID:
return;
case Type.BOOLEAN:
mg.visitTypeInsn(CHECKCAST, "java/lang/Boolean");
mg.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Boolean",
... | java | {
"resource": ""
} |
q153231 | JITUtils.getClassConstantFieldName | train | public static String getClassConstantFieldName(Class<?> klass) // d676434
{
String dollarName = klass.getName().replace('.', '$');
if (dollarName.startsWith("["))
{
if (dollarName.endsWith(";"))
{
// Remove trailing ";" from "[Ljava$lang$String;".
... | java | {
"resource": ""
} |
q153232 | CircuitBreakerConfig.validate | train | @Override
public void validate() {
String target = getTargetName();
//validate the parameters
if (delay() < 0) {
throw new FaultToleranceDefinitionException(Tr.formatMessage(tc, "circuitBreaker.parameter.delay.invalid.value.CWMFT5012E", "delay", delay(), target));
}
... | java | {
"resource": ""
} |
q153233 | CollaboratorUtils.getCallerPrincipal | train | public Principal getCallerPrincipal(boolean useRealm, String realm, boolean web, boolean isJaspiEnabled) {
Subject subject = subjectManager.getCallerSubject();
if (subject == null) {
return null;
}
SubjectHelper subjectHelper = new SubjectHelper();
if (subjectHelper.... | java | {
"resource": ""
} |
q153234 | JsDestinationAddressFactoryImpl.createSIDestinationAddress | train | public final SIDestinationAddress createSIDestinationAddress(String destinationName
,boolean localOnly
)
throws NullPointerException ... | java | {
"resource": ""
} |
q153235 | JsDestinationAddressFactoryImpl.createJsDestinationAddress | train | public final JsDestinationAddress createJsDestinationAddress(String destinationName
,boolean localOnly
,SIBUuid8 meId
)
... | java | {
"resource": ""
} |
q153236 | SchemaMetaTypeParser.getMetatypeInformation | train | public List<MetaTypeInformationSpecification> getMetatypeInformation() {
try {
for (Map.Entry<String, List<File>> prodEntry : prodJars.entrySet()) {
List<File> jars = prodEntry.getValue();
String productName = prodEntry.getKey();
for (File jar : jars)... | java | {
"resource": ""
} |
q153237 | SchemaMetaTypeParser.generateMetatypePropertiesName | train | private URL generateMetatypePropertiesName(String metatypeName, String locale) {
String lookupName;
if (locale != null && locale.length() > 0) {
lookupName = metatypeName + LOCALE_SEPARATOR + locale + PROP_EXT;
} else {
lookupName = metatypeName + PROP_EXT;
}
... | java | {
"resource": ""
} |
q153238 | ProxyQueueConversationGroupFactoryImpl.create | train | public synchronized ProxyQueueConversationGroup create(Conversation conversation)
throws IllegalArgumentException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "create", conversation);
if (convToGroupMap.containsKey(conversation))
{
// A pr... | java | {
"resource": ""
} |
q153239 | ProxyQueueConversationGroupFactoryImpl.groupCloseNotification | train | protected synchronized void groupCloseNotification(Conversation conversation,
ProxyQueueConversationGroup group)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "groupCloseNotification", new Object[] {conversation, group}... | java | {
"resource": ""
} |
q153240 | CommonFunction.exceptionList | train | public static String exceptionList(Throwable ex) {
StringBuilder sb = new StringBuilder();
sb.append("<=================================>");
sb.append("Exception Message -> ");
sb.append(ex.getMessage());
sb.append(nl);
if (ex instanceof ResourceException) {
... | java | {
"resource": ""
} |
q153241 | CommonFunction.getNLSMessage | train | public static final String getNLSMessage(String key, Object... args) {
return NLS.getFormattedMessage(key, args, key);
} | java | {
"resource": ""
} |
q153242 | CommonFunction.stackTraceToString | train | static String stackTraceToString(Throwable th) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
for (int depth = 0; depth < 10 && th != null; depth++) {
th.printStackTrace(pw);
Throwable cause = th.getCause();
if (cause != th) {
... | java | {
"resource": ""
} |
q153243 | XidImpl.toBytes | train | public byte[] toBytes() {
if (tc.isEntryEnabled())
Tr.entry(tc, "toBytes");
final int gtridLength = (_gtrid == null ? 0 : _gtrid.length);
final int bqualLength = (_bqual == null ? 0 : _bqual.length);
final int nbytes = 12 + gtridLength + bqualLength;
final byte[] res... | java | {
"resource": ""
} |
q153244 | XidImpl.getOtidBytes | train | public byte[] getOtidBytes() {
if (tc.isEntryEnabled())
Tr.entry(tc, "getOtidBytes");
if (_otid == null) {
final int total_length = _gtrid.length + _bqual.length;
_otid = new byte[total_length];
System.arraycopy(_gtrid, 0, _otid, 0, _gtrid.length);
... | java | {
"resource": ""
} |
q153245 | XidImpl.setStoken | train | protected void setStoken(byte[] stoken) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setStoken", stoken);
if (stoken != null)
System.arraycopy(
stoken,
0,
_bqual,
BQUA... | java | {
"resource": ""
} |
q153246 | XidImpl.isOurFormatId | train | public static boolean isOurFormatId(int formatIdentifier) {
if (tc.isEntryEnabled())
Tr.entry(tc, "isOurFormatId", formatIdentifier);
final boolean result;
switch (formatIdentifier) { // Current format IDs
case ZOS_FID_CB390:
case ZOS_FID_CBLT:
c... | java | {
"resource": ""
} |
q153247 | BaseConfiguration.getSingletonNames | train | void getSingletonNames(Set<String> singletons) {
for (Map.Entry<String, ConfigurationList<SimpleElement>> entry : configurationMap.entrySet()) {
ConfigurationList<SimpleElement> list = entry.getValue();
if (!list.isEmpty() && !list.hasId()) {
singletons.add(entry.getKey()... | java | {
"resource": ""
} |
q153248 | BaseConfiguration.getFactoryInstancesUsingDefaultId | train | public Map<ConfigID, FactoryElement> getFactoryInstancesUsingDefaultId(String pid, String alias, String defaultId) throws ConfigMergeException {
Map<ConfigID, List<SimpleElement>> defaultFactories = defaultConfigurationFactories(pid, alias, defaultId);
Map<ConfigID, List<SimpleElement>> factories = getA... | java | {
"resource": ""
} |
q153249 | TAIWebUtils.getAuthorizationEndpoint | train | public String getAuthorizationEndpoint(SocialLoginConfig clientConfig) throws SocialLoginException {
final String authzEndpoint = clientConfig.getAuthorizationEndpoint();
SocialUtil.validateEndpointWithQuery(authzEndpoint);
return authzEndpoint;
} | java | {
"resource": ""
} |
q153250 | TAIWebUtils.createStateCookie | train | public String createStateCookie(HttpServletRequest request, HttpServletResponse response) {
String stateValue = SocialUtil.generateRandom();
String loginHint = socialWebUtils.getLoginHint(request);
if (!request.getMethod().equalsIgnoreCase("GET") && loginHint != null) {
stateValue = ... | java | {
"resource": ""
} |
q153251 | JWTPayload.getAudienceAsList | train | @SuppressWarnings("unchecked")
public final List<String> getAudienceAsList() {
if (audience == null) {
return Collections.emptyList();
}
if (audience instanceof String) {
return Collections.singletonList((String) audience);
}
return (List<String>) audi... | java | {
"resource": ""
} |
q153252 | WSJdbcTracer.getImpl | train | public static final Object getImpl(Object obj) {
InvocationHandler handler;
return Proxy.isProxyClass(obj.getClass()) && (handler = Proxy.getInvocationHandler(obj)) instanceof WSJdbcTracer ? ((WSJdbcTracer) handler).impl : obj;
} | java | {
"resource": ""
} |
q153253 | CHFWBundle.modified | train | @Modified
protected synchronized void modified(Map<String, Object> cfwConfiguration) {
if (null == cfwConfiguration) {
return;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "Processing config", cfwConfiguration);
}
... | java | {
"resource": ""
} |
q153254 | CHFWBundle.serverStopping | train | @Override
public void serverStopping() {
// If the system is configured to quiesce connections..
long timeout = chfw.getDefaultChainQuiesceTimeout();
if (timeout > 0) {
ChainData[] runningChains = chfw.getRunningChains();
// build list of chain names to pass to stop,... | java | {
"resource": ""
} |
q153255 | CHFWBundle.setEventService | train | @Reference(service = EventEngine.class,
cardinality = ReferenceCardinality.MANDATORY)
protected void setEventService(EventEngine service) {
this.eventService = service;
} | java | {
"resource": ""
} |
q153256 | CHFWBundle.getScheduleService | train | public static ScheduledEventService getScheduleService() {
CHFWBundle c = instance.get().get();
if (null != c) {
return c.scheduler;
}
return null;
} | java | {
"resource": ""
} |
q153257 | CHFWBundle.setScheduledExecutorService | train | @Reference(service = ScheduledExecutorService.class,
cardinality = ReferenceCardinality.MANDATORY)
protected void setScheduledExecutorService(ScheduledExecutorService ref) {
this.scheduledExecutor = ref;
} | java | {
"resource": ""
} |
q153258 | CHFWBundle.getScheduledExecutorService | train | public static ScheduledExecutorService getScheduledExecutorService() {
CHFWBundle c = instance.get().get();
if (null != c) {
return c.scheduledExecutor;
}
return null;
} | java | {
"resource": ""
} |
q153259 | CHFWBundle.setScheduledEventService | train | @Reference(service = ScheduledEventService.class,
cardinality = ReferenceCardinality.MANDATORY)
protected void setScheduledEventService(ScheduledEventService ref) {
this.scheduler = ref;
} | java | {
"resource": ""
} |
q153260 | CHFWBundle.setFactoryProvider | train | @Reference(service = ChannelFactoryProvider.class,
cardinality = ReferenceCardinality.MULTIPLE,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY)
protected void setFactoryProvider(ChannelFactoryProvider provider) {
if (TraceComponent.... | java | {
"resource": ""
} |
q153261 | CHFWBundle.unsetFactoryProvider | train | protected void unsetFactoryProvider(ChannelFactoryProvider provider) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "Remove factory provider; " + provider);
}
this.chfw.deregisterFactories(provider);
} | java | {
"resource": ""
} |
q153262 | BatchWorkUnit.threadBegin | train | protected void threadBegin() {
//
// Note the 'beforeCallbacks' list is not going to have a well-defined order, so it is of limited use.
// We probably want to revisit this with some kind of priority/order based on ranking to make
// it more useful.
//
// At the moment we... | java | {
"resource": ""
} |
q153263 | BatchWorkUnit.threadEnd | train | protected void threadEnd() {
//
// Note the 'afterCallbacks' list is not going to have a well-defined order, so it is of limited use.
// We probably want to revisit this with some kind of priority/order based on ranking to make
// it more useful.
//
// At the moment we tr... | java | {
"resource": ""
} |
q153264 | StatefulBeanO.initializeTimeout | train | public void initializeTimeout(TimeoutElement elt) {
if (elt == null) {
elt = new TimeoutElement(beanId, getSessionTimeoutInMilliSeconds());
}
ivTimeoutElement = elt;
} | java | {
"resource": ""
} |
q153265 | StatefulBeanO.setInterceptors | train | public void setInterceptors(Object[] interceptors) // F87720
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.debug(tc, "setInterceptors interceptors = " + interceptors + ", for SFSB: " + this);
}
ivInterceptors = interceptors;
} | java | {
"resource": ""
} |
q153266 | StatefulBeanO.completeRemoveMethod | train | protected void completeRemoveMethod(ContainerTx tx) // d647928
throws RemoteException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "completeRemoveMethod: " + this);
long pmiCookie = 0;
... | java | {
"resource": ""
} |
q153267 | StatefulBeanO.isLifecycleCallbackGlobalTx | train | private boolean isLifecycleCallbackGlobalTx(int methodId) {
EJBMethodInfoImpl[] methodInfos = home.beanMetaData.lifecycleInterceptorMethodInfos;
return methodInfos != null &&
methodInfos[methodId].getTransactionAttribute() == TransactionAttribute.TX_REQUIRES_NEW;
} | java | {
"resource": ""
} |
q153268 | StatefulBeanO.beginLifecycleCallback | train | protected void beginLifecycleCallback(int methodId,
CallbackContextHelper contextHelper,
CallbackContextHelper.Contexts pushContexts) throws CSIException {
CallbackContextHelper.Tx beginTx = isLifecycleCallbackGlobalTx(methodId)... | java | {
"resource": ""
} |
q153269 | StatefulBeanO.isRollbackOnlyAllowed | train | private boolean isRollbackOnlyAllowed() {
switch (state) {
case PRE_CREATE:
case AFTER_COMPLETION:
return false;
case CREATING:
return isLifecycleCallbackGlobalTx(LifecycleInterceptorWrapper.MID_POST_CONSTRUCT);
case ACTIVATING:
... | java | {
"resource": ""
} |
q153270 | StatefulBeanO.setRollbackOnly | train | @Override
public void setRollbackOnly() {
synchronized (this) {
// The EJB Specification does not allow this operation from any
// of the following states.
if (!isRollbackOnlyAllowed()) // d159152
{
IllegalStateException ise;
i... | java | {
"resource": ""
} |
q153271 | StatefulBeanO.updateFailoverEntry | train | public void updateFailoverEntry(byte[] beanData, long lastAccessTime) throws RemoteException //LIDB2018
{
try {
// Note, updating failover entry for a SFSB only occurs when
// the bean is passivated. Therefore, the updateEntry
// method implicitly sets the passivated fla... | java | {
"resource": ""
} |
q153272 | StatefulBeanO.updateFailoverSetActiveProp | train | public void updateFailoverSetActiveProp() {
try {
if (ivSfFailoverClient != null) {
ivSfFailoverClient.activated(beanId, ivTimeoutElement.lastAccessTime); //d204278.2, F61004.5
}
} catch (Throwable e) {
FFDCFilter.processException(e, CLASS_NAME + ".upd... | java | {
"resource": ""
} |
q153273 | StatefulBeanO.setJPAExPcBindingContext | train | public void setJPAExPcBindingContext(Object exPc) //d468174
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.debug(tc, "setJPAExPcBindingContext: " + exPc);
ivExPcContext = exPc;
} | java | {
"resource": ""
} |
q153274 | SibRaSingleMessageDeletionDispatcher.afterDelivery | train | protected void afterDelivery(final SIBusMessage message, MessageEndpoint endpoint,
final boolean success) throws ResourceException {
final String methodName = "afterDelivery";
if (TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, new Object[] { message,
... | java | {
"resource": ""
} |
q153275 | SecurityServletConfiguratorHelper.configureSecurity | train | private void configureSecurity(List<com.ibm.ws.javaee.dd.web.common.SecurityConstraint> securityConstraints,
LoginConfig loginConfig,
List<SecurityRole> securityRoles,
List<ServletMapping> servletMappings,
... | java | {
"resource": ""
} |
q153276 | SecurityServletConfiguratorHelper.processSecurityRoles | train | private void processSecurityRoles(WebAnnotations webAnnotations, Set<String> classesWithSecurityRoles,
Class<? extends Annotation> securityAnnotation, boolean annotationForClass) throws UnableToAdaptException {
for (String classWithSecurityRole : classesWithSecurityRoles) {... | java | {
"resource": ""
} |
q153277 | SecurityServletConfiguratorHelper.processEnvEntries | train | private void processEnvEntries(List<EnvEntry> envEntries) {
if (envEntries != null) {
for (EnvEntry envEntry : envEntries) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "processing envEntry", envEntry.getName(), envEntry.getValu... | java | {
"resource": ""
} |
q153278 | SecurityServletConfiguratorHelper.processSecurityRoleRefs | train | private void processSecurityRoleRefs(String servletName, List<SecurityRoleRef> servletSecurityRoleRefs) {
Map<String, String> securityRoleRefs = new HashMap<String, String>();
securityRoleRefsByServlet.put(servletName, securityRoleRefs);
for (SecurityRoleRef secRoleRef : servletSecurityRoleRefs... | java | {
"resource": ""
} |
q153279 | SecurityServletConfiguratorHelper.createSecurityConstraint | train | private SecurityConstraint createSecurityConstraint(com.ibm.ws.javaee.dd.web.common.SecurityConstraint archiveConstraint, boolean denyUncoveredHttpMethods) {
List<WebResourceCollection> webResourceCollections = createWebResourceCollections(archiveConstraint, denyUncoveredHttpMethods);
List<String> roles... | java | {
"resource": ""
} |
q153280 | SecurityServletConfiguratorHelper.isSSLRequired | train | private boolean isSSLRequired(com.ibm.ws.javaee.dd.web.common.SecurityConstraint archiveConstraint) {
boolean sslRequired = false;
UserDataConstraint dataConstraint = archiveConstraint.getUserDataConstraint();
if (dataConstraint != null) {
int transportGuarantee = dataConstraint.get... | java | {
"resource": ""
} |
q153281 | ComponentNameSpaceConfiguration.getLogicalModuleName | train | public static String getLogicalModuleName(String path) // F743-23167
{
int lastForwardSlash = path.lastIndexOf('/');
if (lastForwardSlash != -1)
{
path = path.substring(lastForwardSlash + 1);
}
int lastDot = path.lastIndexOf('.');
if (lastDot != -1)
... | java | {
"resource": ""
} |
q153282 | ComponentNameSpaceConfiguration.getNameSpaceID | train | private String getNameSpaceID(Context javaColonContext)
{
String nsID = null;
String context = javaColonContext != null ? javaColonContext.toString() : null;
if (context != null)
{
nsID = "UNKNOWN";
int idx = context.indexOf("_nameSpaceID=");
if (... | java | {
"resource": ""
} |
q153283 | JmsMsgProducerImpl.getMessageFromProxy | train | private Message getMessageFromProxy(Message msg) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getMessageFromProxy", msg);
try {
if (msg instanceof Proxy) {
//check whether proxy is type of our InvocationHanlder.
... | java | {
"resource": ""
} |
q153284 | JmsMsgProducerImpl.sendUsingConnection | train | private void sendUsingConnection(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "sendUsingConnection", new Object[] { destination, message, deliver... | java | {
"resource": ""
} |
q153285 | JmsMsgProducerImpl.validateDestination | train | private JmsDestinationImpl validateDestination(Destination destination) throws JMSException {
// if this is an identified producer, throw an
// UnsupportedOperationException as this is an unidentified producer
// method.
if (this.dest != null) {
if (destination == null) {
... | java | {
"resource": ""
} |
q153286 | JmsMsgProducerImpl.validateDeliveryMode | train | private void validateDeliveryMode(int deliveryMode) throws JMSException {
switch (deliveryMode) {
case DeliveryMode.NON_PERSISTENT:
case DeliveryMode.PERSISTENT:
// OK - no problems.
break;
default:
throw (JMSException) JmsError... | java | {
"resource": ""
} |
q153287 | JmsMsgProducerImpl.validatePriority | train | private void validatePriority(int x) throws JMSException {
// Priority must be in the range 0-9
if ((x < 0) || (x > 9)) {
throw (JMSException) JmsErrorUtils.newThrowable(
JMSException.class,
... | java | {
"resource": ""
} |
q153288 | JmsMsgProducerImpl.validateTimeToLive | train | private void validateTimeToLive(long timeToLive) throws JMSException {
if ((timeToLive < 0) || (timeToLive > MfpConstants.MAX_TIME_TO_LIVE)) {
throw (JMSException) JmsErrorUtils.newThrowable(
JMSException.class,
... | java | {
"resource": ""
} |
q153289 | JmsMsgProducerImpl.validateDeliveryDelayTime | train | private void validateDeliveryDelayTime(long deliveryDelayTime) throws JMSException {
if ((deliveryDelayTime < 0) || (deliveryDelayTime > MfpConstants.MAX_DELIVERY_DELAY)) {
throw (JMSException) JmsErrorUtils.newThrowable(
JMSException.class... | java | {
"resource": ""
} |
q153290 | JmsMsgProducerImpl.validateTTLAndDD | train | private void validateTTLAndDD(long timeToLive) throws JMSException {
// There is no point continuting when expiry/timetolive time is earlier than the deliveryDelay
if (getDeliveryDelay() > 0 && timeToLive > 0) {//only if its non default value
if (timeToLive <= getDeliveryDelay()) {
... | java | {
"resource": ""
} |
q153291 | JmsMsgProducerImpl.validateCompletionListernerForNull | train | private void validateCompletionListernerForNull(CompletionListener cListener) throws IllegalArgumentException {
if (null == cListener) {
throw (IllegalArgumentException) JmsErrorUtils.newThrowable(
IllegalArgumentException.cla... | java | {
"resource": ""
} |
q153292 | JmsMsgProducerImpl.validateMessageForNull | train | private void validateMessageForNull(Message msg) throws MessageFormatException {
// if the supplied message is null, throw a jms MessageFormatException.
if (msg == null) {
throw (MessageFormatException) JmsErrorUtils.newThrowable(
... | java | {
"resource": ""
} |
q153293 | AuthenticationGuard.requestAccess | train | public synchronized ReentrantLock requestAccess(AuthenticationData authenticationData) {
ReentrantLock currentLock = null;
currentLock = authenticationDataLocks.get(authenticationData);
if (currentLock == null) {
currentLock = new ReentrantLock();
authenticationDataLocks.... | java | {
"resource": ""
} |
q153294 | AuthenticationGuard.relinquishAccess | train | public synchronized void relinquishAccess(AuthenticationData authenticationData, ReentrantLock currentLock) {
if (currentLock != null) {
ReentrantLock savedLock = authenticationDataLocks.get(authenticationData);
if (currentLock == savedLock) {
authenticationDataLocks.remo... | java | {
"resource": ""
} |
q153295 | DataSourceService.destroyConnectionFactories | train | protected void destroyConnectionFactories(boolean destroyImmediately) {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, "destroyConnectionFactories", destroyImmediately, destroyWasDeferred);
// Notify the application r... | java | {
"resource": ""
} |
q153296 | DataSourceService.parseIsolationLevel | train | private static final void parseIsolationLevel(NavigableMap<String, Object> wProps, String vendorImplClassName) {
// Convert isolationLevel constant name to integer
Object isolationLevel = wProps.get(DataSourceDef.isolationLevel.name());
if (isolationLevel instanceof String) {
isolati... | java | {
"resource": ""
} |
q153297 | DataSourceService.setJaasLoginContextEntry | train | protected void setJaasLoginContextEntry(ServiceReference<?> ref) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "setJaasLoginContextEntry", ref);
}
if (ref != null) {
jaasLoginContextEntryName = (String) ref.getProperty("name");
... | java | {
"resource": ""
} |
q153298 | DataSourceService.unsetConnectionManager | train | protected void unsetConnectionManager(ServiceReference<ConnectionManagerService> ref) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "unsetConnectionManager", ref);
} | java | {
"resource": ""
} |
q153299 | DataSourceService.unsetDriver | train | protected void unsetDriver(ServiceReference<JDBCDriverService> ref) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "unsetDriver", ref);
} | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.