_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q152500 | DirectedAcyclicGraphVerifier.resetVertices | train | public static <T> void resetVertices(List<Vertex<T>> vertices)
{
Iterator<Vertex<T>> it = vertices.iterator();
while (it.hasNext())
{
it.next().reset();
}
} | java | {
"resource": ""
} |
q152501 | LdapConfigManager.getSupportedProperties | train | public List<String> getSupportedProperties(String inEntityTypes, List<String> propNames) throws EntityTypeNotSupportedException {
List<String> prop = null;
Set<String> s = null;
if (propNames != null && propNames.size() > 0) {
if (inEntityTypes == null) {
return propN... | java | {
"resource": ""
} |
q152502 | LdapConfigManager.getAllLdapEntities | train | public List<LdapEntity> getAllLdapEntities(String qualifiedType) {
List<LdapEntity> entityTypes = new ArrayList<LdapEntity>();
if (qualifiedType != null) {
for (int i = 0; i < iLdapEntityTypeList.size(); i++) {
String entityType = iLdapEntityTypeList.get(i);
... | java | {
"resource": ""
} |
q152503 | LdapConfigManager.getGroupMemberFilter | train | public String getGroupMemberFilter(String groupMemberDN) {
groupMemberDN = escapeSpecialCharacters(groupMemberDN);
Object[] args = {
groupMemberDN
};
return new MessageFormat(iGrpMbrFilter).format(args);
} | java | {
"resource": ""
} |
q152504 | Classpath._searchFromURL | train | private static void _searchFromURL(Set<URL> result, String prefix, String suffix, URL url) throws IOException
{
boolean done = false;
InputStream is = _getInputStream(url);
if (is != null)
{
try
{
ZipInputStream zis;
if (is ins... | java | {
"resource": ""
} |
q152505 | Classpath._join | train | private static String _join(String[] tokens, boolean excludeLast)
{
StringBuilder join = new StringBuilder();
int length = tokens.length - (excludeLast ? 1 : 0);
for (int i = 0; i < length; i++)
{
join.append(tokens[i]).append("/");
}
return join.toString... | java | {
"resource": ""
} |
q152506 | Classpath._getAlternativeJarFile | train | private static JarFile _getAlternativeJarFile(URL url) throws IOException
{
String urlFile = url.getFile();
// Find suffix prefixed by "!/" on Weblogic
int wlIndex = urlFile.indexOf("!/");
// Find suffix prefixed by '!' on OC4J
int oc4jIndex = urlFile.indexOf('!');
/... | java | {
"resource": ""
} |
q152507 | JsMessagingEngineImpl.initializeNewEngineComponent | train | protected void initializeNewEngineComponent(JsEngineComponent engineComponent) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "initializeNewEngineComponent", engineComponent);
}
// Synchronize on stateChangeLock to manage the st... | java | {
"resource": ""
} |
q152508 | JsMessagingEngineImpl.destroyOldEngineComponent | train | protected void destroyOldEngineComponent(ComponentList component) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "destroyOldEngineComponent", component);
}
boolean removed = jmeComponents.remove(component);
if (TraceComponent.isAnyTracin... | java | {
"resource": ""
} |
q152509 | DefaultErrorReporter.printFullStackTrace | train | public static void printFullStackTrace(PrintWriter out, ServletException e)
{
// determine the absolute root exception
Throwable th = null;
while (e != null)
{
th = e.getRootCause();
if (th == null)
{
th = e;
break... | java | {
"resource": ""
} |
q152510 | DefaultErrorReporter.encodeChars | train | public static String encodeChars(String iString)
{
if (iString == null)
return "";
int strLen = iString.length(), i;
if (strLen < 1)
return iString;
// convert any special chars to their browser equivalent specification
StringBuffer retString = new ... | java | {
"resource": ""
} |
q152511 | ConnectionManager.getConnection | train | SocketIOChannel getConnection(TCPConnectRequestContext connectContext, TCPConnLink tcpConnLink, SimpleSync blocking) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc,
"getConnection for local: " + connectContext.getLocalAddress... | java | {
"resource": ""
} |
q152512 | ConnectionManager.create | train | private SocketIOChannel create(InetSocketAddress localAddress, TCPConnLink tcpConnLink) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "create");
}
SocketIOChannel ioSocket = tcpChannel.createOutboundSocketIOChannel();
So... | java | {
"resource": ""
} |
q152513 | ConnectorModuleRuntimeContainer.removeServiceListeners | train | private void removeServiceListeners(String id) {
final ServiceListener[] listeners = serviceListeners.remove(id);
if (listeners != null)
for (ServiceListener listener : listeners)
if (listener != null) {
lock.readLock().lock();
try {
... | java | {
"resource": ""
} |
q152514 | ConnectorModuleRuntimeContainer.stopModule | train | @Override
public void stopModule(ExtendedModuleInfo moduleInfo) {
ConnectorModuleMetaDataImpl metadataImpl = (ConnectorModuleMetaDataImpl) moduleInfo.getMetaData();
String id = metadataImpl.getIdentifier();
metaDataService.fireComponentMetaDataDestroyed(metadataImpl.getComponentMetaDatas()[... | java | {
"resource": ""
} |
q152515 | KeyMatcher.add | train | public synchronized void add(GenericKeys key) {
KeyBucket bucket = makeBucket(key.getName().charAt(0));
if (null != bucket) {
bucket.add(key);
}
} | java | {
"resource": ""
} |
q152516 | KeyMatcher.match | train | public GenericKeys match(String name, int start, int length) {
if (null == name || 0 == name.length() || start < 0 || length > name.length()) {
return null;
}
KeyBucket bucket = getBucket(name.charAt(start));
if (null != bucket) {
return bucket.match(name, start, ... | java | {
"resource": ""
} |
q152517 | ThreadFactoryImpl.newThread | train | @Override
public Thread newThread(final Runnable runnable) {
int threadId = createdThreadCount.incrementAndGet();
final String name = executorName + "-thread-" + threadId;
// The AccessControlContext is implicitly copied from the creating
// thread, so use doPrivileged to prevent tha... | java | {
"resource": ""
} |
q152518 | Jdk14Logger.debug | train | public void debug(Object message, Throwable exception) {
log(Level.FINE, String.valueOf(message), exception);
} | java | {
"resource": ""
} |
q152519 | Jdk14Logger.error | train | public void error(Object message) {
log(Level.SEVERE, String.valueOf(message), null);
} | java | {
"resource": ""
} |
q152520 | Jdk14Logger.error | train | public void error(Object message, Throwable exception) {
log(Level.SEVERE, String.valueOf(message), exception);
} | java | {
"resource": ""
} |
q152521 | Jdk14Logger.info | train | public void info(Object message, Throwable exception) {
log(Level.INFO, String.valueOf(message), exception);
} | java | {
"resource": ""
} |
q152522 | Jdk14Logger.trace | train | public void trace(Object message) {
log(Level.FINEST, String.valueOf(message), null);
} | java | {
"resource": ""
} |
q152523 | Jdk14Logger.trace | train | public void trace(Object message, Throwable exception) {
log(Level.FINEST, String.valueOf(message), exception);
} | java | {
"resource": ""
} |
q152524 | Jdk14Logger.warn | train | public void warn(Object message, Throwable exception) {
log(Level.WARNING, String.valueOf(message), exception);
} | java | {
"resource": ""
} |
q152525 | ConfigVariableIntrospection.getConfigVariables | train | private Map<String, String> getConfigVariables() {
return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
@Override
public Map<String, String> run() {
return configVariables.getUserDefinedVariables();
}
});
} | java | {
"resource": ""
} |
q152526 | OpenAPIUtils.getUrlAsStream | train | public static InputStream getUrlAsStream(URL url, String acceptValue) throws IOException {
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
if (acceptValue != null && !acceptValue.trim().isEmpty()) {
connection.setRequestPro... | java | {
"resource": ""
} |
q152527 | OpenAPIUtils.mapToString | train | public static String mapToString(Map<String, ?> map) {
StringBuilder sb = new StringBuilder();
sb.append("{\n");
for (String key : map.keySet()) {
if (map.get(key) != null) {
sb.append(key + ": " + map.get(key) + "\n ");
} else {
continue;
... | java | {
"resource": ""
} |
q152528 | SingleFileObjectStore.force | train | void force()
throws ObjectManagerException
{
final String methodName = "force";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
try {
storeChannel.... | java | {
"resource": ""
} |
q152529 | WebJsJmsMessageEncoderImpl.encodeTextBody | train | private void encodeTextBody(StringBuffer result, JsJmsTextMessage msg) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeTextBody");
try {
String body = msg.getText();
if (body != null) {
result.append('~');
URLEncode(result, body);
}
... | java | {
"resource": ""
} |
q152530 | WebJsJmsMessageEncoderImpl.encodeBytesBody | train | private void encodeBytesBody(StringBuffer result, JsJmsBytesMessage msg) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeBytesBody");
byte[] body = msg.getBytes();
if (body != null) {
result.append('~');
HexString.binToHex(body, 0, body.length, result);
... | java | {
"resource": ""
} |
q152531 | WebJsJmsMessageEncoderImpl.encodeObjectBody | train | private void encodeObjectBody(StringBuffer result, JsJmsObjectMessage msg) throws MessageEncodeFailedException{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeObjectBody");
try {
byte[] body = msg.getSerializedObject();
if (body != null) {
result.appe... | java | {
"resource": ""
} |
q152532 | WebJsJmsMessageEncoderImpl.encodeStreamBody | train | private void encodeStreamBody(StringBuffer result, JsJmsStreamMessage msg) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeStreamBody");
// Internal method to get the stream as a List
try {
List<Object> body = ((JsJmsStreamMessageImpl)msg).getBodyList();
... | java | {
"resource": ""
} |
q152533 | WebJsJmsMessageEncoderImpl.encodeMapBody | train | private void encodeMapBody(StringBuffer result, JsJmsMapMessage msg) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeMapBody");
// Internal method to get the map as a Map
try {
Map<String, Object> body = ((JsJmsMapMessageImpl)msg).getBodyMap();
if (body.... | java | {
"resource": ""
} |
q152534 | WebJsJmsMessageEncoderImpl.encodePair | train | private void encodePair(StringBuffer result, String name, Object value, boolean first) {
if (!first)
result.append('&');
URLEncode(result, name);
result.append('=');
encodeObject(result, value);
} | java | {
"resource": ""
} |
q152535 | WebJsJmsMessageEncoderImpl.encodeObject | train | private void encodeObject(StringBuffer result, Object value) {
if (value != null) {
if (value instanceof byte[]) {
result.append("[]");
HexString.binToHex((byte[])value, 0, ((byte[])value).length, result);
} else
URLEncode(result, value.toString());
} | java | {
"resource": ""
} |
q152536 | NBAccept.registerPort | train | public void registerPort(TCPPort endPoint) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "registerPort: " + endPoint.getServerSocket());
}
synchronized (this) {
EndPointActionInfo work = new EndPointActionInfo(REGIS... | java | {
"resource": ""
} |
q152537 | NBAccept.removePort | train | public void removePort(TCPPort endPoint) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "removePort: " + endPoint.getServerSocket());
}
synchronized (this) {
NBAcceptChannelSelector accept = endPointToAccept.get(endPoint);
... | java | {
"resource": ""
} |
q152538 | LibertyTracePreprocessInstrumentation.isClassTrivial | train | @SuppressWarnings("unchecked")
private boolean isClassTrivial(ClassTraceInfo info) {
AnnotationNode trivialAnnotation = getAnnotation(TRIVIAL_TYPE.getDescriptor(), info.classNode.visibleAnnotations);
if (trivialAnnotation != null) {
return true;
}
return false;
} | java | {
"resource": ""
} |
q152539 | LibertyTracePreprocessInstrumentation.isMethodAlreadyInjectedAnnotationPresent | train | @SuppressWarnings("unchecked")
private boolean isMethodAlreadyInjectedAnnotationPresent(MethodNode methodNode) {
AnnotationNode injectedTraceAnnotation = getAnnotation(INJECTED_TRACE_TYPE.getDescriptor(), methodNode.visibleAnnotations);
AnnotationNode manualTraceAnnotation = getAnnotation(MANUAL_TRA... | java | {
"resource": ""
} |
q152540 | LibertyTracePreprocessInstrumentation.processArguments | train | @Override
public void processArguments(String[] args) throws IOException {
List<File> classFiles = new ArrayList<File>();
List<File> jarFiles = new ArrayList<File>();
String[] fileArgs = null;
for (int i = 0; i < args.length; i++) {
if (args[i].equalsIgnoreCase("--debug"... | java | {
"resource": ""
} |
q152541 | RecoverableUnitImpl.identity | train | @Override
public long identity()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "identity", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "identity", new Long(_identity));
return _identity;
} | java | {
"resource": ""
} |
q152542 | RecoverableUnitImpl.payloadAdded | train | protected void payloadAdded(int unwrittenPayloadSize, int totalPayloadSize)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "payloadAdded", new Object[] { this, new Integer(unwrittenPayloadSize), new Integer(totalPayloadSize) });
_payloadAdded = true;
int unwrittenRecLogAdjustment = un... | java | {
"resource": ""
} |
q152543 | RecoverableUnitImpl.payloadWritten | train | protected void payloadWritten(int payloadSize)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "payloadWritten", new Object[] { this, new Integer(payloadSize) });
// Track the unwritten payload decrease directly. We take no account for this classes header
// values in this figure. The t... | java | {
"resource": ""
} |
q152544 | RecoverableUnitImpl.payloadDeleted | train | protected void payloadDeleted(int totalPayloadSize, int unwrittenPayloadSize)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "payloadDeleted", new Object[] { this, new Integer(totalPayloadSize), new Integer(unwrittenPayloadSize) });
// Track the payload decreases directly. We take no account f... | java | {
"resource": ""
} |
q152545 | BasicAuthCacheKeyProvider.createLookupKey | train | public static String createLookupKey(String realm, String userid) {
String key = null;
if (realm != null && userid != null) {
key = realm + KEY_SEPARATOR + userid;
}
return key;
} | java | {
"resource": ""
} |
q152546 | ServerCommandListener.close | train | public void close() {
Thread responseThread = null;
synchronized (this) {
if (!closed) {
closed = true;
notifyAll();
if (listenForCommands) {
listenForCommands = false;
if (listeningThread != null) {
... | java | {
"resource": ""
} |
q152547 | ServerCommandListener.acceptAndExecuteCommand | train | @FFDCIgnore({ IOException.class })
private boolean acceptAndExecuteCommand() {
boolean socketValid = false;
try {
//exceptions thrown by accept are assumed to mean the channel is no longer usable.
SocketChannel sc = serverSocketChannel.accept();
socketValid = true... | java | {
"resource": ""
} |
q152548 | ServerCommandListener.asyncResponse | train | private synchronized void asyncResponse(String command, SocketChannel sc) {
if (closed) {
Utils.tryToClose(sc);
} else {
Thread thread = new Thread(new ResponseThread(command, sc), "kernel-" + command + "-command-response");
// We allow a maximum of one outstanding s... | java | {
"resource": ""
} |
q152549 | ServerCommandListener.writeResponse | train | private void writeResponse(SocketChannel sc, int rc) throws IOException {
synchronized (responseLock) {
write(sc, serverUUID + DELIM + rc);
}
} | java | {
"resource": ""
} |
q152550 | JmsJcaConnectionFactoryImpl.createCoreConnection | train | SICoreConnection createCoreConnection(final String userName,
final String password) throws ResourceException {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "createCoreConnection", new Object[] {
... | java | {
"resource": ""
} |
q152551 | GatheringConsumerDispatcher.getConsumerCount | train | public int getConsumerCount()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getConsumerCount");
int consumerCount;
synchronized (consumerPoints)
{
consumerCount = consumerPoints.size();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntr... | java | {
"resource": ""
} |
q152552 | FacesServletMapping.createPrefixMapping | train | public static FacesServletMapping createPrefixMapping(String path)
{
FacesServletMapping mapping = new FacesServletMapping();
mapping.setPrefix(path);
return mapping;
} | java | {
"resource": ""
} |
q152553 | FacesServletMapping.createExtensionMapping | train | public static FacesServletMapping createExtensionMapping(
String extension)
{
FacesServletMapping mapping = new FacesServletMapping();
mapping.setExtension(extension);
return mapping;
} | java | {
"resource": ""
} |
q152554 | WebSecurityHelper.getSSOCookieName | train | public static String getSSOCookieName() throws Exception {
WebAppSecurityConfig config = WebSecurityHelperImpl.getWebAppSecurityConfig();
if (config != null) {
return config.getSSOCookieName();
}
return null;
} | java | {
"resource": ""
} |
q152555 | SecureAction.loadSystemClass | train | public Class<?> loadSystemClass(final String name) throws ClassNotFoundException {
if (System.getSecurityManager() == null) {
ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
return (systemClassLoader != null) ? systemClassLoader.loadClass(name) : bootClassLoader.loadC... | java | {
"resource": ""
} |
q152556 | WsByteBufferUtils.asString | train | public static final String asString(WsByteBuffer[] list) {
byte[] data = asByteArray(list);
return (null != data) ? new String(data) : null;
} | java | {
"resource": ""
} |
q152557 | WsByteBufferUtils.asString | train | public static final String asString(WsByteBuffer[] list, int[] positions, int[] limits) {
byte[] data = asByteArray(list, positions, limits);
return (null != data) ? new String(data) : null;
} | java | {
"resource": ""
} |
q152558 | WsByteBufferUtils.asString | train | public static final String asString(WsByteBuffer buff) {
byte[] data = asByteArray(buff);
return (null != data) ? new String(data) : null;
} | java | {
"resource": ""
} |
q152559 | WsByteBufferUtils.asString | train | public static final String asString(WsByteBuffer buff, int position, int limit) {
byte[] data = asByteArray(buff, position, limit);
return (null != data) ? new String(data) : null;
} | java | {
"resource": ""
} |
q152560 | WsByteBufferUtils.asStringBuffer | train | public static final StringBuffer asStringBuffer(WsByteBuffer[] list) {
StringBuffer sb = new StringBuffer();
String data = asString(list);
if (null != data) {
sb.append(data);
}
return sb;
} | java | {
"resource": ""
} |
q152561 | WsByteBufferUtils.asInt | train | public static final int asInt(WsByteBuffer buff, int position, int limit) {
return asInt(asByteArray(buff, position, limit));
} | java | {
"resource": ""
} |
q152562 | WsByteBufferUtils.asInt | train | public static final int asInt(WsByteBuffer[] list, int[] positions, int[] limits) {
return asInt(asByteArray(list, positions, limits));
} | java | {
"resource": ""
} |
q152563 | WsByteBufferUtils.asInt | train | public static final int asInt(byte[] data) {
if (null == data) {
return -1;
}
int start = 0;
// skip leading whitespace
for (; start < data.length; start++) {
if (' ' != data[start] || '\t' == data[start]) {
break;
}
}
... | java | {
"resource": ""
} |
q152564 | WsByteBufferUtils.releaseBufferArray | train | public static void releaseBufferArray(WsByteBuffer[] list) {
if (null == list) {
return;
}
for (int i = 0; i < list.length; i++) {
if (null != list[i]) {
list[i].release();
list[i] = null;
}
}
} | java | {
"resource": ""
} |
q152565 | WsByteBufferUtils.lengthOf | train | public static final int lengthOf(WsByteBuffer[] list) {
if (null == list) {
return 0;
}
int length = 0;
for (int i = 0; i < list.length && null != list[i]; i++) {
length += list[i].remaining();
}
return length;
} | java | {
"resource": ""
} |
q152566 | WsByteBufferUtils.flip | train | public static void flip(WsByteBuffer[] list) {
if (list != null) {
for (int i = 0; i < list.length; i++) {
if (list[i] != null) {
list[i].flip();
}
}
}
} | java | {
"resource": ""
} |
q152567 | WsByteBufferUtils.getTotalCapacity | train | public static final int getTotalCapacity(WsByteBuffer[] list) {
if (null == list) {
return 0;
}
int cap = 0;
for (int i = 0; i < list.length; i++) {
if (list[i] != null) {
cap += list[i].capacity();
}
}
return cap;
} | java | {
"resource": ""
} |
q152568 | WsByteBufferUtils.clearBufferArray | train | public static void clearBufferArray(WsByteBuffer[] list) {
if (list != null) {
for (int i = 0; i < list.length; ++i) {
if (list[i] != null)
list[i].clear();
}
}
} | java | {
"resource": ""
} |
q152569 | WsByteBufferUtils.expandBufferArray | train | public static WsByteBuffer[] expandBufferArray(WsByteBuffer[] list, WsByteBuffer buffer) {
if (null == buffer)
return list;
int len = (null != list ? list.length : 0);
WsByteBuffer[] bb = new WsByteBuffer[len + 1];
if (0 < len) {
System.arraycopy(list, 0, bb, 0, l... | java | {
"resource": ""
} |
q152570 | URBridgeEntity.setSecurityNameProp | train | public void setSecurityNameProp(String securityName) {
if (securityName != null)
entity.getIdentifier().set(securityNameProp, securityName);
} | java | {
"resource": ""
} |
q152571 | URBridgeEntity.getSecurityName | train | public String getSecurityName(boolean setAttr) throws Exception {
String securityName = null;
if (entity.getIdentifier().isSet(securityNameProp)) {
securityName = (String) entity.getIdentifier().get(securityNameProp);
}
// Neither identifier is set.
if (securityName ... | java | {
"resource": ""
} |
q152572 | URBridgeEntity.getUniqueId | train | public String getUniqueId(boolean setAttr) throws Exception {
String uniqueName = null;
String uniqueId = null;
if (entity.getIdentifier().isSet(uniqueIdProp)) {
uniqueId = (String) entity.getIdentifier().get(uniqueIdProp);
return uniqueId;
}
uniqueName = ... | java | {
"resource": ""
} |
q152573 | URBridgeEntity.getDisplayName | train | @SuppressWarnings("unchecked")
public String getDisplayName(boolean setAttr) throws Exception {
String displayName = null;
String securityName = getSecurityName(false);
displayName = getDisplayNameForEntity(securityName);
if (!((displayName == null) || (displayName.trim().length() =... | java | {
"resource": ""
} |
q152574 | ComponentMetaDataAccessorImpl.beginContext | train | public Object beginContext(ComponentMetaData cmd) { // modified to return object d131914
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
if (cmd != null)
Tr.debug(tc, "begin context " + cmd.getJ2EEName());
else
Tr.debug(tc, "NULL was pas... | java | {
"resource": ""
} |
q152575 | ComponentMetaDataAccessorImpl.endContext | train | public Object endContext() { // modified to return object d131914
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
ComponentMetaData cmd = getComponentMetaData();
Tr.debug(tc, "end context " + (cmd == null ? null : cmd.getJ2EEName()));
}
return threadCon... | java | {
"resource": ""
} |
q152576 | EmbeddableTransactionManagerFactory.getTransactionManager | train | public static EmbeddableWebSphereTransactionManager getTransactionManager() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getTransactionManager");
if (_tranManager == null) {
loadEmbeddableTranManager(tmImplFactoryKey);
}
if (T... | java | {
"resource": ""
} |
q152577 | EmbeddableTransactionManagerFactory.getClientTransactionManager | train | public static ExtendedTransactionManager getClientTransactionManager() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getClientTransactionManager");
if (_tranManager == null) {
loadEmbeddableTranManager(clientTMKey);
}
if (Trace... | java | {
"resource": ""
} |
q152578 | JmsSharedUtilsImpl.convertJSFeedbackToMQ | train | @Override
public Integer convertJSFeedbackToMQ(Integer fb) {
Integer result = null;
if (SIApiConstants.REPORT_COA.equals(fb)) {
result = Integer.valueOf(ApiJmsConstants.MQFB_COA);
}
else if (SIApiConstants.REPORT_COD.equals(fb)) {
result = Integer.valueOf(Api... | java | {
"resource": ""
} |
q152579 | JEEMetadataContextImpl.readObject | train | private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
GetField fields = in.readFields();
beginDefaultContext = fields.get(BEGIN_DEFAULT, true);
// Note that further processing is required in JEEMetadataContextProviderImpl.deserializeThreadContext
... | java | {
"resource": ""
} |
q152580 | DeflateOutputHandler.isIEBrowser | train | private boolean isIEBrowser(byte[] agent) {
int end = agent.length - 4;
for (int i = 0; i < end;) {
// check for MSIE
if ('M' == agent[i]) {
if ('S' == agent[++i] && 'I' == agent[++i] && 'E' == agent[++i]) {
return true;
}
... | java | {
"resource": ""
} |
q152581 | DeflateOutputHandler.compress | train | protected List<WsByteBuffer> compress(List<WsByteBuffer> list, WsByteBuffer buffer) {
if (null == buffer) {
return null;
}
int dataSize = buffer.remaining();
if (0 == dataSize) {
return list;
}
byte[] input = null;
int initOffset = 0;
... | java | {
"resource": ""
} |
q152582 | EndPointInfoImpl.updateHost | train | public String updateHost(final String newHost) {
validateHostName(newHost);
String oldHost = this.host;
this.host = newHost;
if (!oldHost.equals(newHost)) {
sendNotification(new AttributeChangeNotification(this, sequenceNum.incrementAndGet(), System.currentTimeMillis(), thi... | java | {
"resource": ""
} |
q152583 | EndPointInfoImpl.updatePort | train | public int updatePort(final int newPort) {
int oldPort = this.port;
this.port = newPort;
if (oldPort != newPort) {
sendNotification(new AttributeChangeNotification(this, sequenceNum.incrementAndGet(), System.currentTimeMillis(), this.toString()
... | java | {
"resource": ""
} |
q152584 | IdleConnectionPool.add | train | public void add(OutboundConnection outboundConnection,
EndPointDescriptor descriptor)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "add", new Object[] {outboundConnection, descriptor});
if (connectionCloseTimeout == 0)
{
// Op... | java | {
"resource": ""
} |
q152585 | IdleConnectionPool.remove | train | public synchronized OutboundConnection remove(EndPointDescriptor descriptor)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "remove", descriptor);
final LinkedList connectionList = descriptorToConnectionListMap.get(descriptor);
OutboundConnection connecti... | java | {
"resource": ""
} |
q152586 | IdleConnectionPool.alarm | train | public void alarm(Object alarmContext)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm", alarmContext);
boolean alarmValid = false;
boolean presentInConnectionList = false;
Object[] listEntry = null;
// Take the pools monitor so that no-... | java | {
"resource": ""
} |
q152587 | JMSConnectionFactoryResourceBuilder.getDefaultProperties | train | private Dictionary<String, Object> getDefaultProperties(String resourceAdapter, String interfaceName) throws ConfigEvaluatorException, ResourceException {
Bundle bundle = JMSResourceDefinitionHelper.getBundle(bundleContext, resourceAdapter);
if (bundle != null) {
MetaTypeInformation metaTy... | java | {
"resource": ""
} |
q152588 | FilterListSlowStr.findInList | train | private boolean findInList(String[] address, int index, FilterCellSlowStr cell, int endIndex) {
if (cell.getWildcardCell() != null) {
// a wildcard, match found
return true;
}
// no wildcard so far, see if there is a still a path
FilterCellSlowStr nextCell = cell... | java | {
"resource": ""
} |
q152589 | IndirectJndiLookupObjectFactory.getObjectInstance | train | @FFDCIgnore(Exception.class)
private Object getObjectInstance(Context c, Hashtable<?, ?> envmt, String className, String bindingName, ResourceInfo resourceRefInfo, IndirectReference ref) throws Exception {
try {
// References are supposed to always have a type, but we tolerate
// ref... | java | {
"resource": ""
} |
q152590 | IndirectJndiLookupObjectFactory.createResource | train | private Object createResource(String refName, String className, String bindingName, ResourceInfo resourceRefInfo) throws Exception {
String nameFilter = FilterUtils.createPropertyFilter(ResourceFactory.JNDI_NAME, bindingName);
String createsFilter = className == null ? null : FilterUtils.createPropertyF... | java | {
"resource": ""
} |
q152591 | IndirectJndiLookupObjectFactory.createDefaultResource | train | private Object createDefaultResource(String className, ResourceInfo resourceRefInfo) throws Exception {
if (className != null) {
String javaCompDefaultFilter = "(" + com.ibm.ws.resource.ResourceFactory.JAVA_COMP_DEFAULT_NAME + "=*)";
String createsFilter = FilterUtils.createPropertyFilte... | java | {
"resource": ""
} |
q152592 | IndirectJndiLookupObjectFactory.createResourceWithFilter | train | @FFDCIgnore(PrivilegedActionException.class)
private Object createResourceWithFilter(final String filter, final ResourceInfo resourceRefInfo) throws Exception {
try {
return AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
@Override
public O... | java | {
"resource": ""
} |
q152593 | IndirectJndiLookupObjectFactory.getBindingObjectInstance | train | private Object getBindingObjectInstance(Context c, Hashtable<?, ?> envmt, String className, ResourceInfo resourceRefInfo, Reference bindingRef, InjectionBinding<?> binding) throws Exception {
Object bindingObject = binding.getBindingObject();
if (bindingObject instanceof Reference) {
// Hand... | java | {
"resource": ""
} |
q152594 | WebExtensionProcessor.createConfig | train | public IServletConfig createConfig(String servletName) throws ServletException
{
return (((WebApp) extensionContext).getWebExtensionProcessor().createConfig(servletName));
} | java | {
"resource": ""
} |
q152595 | WSJdbcStatement.closeAndRemoveResultSets | train | final protected void closeAndRemoveResultSets(boolean closeWrapperOnly)
{
// Close and remove all the result sets in the childWrappers
// - remove childWrappers.isEmpty() check since the precondition of this method
// is that childWrappers have at least one element.
for (int i = ... | java | {
"resource": ""
} |
q152596 | WSJdbcStatement.createResultSetWrapper | train | protected WSJdbcResultSet createResultSetWrapper(ResultSet rsetImplObject)
{
return rsetImplObject == null ? null : mcf.jdbcRuntime.newResultSet(rsetImplObject, this);
} | java | {
"resource": ""
} |
q152597 | WSJdbcStatement.enforceStatementProperties | train | protected final void enforceStatementProperties() throws SQLException
{
// Synchronization not needed since this method will always be called from execute
// methods which are already synchronized.
// RRA does not support multithreaded access so synchronization is no
// longer neede... | java | {
"resource": ""
} |
q152598 | ServiceRefType.handleAttribute | train | @Override
public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws ParseException {
boolean result = false;
if (nsURI != null) {
return result;
}
if (NAME_ATTRIBUTE_NAME.equals(localName)) {
name = parser.parseStringA... | java | {
"resource": ""
} |
q152599 | ServiceWrapper.wrapAndRun | train | void wrapAndRun (Runnable runnable) { // PM90834 added method
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINEST)) {
logger.entering(CLASS_NAME,"wrapAndRun",runnable);
}
try {
this.popContextData();
if (com.ibm.ejs.ras.TraceCompon... | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.