_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q152900 | NotificationManager.cleanUp | train | public void cleanUp(RESTRequest request) {
//We need to loop through the clients but we don't want to synchronize
//the entire map, which would block new clients from entering and block existing
//clients from continuing their work. So we iterate and possibly remove by just
//using the... | java | {
"resource": ""
} |
q152901 | NotificationManager.getInboxIfAvailable | train | private ClientNotificationArea getInboxIfAvailable(int clientID, JSONConverter converter) {
final ClientNotificationArea inbox = inboxes.get(clientID);
if (inbox == null) {
throw ErrorHelper.createRESTHandlerJsonException(new RuntimeException("The requested clientID is no longer available b... | java | {
"resource": ""
} |
q152902 | NotificationManager.getNewClientID | train | private synchronized int getNewClientID() {
if ((clientIDGenerator + 1) >= Integer.MAX_VALUE) {
//if we can't find a reusable ID within the first 100 slots, then fail.
//Revisit: I don't want to loop through all 2+ billion entries to find that they are all taken, as this
//co... | java | {
"resource": ""
} |
q152903 | TimerMethodData.addAutomaticTimer | train | void addAutomaticTimer(AutomaticTimer timer)
{
timer.ivMethod = this;
ivAutomaticTimers.add(timer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "added automatic timer: " + timer);
} | java | {
"resource": ""
} |
q152904 | InstallKernelMap.generateJsonFromIndividualESAs | train | private File generateJsonFromIndividualESAs(Path jsonDirectory, Map<String, String> shortNameMap) throws IOException, RepositoryException, InstallException {
String dir = jsonDirectory.toString();
List<File> esas = (List<File>) data.get(INDIVIDUAL_ESAS);
File singleJson = new File(dir + "/Single... | java | {
"resource": ""
} |
q152905 | StatsInstanceImpl.createInstance | train | public static StatsInstanceImpl createInstance(String name, String configXmlPath, ObjectName userProvidedMBeanObjectName, boolean bCreateDefaultMBean,
StatisticActions actionLsnr)
throws StatsFactoryException {
PmiModuleConfig cfg = PerfMod... | java | {
"resource": ""
} |
q152906 | StatsInstanceImpl.createGroupInstance | train | public static StatsInstanceImpl createGroupInstance(String name, StatsGroup igroup, String configXmlPath, ObjectName userProvidedMBeanObjectName, boolean bCreateDefaultMBean,
StatisticActions actionLsnr)
throws StatsFactoryException {
P... | java | {
"resource": ""
} |
q152907 | StatsInstanceImpl.getStatistic | train | public SPIStatistic getStatistic(int id) {
for (int i = 0; i < _stats.length; i++) {
if (_stats[i] != null && _stats[i].getId() == id) {
return _stats[i];
/*
* ~~~~~~~~~~~~~~ commented ~~~~~~~~~~~~~~
* // do not check as it is done i... | java | {
"resource": ""
} |
q152908 | Permission.addUserToRole | train | protected void addUserToRole(String user, String role) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "addUserToRole", new Object[] { user, role });
}
Set<String> usersForTheRole = roleToUserMap.get(role);
if (usersForTheRole... | java | {
"resource": ""
} |
q152909 | Permission.addGroupToRole | train | protected void addGroupToRole(String group, String role) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "addGroupToRole", new Object[] { group, role });
}
Set<String> groupsForTheRole = roleToGroupMap.get(role);
if (groupsFor... | java | {
"resource": ""
} |
q152910 | Permission.addAllUsersToRole | train | protected void addAllUsersToRole(Set<String> users, String role) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "addAllUsersToRole", new Object[] { users, role });
}
Set<String> usersForTheRole = roleToUserMap.get(role);
if (... | java | {
"resource": ""
} |
q152911 | Permission.addAllGroupsToRole | train | protected void addAllGroupsToRole(Set<String> groups, String role) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "addAllGroupsToRole", new Object[] { groups, role });
}
Set<String> groupsForTheRole = roleToGroupMap.get(role);
... | java | {
"resource": ""
} |
q152912 | JAASLoginModuleConfigImpl.extractOptions | train | private Map<String, Object> extractOptions(Map<String, Object> props) {
List<Map<String, Object>> optionsList = Nester.nest("options", props);
if (!optionsList.isEmpty()) {
Map<String, Object> options = new HashMap<String, Object>(optionsList.get(0).size());
for (Map.Entry<String... | java | {
"resource": ""
} |
q152913 | ClassloaderContextImpl.setCL | train | private void setCL(final ClassLoader cl) {
PrivilegedAction<Object> action = new PrivilegedAction<Object>() {
@Override
@FFDCIgnore(SecurityException.class)
public Object run() {
final Thread t = Thread.currentThread();
try {
... | java | {
"resource": ""
} |
q152914 | ClassloaderContextImpl.readObject | train | private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
GetField fields = in.readFields();
classLoaderIdentifier = (String) fields.get(CLASS_LOADER_IDENTIFIER, null);
// Note that further processing is required in JEEMetadataContextProviderImpl.deseria... | java | {
"resource": ""
} |
q152915 | ClientCommsDiagnosticModule.dumpJFapClientStatus | train | @Override
protected void dumpJFapClientStatus(IncidentStream is)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dumpJFapClientStatus");
ClientConnectionManager ccm = ClientConnectionManager.getRef();
List obc = ccm.getActiveOutboundConversationsF... | java | {
"resource": ""
} |
q152916 | ClientCommsDiagnosticModule.dumpJFapServerStatus | train | @Override
protected void dumpJFapServerStatus(IncidentStream is)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dumpJFapServerStatus", is);
is.writeLine("No Server Conversation Dump", "");
if (TraceComponent.isAnyTracingEnabled() && tc.isE... | java | {
"resource": ""
} |
q152917 | ClientCommsDiagnosticModule.dumpClientConversation | train | private void dumpClientConversation(IncidentStream is, Conversation conv) throws SIException
{
// Get the conversation state
ClientConversationState convState = (ClientConversationState) conv.getAttachment();
SICoreConnection siConn = convState.getSICoreConnection();
if (siConn == null... | java | {
"resource": ""
} |
q152918 | ClientCommsDiagnosticModule.convertToMap | train | protected Map<Object, LinkedList<Conversation>> convertToMap(final IncidentStream is, final List obc)
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "convertToMap", new Object[]{is, obc});
final Map<Object, LinkedList<Conversation>> connectionToConversatio... | java | {
"resource": ""
} |
q152919 | IIOPEndpointImpl.activate | train | @Activate
protected void activate(Map<String, Object> properties) throws Exception {
this.host = (String) properties.get("host");
Integer iiopPort = (Integer) properties.get("iiopPort");
this.iiopPort = iiopPort == null ? -1 : iiopPort;
iiopsOptions = Nester.nest("iiopsOptions", pro... | java | {
"resource": ""
} |
q152920 | EJBMethodInfoImpl.initializeInstanceData | train | public void initializeInstanceData(String methodSign,
String methodNameOnly,
BeanMetaData beanMetaData,
MethodInterface methodInterface, // d162441 199625
Transacti... | java | {
"resource": ""
} |
q152921 | EJBMethodInfoImpl.getRolesAllowed | train | @Override
public List<String> getRolesAllowed()
{
return ivRolesAllowed == null ? Collections.<String> emptyList() : Arrays.asList(ivRolesAllowed);
} | java | {
"resource": ""
} |
q152922 | JTAXAResourceImpl.forget | train | @Override
public final void forget() throws XAException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "forget", new Object[] { _resource, _xid });
if (tcSummary.isDebugEnabled())
Tr.debug(tcSummary, "xa_forget", this);
int rc = -1; // not an XA RC
try
{... | java | {
"resource": ""
} |
q152923 | JTAXAResourceImpl.log | train | @Override
public void log(RecoverableUnitSection rus) throws SystemException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "log", new Object[] { this, rus });
if (tc.isDebugEnabled())
{
Tr.debug(tc, "about to log stoken " + Util.toHexString(((XidImpl) _xid).getStoken()... | java | {
"resource": ""
} |
q152924 | JTAXAResourceImpl.destroy | train | @Override
public final void destroy()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "destroy", new Object[] { _resource, _xid });
if (!_completed)
{
// If we created an XAResource by reconnectRM we need to destroy it
if (_recoveredRM != null)
{
... | java | {
"resource": ""
} |
q152925 | CustomFirstELResolverComparator._getFacesConfigElResolvers | train | private List<ELResolver> _getFacesConfigElResolvers()
{
if (_facesConfigResolvers == null)
{
ExternalContext externalContext
= FacesContext.getCurrentInstance().getExternalContext();
RuntimeConfig runtimeConfig
= RuntimeConfig.getCurren... | java | {
"resource": ""
} |
q152926 | DistributedObjectCacheFactory.getMap | train | public static DistributedObjectCache getMap(String name, Properties properties) {
final String methodName = "getMap()";
if (tc.isEntryEnabled()) {
Tr.entry(tc, methodName + " name: (" + name + ") properties:" + properties);
}
if (name == null || name.trim().length() == 0) {
... | java | {
"resource": ""
} |
q152927 | UtilityMain.getBundleEmbeddedLibs | train | private static List<URL> getBundleEmbeddedLibs( final URL jarFileUrl) throws IOException, PrivilegedActionException {
return AccessController.doPrivileged(new PrivilegedExceptionAction<List<URL>>() {
public List<URL> run()
throws Exception
{
... | java | {
"resource": ""
} |
q152928 | ConfigVariableRegistry.lookupVariable | train | public String lookupVariable(String variableName) {
String varReference = XMLConfigConstants.VAR_OPEN + variableName + XMLConfigConstants.VAR_CLOSE;
String resolvedVar = registry.resolveRawString(varReference);
return varReference.equalsIgnoreCase(resolvedVar) ? null : resolvedVar;
} | java | {
"resource": ""
} |
q152929 | ConfigVariableRegistry.lookupVariableDefaultValue | train | public String lookupVariableDefaultValue(String variableName) {
ConfigVariable cv = configVariables.get(variableName);
return cv == null ? null : cv.getDefaultValue();
} | java | {
"resource": ""
} |
q152930 | ClaimsUtils.getJwtClaims | train | public JwtClaims getJwtClaims(String jwt) throws JoseException {
String methodName = "getJwtClaims";
if (tc.isDebugEnabled()) {
Tr.entry(tc, methodName, jwt);
}
JwtClaims jwtclaims = new JwtClaims();
String payload = getJwtPayload(jwt);
if (payload != null) {
... | java | {
"resource": ""
} |
q152931 | ClaimsUtils.convertJoseTypes | train | private void convertJoseTypes(JwtClaims claimsSet) {
// if (claimsSet.hasClaim(Claims.address.name())) {
// replaceMap(Claims.address.name());
// }
// if (claimsSet.hasClaim(Claims.jwk.name())) {
// replaceMap(Claims.jwk.name());
... | java | {
"resource": ""
} |
q152932 | ClaimsUtils.convertToList | train | @FFDCIgnore({ MalformedClaimException.class })
private void convertToList(String claimName, JwtClaims claimsSet) {
List<String> list = null;
try {
list = claimsSet.getStringListClaimValue(claimName);
} catch (MalformedClaimException e) {
try {
String v... | java | {
"resource": ""
} |
q152933 | Jsp21FacesInitializer.configureResolverForJSP | train | private void configureResolverForJSP(JspApplicationContext appCtx, RuntimeConfig runtimeConfig)
{
FacesCompositeELResolver facesCompositeELResolver = new FacesCompositeELResolver(Scope.JSP);
appCtx.addELResolver(facesCompositeELResolver);
PhaseListener resolverForJSPInitializer = new Resolve... | java | {
"resource": ""
} |
q152934 | JwtFatActions.logInAndObtainCookie | train | private Cookie logInAndObtainCookie(String testName, WebClient webClient, String protectedUrl, String username, String password, String cookieName,
Expectations expectations) throws Exception {
Page response = invokeProtectedUrlAndValidateResponse(testName, webClient, pro... | java | {
"resource": ""
} |
q152935 | SIBUuid8.toLong | train | public long toLong () {
long result = 0;
byte[] uuidBytes = super.toByteArray();
for (int i = 0; i < 8; i++)
{
result = result << 8;
result += (int) uuidBytes[i];
}
return result;
} | java | {
"resource": ""
} |
q152936 | XMLToJSONTransformer.transform | train | public static void transform(InputStream XMLStream, OutputStream JSONStream, boolean verbose)
throws SAXException, IOException
{
if (logger.isLoggable(Level.FINER))
{
logger.entering(className, "transform(InputStream, OutputStream)");
}
if (XMLStream == null)
... | java | {
"resource": ""
} |
q152937 | XMLToJSONTransformer.transform | train | public static String transform(File xmlFile, boolean verbose)
throws SAXException, IOException
{
if (logger.isLoggable(Level.FINER))
{
logger.exiting(className, "transform(InputStream, boolean)");
}
FileInputStream fis = new FileInputStream(xmlFile);
S... | java | {
"resource": ""
} |
q152938 | CustomUserRegistryFactory.setCustomUserRegistry | train | @Reference(cardinality = ReferenceCardinality.MULTIPLE,
policyOption = ReferencePolicyOption.GREEDY)
protected synchronized void setCustomUserRegistry(com.ibm.websphere.security.UserRegistry externalUserRegistry, Map<String, Object> props) {
String id = getId(props);
customUserRegistr... | java | {
"resource": ""
} |
q152939 | CustomUserRegistryFactory.unsetCustomUserRegistry | train | protected synchronized void unsetCustomUserRegistry(Map<String, Object> props) {
String id = getId(props);
customUserRegistries.remove(id);
ServiceRegistration<UserRegistry> registration = registrynRegistrationsToUnregister.remove(id);
if (registration != null) {
registration... | java | {
"resource": ""
} |
q152940 | ConnectionPoolMonitor.waitTimeEntry | train | @ProbeAtEntry
@ProbeSite(clazz = "com.ibm.ejs.j2c.FreePool", method = "queueRequest")
public void waitTimeEntry() {
if (tc.isEntryEnabled()) {
Tr.entry(tc, "waitTimeEntry");
}
tlocalforwtTime.set(System.currentTimeMillis());
if (tc.isEntryEnabled()) {
Tr.e... | java | {
"resource": ""
} |
q152941 | FormLoginAuthenticator.handleFormLogin | train | private AuthenticationResult handleFormLogin(HttpServletRequest req, HttpServletResponse res, WebRequest webRequest) {
AuthenticationResult authResult = null;
authResult = ssoAuthenticator.authenticate(webRequest);
if (authResult != null) {
authResult.setAuditCredType(AuditEvent.CRE... | java | {
"resource": ""
} |
q152942 | FormLoginAuthenticator.handleRedirect | train | private AuthenticationResult handleRedirect(HttpServletRequest req,
HttpServletResponse res,
WebRequest webRequest) {
AuthenticationResult authResult;
String loginURL = getFormLoginURL(req, webRequest, webAp... | java | {
"resource": ""
} |
q152943 | DirEntryConfig.filterDirectory | train | private void filterDirectory(List<String> dirContent, DirPattern dirPattern, String parentPath) throws IOException {
// setup the working directory
File workingDirectory = new File(source, parentPath);
//If the directory doesn't exist, we should not archive it.
if (workingDirectory.exis... | java | {
"resource": ""
} |
q152944 | CacheLoader.start | train | public final void start(long loaderInterval, JsMessagingEngine jsme) throws MessageStoreRuntimeException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "start", Long.valueOf(loaderInterval));
messagingEngine = jsme;
if (loaderInterval >= 0) // Use ... | java | {
"resource": ""
} |
q152945 | CacheLoader.stop | train | public final void stop()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "stop");
synchronized (alarmLock)
{
if (enabled)
{
loaderStopTime = timeNow();
enabled = false;
shutdown ... | java | {
"resource": ""
} |
q152946 | CacheLoader.saveStartTime | train | private int saveStartTime(long time)
{
int indexUsed = diagIndex;
cycleTime[diagIndex++] = time;
if (diagIndex >= MAX_DIAG_LOG)
{
diagIndex = 0;
}
return indexUsed;
} | java | {
"resource": ""
} |
q152947 | CacheLoader.scheduleAlarm | train | private Alarm scheduleAlarm(long timeOut)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "scheduleAlarm timeOut=" + timeOut);
Alarm alarm = AlarmManager.createNonDeferrable(timeOut, this);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl... | java | {
"resource": ""
} |
q152948 | ClientSideConnection.getSICoreConnection | train | public SICoreConnection getSICoreConnection() throws SIConnectionLostException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSICoreConnection");
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "Building connection prox... | java | {
"resource": ""
} |
q152949 | ClientSideConnection.sendMFPSchema | train | public void sendMFPSchema(byte[] schemaData)
throws
SIConnectionLostException,
SIConnectionDroppedException,
SIConnectionUnavailableException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "sendMFPSchema");
if (TraceComponent.isA... | java | {
"resource": ""
} |
q152950 | ClientSideConnection.close | train | public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
// We should close the underlying connection at this point
try
{
Conversation conv = getConversation();
if (conv != null) conv.close();
}
catch... | java | {
"resource": ""
} |
q152951 | ClientSideConnection.connectionClosed | train | public void connectionClosed(Object linkLevelAttachement)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "connectionClosed", linkLevelAttachement);
try
{
// Get hold of MFP and inform it of connection closure
CompHandshake ch = (CompHands... | java | {
"resource": ""
} |
q152952 | ClientSideConnection.requestMFPSchemata | train | public byte[] requestMFPSchemata(byte[] schemaData)
throws SIConnectionLostException,
SIConnectionDroppedException,
SIConnectionUnavailableException,
SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "requestMFPSchemata");... | java | {
"resource": ""
} |
q152953 | ClientSideConnection.setSchemaSet | train | public void setSchemaSet(ConnectionSchemaSet schemaSet)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSchemaSet", schemaSet);
getConversation().setSchemaSet(schemaSet);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, ... | java | {
"resource": ""
} |
q152954 | ClientSideConnection.getSchemaSet | train | public ConnectionSchemaSet getSchemaSet() throws SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSchemaSet");
ConnectionSchemaSet result = getConversation().getSchemaSet();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntry... | java | {
"resource": ""
} |
q152955 | LoggedOutJwtSsoCookieCache.toDigest | train | private static String toDigest(String input) {
md.reset();
try {
md.update(input.getBytes("UTF-8"));
} catch (UnsupportedEncodingException e) {
}
String result = com.ibm.ws.common.internal.encoder.Base64Coder.base64EncodeToString(md.digest());
//String result ... | java | {
"resource": ""
} |
q152956 | PaddingLogRecord.getBuffers | train | protected ObjectManagerByteArrayOutputStream[] getBuffers()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"getBuffers");
ObjectManagerByteArrayOut... | java | {
"resource": ""
} |
q152957 | RemoteExceptionMappingStrategy.mapCSIException | train | private Exception mapCSIException(EJSDeployedSupport s, CSIException e) throws CSIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "mapCSIException: " + e);
}
Exception mappedException = null;
String message = " ";
// F... | java | {
"resource": ""
} |
q152958 | RemoteExceptionMappingStrategy.mapEJBException | train | private Exception mapEJBException(EJSDeployedSupport s, EJBException e) throws CSIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "mapEJBException: " + e);
}
Exception mappedException = null;
String message = " ";
// F... | java | {
"resource": ""
} |
q152959 | AbstractListView.getFirst | train | public Token getFirst(Transaction transaction)
throws ObjectManagerException
{
Iterator iterator = iterator();
return (Token) iterator.next(transaction);
} | java | {
"resource": ""
} |
q152960 | CODIClientSideWindow.addParameters | train | public static String addParameters(ExternalContext externalContext, String url,
boolean addRequestParameter, boolean addPageParameter, boolean encodeValues)
{
StringBuilder finalUrl = new StringBuilder(url);
boolean existingParameters = url.contains("?");
... | java | {
"resource": ""
} |
q152961 | AttachedRemoteSubscriberIterator.next | train | public Object next()
{
if (tc.isEntryEnabled())
{
SibTr.entry(tc, "next");
}
Object result;
if (hasNext())
{
AnycastInputHandler aih = (AnycastInputHandler) anycastIHIterator.next();
result = aih.getControlAdapter();
}
else
{
result = null;
... | java | {
"resource": ""
} |
q152962 | SingleDiscriminatorAlgorithm.discriminate | train | public int discriminate(VirtualConnection vc, Object discrimData, ConnectionLink prevChannelLink) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "discriminate: " + vc);
}
ConnectionLink nextChannelLink = nextChannel.getConnectionLink(vc);
pr... | java | {
"resource": ""
} |
q152963 | MetaTagHandlerImpl.createMetaRuleset | train | protected MetaRuleset createMetaRuleset(Class type)
{
ParameterCheck.notNull("type", type);
return new MetaRulesetImpl(this.tag, type);
} | java | {
"resource": ""
} |
q152964 | WsLogRecord.setThrown | train | @Override
public void setThrown(Throwable thrown) {
if (thrown != null) {
super.setThrown(thrown);
this.ivStackTrace = DataFormatHelper.throwableToString(thrown);
}
} | java | {
"resource": ""
} |
q152965 | WsLogRecord.createWsLogRecord | train | public static WsLogRecord createWsLogRecord(TraceComponent tc, Level level, String msg, Object[] msgParms) {
WsLogRecord retMe = new WsLogRecord(level, msg);
retMe.setLoggerName(tc.getName());
retMe.setParameters(msgParms);
retMe.setTraceClass(tc.getTraceClass());
retMe.setResou... | java | {
"resource": ""
} |
q152966 | ClientAsyncResult.isCancelled | train | public boolean isCancelled() {
if (svLogger.isLoggable(Level.FINER))
svLogger.logp(Level.FINER, CLASS_NAME, "isCancelled", toString());
return (ivCancellationException != null); // d614969
} | java | {
"resource": ""
} |
q152967 | ClientAsyncResult.waitForResult | train | private Object waitForResult(long timeoutMillis)
throws ExecutionException, InterruptedException, TimeoutException, RemoteException { // F16043
final boolean isTraceOn = svLogger.isLoggable(Level.FINER);
if (isTraceOn)
svLogger.entering(CLASS_NAME, "waitForResult", Long.v... | java | {
"resource": ""
} |
q152968 | DestinationNamePattern.prepare | train | public void prepare() throws SIDiscriminatorSyntaxException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"prepare");
// The user has specified a pattern to match against, check whether it is
// wildcarded
patternIsWildcarded = mpm.isWildCar... | java | {
"resource": ""
} |
q152969 | DestinationNamePattern.match | train | public boolean match(String destinationName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"match", destinationName);
boolean matches = false;
if(!patternIsWildcarded)
{
// Match the name directly through String equality
matches ... | java | {
"resource": ""
} |
q152970 | WSJdbcWrapper.createClosedException | train | protected final SQLRecoverableException createClosedException(String ifc) {
String message = AdapterUtil.getNLSMessage("OBJECT_CLOSED", ifc);
return new SQLRecoverableException(message, "08003", 0);
} | java | {
"resource": ""
} |
q152971 | WSJdbcWrapper.invokeOperation | train | Object invokeOperation(Object implObject, Method method, Object[] args)
throws IllegalAccessException, IllegalArgumentException, InvocationTargetException,
SQLException {
TraceComponent tc = getTracer();
if (tc.isDebugEnabled())
Tr.debug(this, tc,
... | java | {
"resource": ""
} |
q152972 | WSJdbcWrapper.isWrapperFor | train | public boolean isWrapperFor(Class<?> interfaceClass) throws SQLException {
TraceComponent tc = getTracer();
if (tc.isEntryEnabled())
Tr.entry(this, tc, "isWrapperFor", interfaceClass);
boolean isWrapper;
try {
activate();
isWrapper = interfaceClass.is... | java | {
"resource": ""
} |
q152973 | WSJdbcWrapper.unwrap | train | @SuppressWarnings("unchecked")
public <T> T unwrap(final Class<T> interfaceClass) throws SQLException
{
TraceComponent tc = getTracer();
if (tc.isEntryEnabled())
Tr.entry(this, tc, "unwrap", interfaceClass);
activate();
Object result;
// Return the curren... | java | {
"resource": ""
} |
q152974 | LTPAKeyFileCreatorImpl.getRealmName | train | private String getRealmName() {
String realm = "defaultRealm";
try {
UserRegistry ur = RegistryHelper.getUserRegistry(null);
if (ur != null) {
String r = ur.getRealm();
if (r != null) {
realm = r;
}
}... | java | {
"resource": ""
} |
q152975 | JavaColonNamespaceBindings.getContextName | train | static String getContextName(String name) {
int index = name.lastIndexOf('/');
return index == -1 ? "" : name.substring(0, index);
} | java | {
"resource": ""
} |
q152976 | JavaColonNamespaceBindings.bind | train | public void bind(String name, T binding) {
put(name, binding);
Map<String, Map<String, NameClassPair>> bindingsByContext = this.contextBindings;
if (bindingsByContext != null) {
addContextBinding(bindingsByContext, name, binding);
}
Set<String> contexts = this.conte... | java | {
"resource": ""
} |
q152977 | JavaColonNamespaceBindings.lookup | train | public T lookup(String name) throws NamingException {
T binding = super.get(name);
if (binding != null) {
return binding;
}
// Binding does not exist. Check if any the contexts are bindings.
String contextName = name;
while (!(contextName = getContextName(co... | java | {
"resource": ""
} |
q152978 | ManagedBeanOBase.setEnterpriseBean | train | public void setEnterpriseBean(Object bean) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "setEnterpriseBean : " + Util.identity(bean));
ivEjbInstance = bean;
} | java | {
"resource": ""
} |
q152979 | ManagedBeanOBase.createInterceptors | train | private void createInterceptors(InterceptorMetaData imd) {
ivInterceptors = new Object[imd.ivInterceptorClasses.length];
try {
imd.createInterceptorInstances(getInjectionEngine(), ivInterceptors, ivEjbManagedObjectContext, this);
} catch (Throwable t) {
FFDCFilter.proces... | java | {
"resource": ""
} |
q152980 | ManagedBeanOBase.injectInstance | train | protected void injectInstance(ManagedObject<?> managedObject, Object instance, InjectionTargetContext injectionContext) throws EJBException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "injectInstance : " + Util.identity... | java | {
"resource": ""
} |
q152981 | ManagedBeanOBase.createInterceptorsAndInstance | train | protected void createInterceptorsAndInstance(CallbackContextHelper contextHelper) throws InvocationTargetException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "createInterceptorsAndInstance : " + contextHelper);
... | java | {
"resource": ""
} |
q152982 | ManagedBeanOBase.createInstance | train | private void createInstance() throws InvocationTargetException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "createInstance");
ManagedObjectFactory<?> ejbManagedObjectFactory = home.beanMetaData.ivEnterpriseBean... | java | {
"resource": ""
} |
q152983 | ManagedBeanOBase.createInstanceUsingMOF | train | @SuppressWarnings("unchecked")
private void createInstanceUsingMOF(ManagedObjectFactory<?> ejbManagedObjectFactory) throws InvocationTargetException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "createInstanceUsingMO... | java | {
"resource": ""
} |
q152984 | ManagedBeanOBase.createInstanceUsingConstructor | train | private void createInstanceUsingConstructor() throws InvocationTargetException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "createInstanceUsingConstructor");
try {
if (isTraceOn && tc.isDebugEnabled... | java | {
"resource": ""
} |
q152985 | AuthDataServiceImpl.optimize | train | private void optimize(final Subject subject) {
if (System.getSecurityManager() == null)
subject.setReadOnly();
else
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
subject.setReadOnly()... | java | {
"resource": ""
} |
q152986 | MonitorHolder.start | train | private synchronized void start() {
// only reschedule if monitor is still active (not in the process of being initialized or destroyed
// don't schedule a task if there are no monitors or the monitorInterval was set to 0
// don't schedule a task if the framework is stopping
if (schedule... | java | {
"resource": ""
} |
q152987 | MonitorHolder.doDestroy | train | private boolean doDestroy() {
// Try to obtain the scan lock to destroy all associated monitors
// Other users of the scanLock should check the destroy flag
// before they release the lock to determine whether or not
// resources should be destroyed
if (scanLock.tryLock()) {
... | java | {
"resource": ""
} |
q152988 | MonitorHolder.processFileRefresh | train | void processFileRefresh(boolean doFilterPaths, String listenerFilter) {
externalScan(null, null, null, doFilterPaths, listenerFilter);
} | java | {
"resource": ""
} |
q152989 | GatheringBrowseCursor.next | train | public JsMessage next() throws SIResourceException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "next");
JsMessage msg = null;
Iterator<BrowseCursor> it = cursors.iterator();
while(it.hasNext() && msg==null)
msg = it.ne... | java | {
"resource": ""
} |
q152990 | InstallMap.sortFile | train | public static void sortFile(List<File> jarsList, final String fName) {
Collections.sort(jarsList, new Comparator<File>() {
@Override
public int compare(File f1, File f2) {
String f1Name = f1.getName();
f1Name = f1Name.substring(fName.length() + 1, f1Name.l... | java | {
"resource": ""
} |
q152991 | ParserUtils.encode | train | public static String encode(String s) {
if (s == null) {
return null;
}
StringBuilder builder = null;
int begin = 0;
for (int i = 0, length = s.length(); i < length; i++) {
char ch = s.charAt(i);
// RFC 2396, Section 3.3. See also:
... | java | {
"resource": ""
} |
q152992 | ParserUtils.appendURLEscapeEncoding | train | private static void appendURLEscapeEncoding(StringBuilder builder, int ch) {
builder.append('%');
builder.append(Character.forDigit(ch >> 4, 16));
builder.append(Character.forDigit(ch & 0xf, 16));
} | java | {
"resource": ""
} |
q152993 | HttpISCWriteErrorCallback.complete | train | @Override
public void complete(VirtualConnection vc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
// The VC might be null if the channel was destroyed before the callback completes
if (vc != null) {
... | java | {
"resource": ""
} |
q152994 | HttpISCWriteErrorCallback.error | train | @Override
public void error(VirtualConnection vc, Throwable t) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "error() called: vc=" + vc + " t=" + t);
}
// The VC might be null if the channel was destroyed before the callback completes
... | java | {
"resource": ""
} |
q152995 | HtmlTableRendererBase.startTable | train | protected void startTable(FacesContext facesContext, UIComponent uiComponent) throws IOException
{
ResponseWriter writer = facesContext.getResponseWriter();
writer.startElement(HTML.TABLE_ELEM, uiComponent);
Map<String, List<ClientBehavior>> behaviors = null;
if (uiComponent... | java | {
"resource": ""
} |
q152996 | HtmlTableRendererBase.encodeChildren | train | public void encodeChildren(FacesContext facesContext, UIComponent component) throws IOException
{
RendererUtils.checkParamValidity(facesContext, component, UIData.class);
beforeBody(facesContext, (UIData) component);
encodeInnerHtml(facesContext, component);
afterBody(facesContext... | java | {
"resource": ""
} |
q152997 | HtmlTableRendererBase.renderCaptionFacet | train | protected void renderCaptionFacet(FacesContext facesContext, ResponseWriter writer, UIComponent component)
throws IOException
{
HtmlRendererUtils.renderTableCaption(facesContext, writer, component);
} | java | {
"resource": ""
} |
q152998 | HtmlTableRendererBase.renderColgroupsFacet | train | protected void renderColgroupsFacet(FacesContext facesContext, ResponseWriter writer, UIComponent component)
throws IOException
{
UIComponent colgroupsFacet = component.getFacet("colgroups");
if (colgroupsFacet == null)
{
// no facet to be rendered
return;... | java | {
"resource": ""
} |
q152999 | HtmlTableRendererBase.getStyles | train | protected static Styles getStyles(UIData uiData)
{
String rowClasses;
String columnClasses;
if(uiData instanceof HtmlDataTable)
{
rowClasses = ((HtmlDataTable)uiData).getRowClasses();
columnClasses = ((HtmlDataTable)uiData).getColumnClasses();
}
... | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.